Support » Plugin: YITH WooCommerce Compare » Is there any hook to show button elsewhere?

  • Hi there. Is there any hook action/filter is available to show compare button else where like I created a plugin that show product carousel. I want to show it there.

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,

    you can use:
    1. this shortcode [yith_compare_button] to add the compare button where you want. In this way the plugin use the global $product

    OR

    2. you can use this one: [yith_compare_button product="<Product_id or product_slug>"]

    and you can use the ID or the slug, in this way you can create a compare button for a specific product.

    • This reply was modified 1 year, 4 months ago by  YITHEMES.
Viewing 1 replies (of 1 total)
  • The topic ‘Is there any hook to show button elsewhere?’ is closed to new replies.