Add to cart url shortcode not working after item removed from cart
-
I’m using [add_to_cart_url id=”99″] in order to get a product add to cart url so I can manually make a button. The result is a url such as:
/page-title/?add-to-cart=25
Which clicked, it successfully loads the cart page with the product added in the cart. However, if I remove the item from the cart, then go back to the page where by custom url button is and I click it one more time to add it again, I just get to the cart page and it says “no items in cart.”
This only happens with the add to cart url shortcode. If I use the [add_to_cart id=”25″] shortcode it works fine even after removing the product from my cart and adding it again.
Any ideas how to fix this or achieve what I’m trying to do? Thank you.
- The topic ‘Add to cart url shortcode not working after item removed from cart’ is closed to new replies.