proper way to intitialize cart
-
I have a form on a custom page template that uses
$woocommerce->cart->add_to_cart()
to add products to the cart. The problem is, it will only work if a previous cart has been established and/or cleared.How do you initialize a cart (seesion?) so the function
$woocommerce->cart->add_to_cart()
can add the products?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘proper way to intitialize cart’ is closed to new replies.