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

    (@yithemes)

    Hi,
    You could edit the YITH WooCommerce Best Sellers widget by copying the file bestseller.php that you can find in wp-content/plugins/yith-woocommerce-best-sellers/templates/widget/ into YOUR_THEME_FOLDER/woocommerce/widget/
    Then you can edit this file as you prefer, for example to add the add to cart button.

    Best Regards
    YIThemes

    Thread Starter abtavera

    (@abtavera)

    Thank you for your reply, I will try and let you know

    best regards

    ABTavera

    Thread Starter abtavera

    (@abtavera)

    I have do it, and nothing happen do you have the snippet so I can add the add to cart button

    thanks in advanced , and sorry for the troubles

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    you could use the following code in bestseller.php file:

    <?php
                global $product;
                $product = $bs;
                woocommerce_template_loop_add_to_cart();
    ?>

    Best Regards
    YIThemes

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add to cart button in widget?’ is closed to new replies.