Modified Set Attributes action in SIM to make relative adjustments to the quantity of an item. Items can be added/subtracted by appending a + or - character before the number in the action settings.
[Technical]
Changes to "Set Offer Attributes" action when we have Qty value with +/- sign in quantity field
- If contains a number by itself, set it to the number
- If contains + , increment. If the item is not currently selected, select it.
- If contains - and subtracting the numerical amount results in a value > 0.... decrement the qty
- If contains - and subtracting the numerical amount results in a value <= 0, set the qty to zero and deselect the item.
- If there is parsing error... the value in the SIM action field does not contain a plain number, or a number that has a + or - indicator... do nothing. We don't have validation in the editor, but we don't want incorrect values to cause JS errors on the page.