Add Buy now button to variable page
-
Hello;
I am using the variation-add-to-cart-button.php file to display a gift card customers can purchase. I would like to add an additional ‘Buy now’ button below the ‘Add to cart’ button.
I am using the following code to do this:
<div class="express-checkout-wrapper"> <a id="dc_express_checkout" href="/checkout/?add-to-cart=<?php echo get_the_ID(); ?>"> <span class="buts">Buy now</span> </a> </div>
The button is created and when clicked on works but does not populate the checkout fields. Instead I get “Private: Checkout” with a button below that to go back to the shopping page.
What am I missing?
Any help would be greatly appreciated. Thank you.
Lode
- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by .
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add Buy now button to variable page’ is closed to new replies.