Hi, im trying to add an add to cart and buy now button on wc single product page with a sortcode. checkout/?add-to-cart={{dc:woocommerce:product_id}} (add one quantity and redirect to checkout page) its working nicely but it is adding 2 quantity only. needed add only one quantity. there is not seems any plugin conflict. when I test with actual product id like checkout/?add-to-cart=1234** it works nicely. currently it is set to in this way and assign to specific product only one by one button link. please help to needed to add to all product with one quantity to checkout page. thanks
Hi Razick,
Thanks for reaching out.
It is not clear why it is adding the quantity 2 for the product. I would suggest you please provide login credentials for your site in a secure note to examine it further, including:
– WordPress Site URL & Login URL
– WordPress Admin username/password
To create a secure note, click the key icon underneath any of your posts.
Thanks
I have added secure note : thank you
Hi Razick,
I have checked the layout and it seems working correctly. Can you please share some video that shows what you are facing? Also, please copy your live site to a staging server so we can troubleshoot freely without breaking your live site.
And give us access in the secure note including:
– WordPress Site URL & Login URL
– WordPress Admin username/password
To create a secure note, click the key icon underneath any of your posts.
Thanks
I have added a secure note please check and let me know. thank you
Hello Razick,
I checked your site settings it seems that you have added the hard coder URL, I would suggest you please insert the button element add this dynamic content code, and recheck it.
{{dc:woocommerce:checkout_url}}?add-to-cart={{dc:woocommerce:product_id}}
Hope it helps
Thanks
Thank you so much for support. This fixed the issue. Cheers!
Good to hear that Razick.
It’s a pleasure to help you.