Hi, I have an issue where I need to be able to detect numbers of categorised items in a cart and apply discounts accordingly. Is this possible?
For example, if you have the following in your cart, add a 10% discount.
3 items from category A
2 items from category B
2 items from category C
I should be able to detect the categories in the node application, but I’m not sure how I’d go about using it to apply a discount automatically.
Thanks in advance,