Which version is this under?
Hi Mike,
it was happening with the previous woocommerce but i updated to the latest woocommerce this afternoon but it is still happening.
thanks
nate
I think it happens because when you do this it passes add-to-cart to endpoints/referrer field etc, so when these other values get posted it adds the item again.
Does it do the same for your cart page?
I think it happens because when you do this it passes add-to-cart to endpoints/referrer field etc, so when these other values get posted it adds the item again.
Does it do the same for your cart page?
Hi mike,
I changed it so it goes directly to the cart instead of going directly to checkout but the same thing still happens. When i add the product directly from the product page it works fine though
Thanks
nate
Actually just checked and its working for me. Ensure the URL contains trailing slashes etc to prevent extra redirects.
In my case I tried https://local.wordpress.dev/?page_id=15&add-to-cart=38 and it worked.
hi mike does this url look right to you? this is what ive been using
https://diagnosealley.com.au/shop/mood-tonic/checkout/?add-to-cart=3942
thanks
nate
Not right; because when you go to that it changes to something else.
this was the original page – i.e. the subscription page
https://diagnosealley.com.au/mood-tonic-subscription/
and then when you click on the packages at the bottom, it adds the products. this is the url for one of the packages.
https://diagnosealley.com.au/shop/mood-tonic/checkout/?add-to-cart=3942
I get it now! i got rid of /shop/mood-tonic/ and it works now!
Thanks mike for walking me through this.
Really appreciate it!
cheers
nate