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.
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.
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.
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