Looking at adding an item option on some products ...
# suitecommerce
d
Looking at adding an item option on some products - something like
[ x ] add extended warranty ($10)
or something like that.
Not sure the best way to go about this - item options don't seem to change the price, and you can't have matrix items out of kits, which these products are.
Any insight into the best way to go about this?
m
@David Stillman - I'd have a bit of a look at the Gift Wrap extension https://developers.suitecommerce.com/section1533645221 as a good place to start. That's effectively adding a non-inventory item to an order alongside an item and optionally charging for it
🙏 1
a
I have written code that exactly does this (although a lot more complex). I use the "Validate Line" function in a client script that calculates the price and sets the rate and amount. If done right, it will show the correct price in the cart. Keep in mind that you will need to create a similar script in the UI if you set up orders manually as well. Also, you will need to have the product page calculate this, if desired, since this occurs before the line is validated (it is really just for show).