This adds an upsell option in the EDD checkout for products with variable prices. Each option that has a higher price is shown, and then when you click that, it changes the price.
To see it in action, go to https://CalderaWP.com/caldera-forms-add-ons/ choose and add-on and add it to cart. Then you should see the two more expensive options listed. Click them to get upsold.
This requires EDD 2.6 or the hook will not have the 2nd arg (awesomemotive/easy-digital-downloads#4685)
Things I plan to add to this:
- Better CSS
- Analytics tracking
- Ingot powered A/B testing for how to phrase the the upsell text.