add_to_cart shortcode quantity argument
-
I am using the add_to_cart shortcode within a page to output a button to add a product to the cart. I wish to add 2 of the product to the cart, so am using the argument quantity=”2″. However, only 1 is added to the cart. Example:
[add_to_cart id="1234" quantity="2" show_price="FALSE" style=""]
The button that is output contains link with query string:
?add-to-cart=1234
.
I was expecting the string to be:?add-to-cart=1234&quantity=2
.Am I misunderstanding what the shortcode quantity argument should do? Or is this not working as it should?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.