Jump to content

Edit History

Carpe_diem

Carpe_diem

Hi,

I working on a PS 1.6 and my client wants two vouchers which are depending on cart total. He wants me to set an automatic voucher to give 10% of for cart total below 100 € and for  those above 100€ it should give a discount of 20%. The second voucher from 100€ and above is easy to setup as you set the minimum amount in the cart rules. How do I set a maximum amount for the first one? There is no field to enter a value. 

I have tried to set different priorities but it didn't work. Regardless what I do at the momem both vouchers are active if the cart total is 101 € and gives 30% of discount when it should only be 20%.

I tried to add this to CartRule file

           if($cartTotal > 200) {
                $context->cart->addCartRule(101);
            }
			if($cartTotal < 200){
				  $context->cart->addCartRule(100);
			}

The clients wants an automatic solution with no code. 

Can someone help me solve this

Carpe_diem

Carpe_diem

Hi,

I working on a PS 1.6 and my client wants two vouchers which are depending on cart total. He wants me to set an automatic voucher to give 10% of for cart total below 100 € and for  those above 100€ it should give a discount of 20%. The second voucher from 100€ and above is easy to setup as you set the minimum amount in the cart rules. How do I set a maximum amount for the first one? There is no field to enter a value. 

I have tried to set different priorities but it didn't work. Regardless what I do at the momem both vouchers are active if the cart total is 101 € and gives 30% of discount when it should only be 20%.

The wants an automatic solution with no code. 

Can someone help me solve this

×
×
  • Create New...