• Resolved dcbaldwin1

    (@cousti)


    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?

    https://wordpress.org/plugins/woocommerce/

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.