• Resolved liekegunther

    (@liekegunther)


    Hey,

    I have a very customized page and am using a custom add to cart button. Now, the problem is that when I press add to cart I get redirected to a new product page. I just want that to be the quick view pop up. So I don’t want a quick view button, but that customers get a quick view pop up when they press the custom add to cart button. How can I do this?

    Thank you in advance!

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

    (@yithemes)

    Hi,
    and thank you for writing in!

    If you want to open the quick view when clicking on a custom button, you should simply add:

    • the yith-wcqv-button class
    • and the data-product_id attribute set to the product ID

    to your button.
    For example:
    <a class="my-custom-button yith-wcqv-button" data-product_id="<?php echo $product_id; ?>">Add to cart</a>

    Please try this solution and let us know if everything works fine!

    Thread Starter liekegunther

    (@liekegunther)

    Hey!

    Thank you so much. It works. However, it is super slow when I press add to cart in the quick view. Keeps loading. Is there anything I can do about that?

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    it depends by the site performance and the time server need to process the ajax call.
    I suggest you to check your site using a tool like https://gtmetrix.com/ to discover all possible improvements.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add to cart’ is closed to new replies.