Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter miseryguts

    (@miseryguts)

    Anyone?

    Plugin Author YITHEMES

    (@yithemes)

    Hi miseryguts,

    sorry for the late response.
    I just installed Shopera on my local installation, and I think I found the problem

    As you can see in functions.php file of the theme (line 965), it removes any text from add to cart button in loop template.

    I think the best solution, in this case, is to remove this filter when printing wishlist shortcode, to add it again when wishlist table is ready

    You can do this simply adding this line of code at the end of the function.php file of your theme

    add_action( 'yith_wcwl_before_wishlist', 'remove_shopera_filter_for_add_to_cart_text' );
    function remove_shopera_filter_for_add_to_cart_text(){
    	remove_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text'  );
    }
    
    add_action( 'yith_wcwl_after_wishlist', 'add_shopera_filter_for_add_to_cart_text' );
    function add_shopera_filter_for_add_to_cart_text(){
    	add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text'  );
    }

    I tried this solution on my installation and here you can see the results

    Let me know if this solves your problem

    Have a nice day ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Text Missing From Add To Cart Button’ is closed to new replies.