Adding Variable Product to cart
-
Using the following in a function to add a product variation to a cart. The correct price is printing, but the parent name is printing instead of the variation name. Wonder if anyone knows why this might be happening?
WC()->cart->add_to_cart( $_POST[‘product_id’], 1, $_POST[‘variation_id’]);
thank you in advance,
Andrea
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Adding Variable Product to cart’ is closed to new replies.