Description
I sell small items through XCart 4.6.6 shop. Each lot has its own envelope, so when a buyer adds something to a shopping card, the relevant envelope must also be added to the cart. The logic is: if a new envelope is the same or smaller, the previous one should be left, if it is bigger - it must replace the envelope put in the card earlier.