Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi max143,

    you can try to use our add_to_wishlist button shortcode
    All you have to do, is to find the location in your custom loop where you want to add your “Add to wishlist” button, and add this line of code

    <?php echo do_shortcode( '[yith_wcwl_add_to_wishlist product_id="HERE_THE_CURRENT_PRODUCT_ID"]' ) ?>

    Let me know if this help you with your task
    Have a nice day

    Thread Starter max143

    (@max143)

    button added, but don’t work, browser show js error “Uncaught Error: Syntax error, unrecognized expression: .add-to-wishlist-?product=custom-wheels”.
    how it solve?

    Plugin Author YITHEMES

    (@yithemes)

    Hi again max!

    Can you please paste here the code you’re using?
    It seems that you’re using product slug in shortcode attribute, instead of the id

    Please, let me know
    Have a nice day!

    Thread Starter max143

    (@max143)

    Yes, there was my error, I use slug instead id, now it works! Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Wishlist button in any place’ is closed to new replies.