I want to make a page in my admin panel to manage discounts by item type (folder). I'm not looking for discounts or promo codes, but automatically-applied discounts similar to how the Square app uses them. Ex: if a person buys two items in Category A, they get $5 off. If they buy two items from Category B, they get $2 off.
I've seen ways to set up sliding scales for prices, but they appear to be either cart-level (category doesn't matter) or item-level (buy two of the same item, get discount).
My ideal solution would be to have an admin panel page that grabs the list of folders and lets me adjust the discounts from there. The cart would check to see if the discounts apply and update accordingly. Making the page for the discounts seems straightforward enough, but how would I make the cart apply them?
I've seen ways to set up sliding scales for prices, but they appear to be either cart-level (category doesn't matter) or item-level (buy two of the same item, get discount).
My ideal solution would be to have an admin panel page that grabs the list of folders and lets me adjust the discounts from there. The cart would check to see if the discounts apply and update accordingly. Making the page for the discounts seems straightforward enough, but how would I make the cart apply them?