Product Icon

Product Add-Ons for WooCommerce

Trending
Offer add-ons like gift wrapping, special messages or other special options for your products.

Add Product Add ons in cart using add-to-cart URL

It should allow the product add on to be added in cart with product when

site.com/checkout?add-to-cart=product_id&add_on_name:quantity used.

Author

Current Status

Completed

Last updated: April 3, 2020

2 comments

Log in to comment on this feature request.

  1. jaskyt8 says:
    Product developer November 21, 2024 8:34 am

    Hey there,

    Thanks for the suggestion!

    As of Product Add-ons v7.2.0, it is now possible to programmatically add add-ons to the cart via a custom URL. If the product ID is 10 and it has a price add-on with ID 20, then the query parameter that you would need to add to your add to cart URL would be like this: ‘addon-10-20=30’, where 30 is the add-on value.

  2. Chad Barretta says:

    Add to cart URLs still do not work 3 years later.

    site.com/cart/?add-to-cart=77029&quantity=1&addon-77029-0=test&addon-77029-1=test