Using one click buy button in product modals

November 28, 2018 11:34 pm

Hi all,

Fantastic product you have!

I use quick view modals for customers to purchase their products. This essentially loads a simple product page inside a modal. I’ve enabled one click buys and tested it on the regular product pages and it’s working great.

But after ensuring I include the ‘woocommerce_before_single_product’ action in my modal to bring the 1-click button in, it doesn’t perform the 1-click action but just goes to the checkout page like the regular add to cart button does. Does this function require anything else from the product page to get it to run as I’ve compared what’s coming back in the dom in both the modal and product page and they’re both the same.


Published by 2 Comments

2 Replies

Leave a Reply

Your email address will not be published.