One of the ways this library has been extended in one project is by allowing price modifiers.
It would make sense to introduce new functions for addPriceModifier, updatePriceModifier and deleteModifier. Along with new functions to generate cart prices with and without modifiers.
Each modifier can essentially be another item that has id/name/description/quantity etc.
One of the ways this library has been extended in one project is by allowing price modifiers.
It would make sense to introduce new functions for
addPriceModifier
,updatePriceModifier
anddeleteModifier
. Along with new functions to generate cart prices with and without modifiers.Each modifier can essentially be another
item
that hasid
/name
/description
/quantity
etc.