• I am using WooCommerce and have setup my products with the Product Add-ons plugin (https://www.woothemes.com/products/product-add-ons/).

    Is there a way to programmatically add a product to the cart which has addons (from a non woocommerce page)?

    So far I’ve been able to add the raw product with no addons using this ajax call for a product with an id of 28:
    $.post(‘/wp/?post_type=product&add-to-cart=28’;

    This adds the product to the cart with no addons but if I want to pass the addon variables, how can I do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I found this post wanting to do the EXACT same thing. Programmatically add a product to the cart, or via a url, WITH add-ons added. Am also using the addons plugin.

    Thanks!

    I’m in the same boat. Did either of you find out if this is possible?

    Cheerz,
    Wil.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Programmatically add product to cart [WooCommerce & Product Add-ons]’ is closed to new replies.