Add product to cart with quantity zero
-
Hi there,
we are selling translations through a web shop and now I would like to automatically add a “Scan of your translation” product to the cart (which does already work well with a snippet). However, I would like to set the quantity initially to 0 / zero to have the user decide if she/he wants to increase the quantity to 1 in order to get the scans.
add_to_cart( $product_id, 0 );
does not work as nothing gets added in this case. Is there a solution for this?Thanks for help.
Frank
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add product to cart with quantity zero’ is closed to new replies.