• Resolved dualpixel1

    (@dualpixel1)


    Hi!
    The wishlist-icon ist not showing on the Shop page and category pages.
    On the product detail page it is working fine.
    Any troubles with my theme? What can i do?

    Also the product variation is not working (i use this plugin: WooCommerce Extra Product Options Pro)

    Look forward to an answer ??

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hum I’m having similar problems, it shows on related products and such but not the shop page.

    I’m also using WPBarkery and adding [yith_wcwl_add_to_wishlist] is not adding this to the product layout nothing shows…

    Also using Theme “Porto” and their built-in layout work, unfortunately, they have a bug where the related products get messy so I wanted to build my own.

    Plugin Author YITHEMES

    (@yithemes)

    Hi there

    @dualpixel1 Could you please make sure that you correctly enabled Show “Add to wishlist” in loop option in WP Dashboard -> YITH -> Wishlist -> Add to Wishlist options -> Loop settings?

    Could you please try various values of Position of “Add to wishlist” in loop option, to see if any works as expected?

    Regarding your request for WooCommerce Extra Product Options Pro, currently wishlist do not store anything else than product/variation ID; any external data, such as the one added by this plugin, cannot be stored
    We plan to improve this behaviour in a future release, to allow plugin store more detailed data about the product customer adds to wishlist
    Anyway, even in that case, a specific integration will be needed

    @mike-pt in order for [yith_wcwl_add_to_wishlist] shortcode to work as expected, you need to have global $product defined; otherwise, you’ll need to pass product_id id parameter to the shortcode, as in the following example

    [yith_wcwl_add_to_wishlist product_id="123"]
    
    Thread Starter dualpixel1

    (@dualpixel1)

    Hello, thanks for the reply @yithemes!

    Yes, i’ve already tested all settings but no setting works. I see in the Chrome DevTools that CSS code is written but no button or link is generated.

    Btw: in the product page settings the “According to the preview picture” also doesn’t work (but I don’t need this setting).

    Any idea or code, that i can insert in the theme?
    There can also be a wish list button below the product name or price. But which code do I have to insert in which file?

    Hi! I have the same problem with the changes.
    I have a custom type of product and it was working before.
    I added this function to my function.php of my theme child, but the icon dont appear. Any suggest? Thanks!!

    add_action('woocommerce_after_bid_button','decor');
    function decor(){
     global $product;
    do_shortcode('[yith_wcwl_add_to_wishlist]'); }
    Plugin Author YITHEMES

    (@yithemes)

    @dualpixel1 it would be possible for your to test on a default Twenty theme, just to exclude any interference from the theme?

    @jennifersanchez please, note that you should echo result from do_shortcode
    Here a corrected version of your code

    add_action('woocommerce_after_bid_button','decor');
    function decor(){
       global $product;
       echo do_shortcode('[yith_wcwl_add_to_wishlist product_id="' . $product->get_id() . '"]');
    }
    
    Thread Starter dualpixel1

    (@dualpixel1)

    @yithemes I tested it with Health Check and found out that the problem is my theme. The error was in content-product.php, now it is working.

    • This reply was modified 4 years, 3 months ago by dualpixel1.
    Plugin Author YITHEMES

    (@yithemes)

    @dualpixel1 great news! Since you’re the OP I’ll mark this topic as solved now
    If the problem persists for any of the other posters, I invite you to create separate thread so we can talk better about your specific issue

    We are doing our best to improve our plugins. Our target is to develop and release the best free plugins for WooCommerce, but to achieve this we need your help. Please leave a good review to support us and help our growth ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wishlist-icon is not displayed’ is closed to new replies.