Product Icon

Product Add-Ons for WooCommerce

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

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.