Home Forums WoodMart support forum Reopen https://xtemos.com/forums/topic/issue-after-theme-update/#new-post

Reopen https://xtemos.com/forums/topic/issue-after-theme-update/#new-post

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #403214

    Madoo Webdesign
    Participant

    Hello,

    I found more stylings after the update, see image + link below

    https://dev.pflex.eu/webshop/hydrauliek-slangen/en856-4sh/aeroquip-gh506-en856-4sh/

    this is without the update, see https://pflex.eu/webshop/hydrauliek-slangen/en856-4sh/aeroquip-gh506-en856-4sh/

    texts are on the image, can you let me know.

    Attachments:
    You must be logged in to view attached files.
    #405584

    Hello,

    Please provide FTP access we will give you code into the child theme to fix that, and insert the access into the Private content below the message area.

    Best Regards

    #405811

    Madoo Webdesign
    Participant

    below the private details, can you tell me after, the fixing steps?

    #406376

    Hello,

    Thank you for the access. I have submitted the case to our developers and we will get back to you asap.

    Best Regards

    #406503

    Hello,

    Thank you for your patience.

    Please add this code to the functions.php of the child theme:

    if ( ! function_exists( 'wd_yith_update_loop_positions' ) ) {
    	function wd_yith_update_loop_positions( $positions ) {
    		if ( 'button' === woodmart_loop_prop( 'product_hover' ) ) {
    			$positions['before_add_to_cart']['hook'] = 'woodmart_add_loop_btn';
    			$positions['after_add_to_cart']['hook']  = 'woodmart_add_loop_btn';
    		}
    
    		return $positions;
    	}
    
    	add_filter('yith_wcwl_loop_positions', 'wd_yith_update_loop_positions');
    }

    In addition, you add a custom button in the child theme. Please replace this code:

    add_action( 'woocommerce_after_shop_loop_item', 'bbloomer_view_product_button', 10 );

    for this one:

    add_action( 'woodmart_add_loop_btn', 'bbloomer_view_product_button', 20 );

    If you have any questions please feel free to contact us.

    Best Regards

    #408978

    Madoo Webdesign
    Participant

    thanks, one more thing. after the update the text “login and see prices”. before the update it was in the image.
    see image knipsel-original.
    image knipsel is how it now looks.

    can you give me the right css?

    Attachments:
    You must be logged in to view attached files.
    #409268

    Hello,

    Please add this code to the functions.php of the child theme:

    add_action( 'init', function() {
    
        if ( ! class_exists("WooCommerceWholeSalePrices")){       
           return;
        }
    
        $wc_wholesale_prices = WooCommerceWholeSalePrices::instance();
    
        remove_action('woocommerce_after_shop_loop_item', array($wc_wholesale_prices->wwp_wholesale_prices, 'display_replacement_message'), 10);
        add_action('woodmart_add_loop_btn', array($wc_wholesale_prices->wwp_wholesale_prices, 'display_replacement_message'), 10);
    });
Viewing 7 posts - 1 through 7 (of 7 total)