cancel
Showing results for 
Search instead for 
Did you mean: 

On Sale Algorithm

On Sale Algorithm

Hi everyone. here is a good one for you.

I have a client that is using magento (of course), and they want to do something crazy with on sale items. let me try to explain.

Im going to just use amounts as products...

 

If you buy one item - no discount is applied.

if you buy two items ($100 and $75) - lower of the two gets a 20% discount. so the $75 gets 20% off.

if you buy three items - ($100, $75, $50) - the $50 gets 20% off and the $75 gets 30% off.

if you buy four items - ($100, $75, $50, $25) - The $25 gets the 20%, $50 gets 30%, $75 gets %40 off.

last one

if you buy five items  - ($100, $75, $50, $25, $10) - The $10 gets the 20%, $25 gets 30%, $50 gets %40 and the $75 gets 50% off.

the highest amount never gets a discount.

 

And to throw it for a total loop, it starts all over after 5 items.

so if you have 7 items in your cart it would look like this.

($100, $75, $50, $25, $10) - The $10 gets the 20%, $25 gets 30%, $50 gets %40 and the $75 gets 50% off.

($90, $80) - The $80 gets the 20% off.

 

I have no idea if this is just a dream or what but if someone has a solution or something close please point me to the right direction.

 

Thanks,

Keith

2 REPLIES

Re: On Sale Algorithm

The big question: does item mean 1 of a SKU, or any of an SKU?

Re: On Sale Algorithm

@graygear

 

I don't think through magento default you can achive your needs as I have checked with promotions rules but it works completely as you explian. You can give % discount on certain conditions like (if order > 200 , Buy 1 get 1 free, etc...) . But yes of course it possible through customizing code.  Cheers Smiley Happy

 

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.