cancel
Showing results for 
Search instead for 
Did you mean: 

Apply/change sales rule discount programmatically based on customer group

Apply/change sales rule discount programmatically based on customer group

Is there any way to apply a global discount dynamically based on the customer group.

Eg. Customer A belongs to Group1 and defines global sales discount 10% when he logs in and add products to the cart.

Customer B belongs to Group2 and defines global sales discount 5% when he logs in and adds products to the cart.

Also this discount should be displayed everywhere cart/invoice/shipment.

I have checked several link but all are custom discount like Custom Discount 

Would like to change sales discount on the fly based on customer logged in.

1 REPLY 1

Re: Apply/change sales rule discount programmatically based on customer group

Hi @zaheerbadi,

 

You can create multiple cart price rules without code specific to customer groups. 

 

https://docs.magento.com/user-guide/marketing/price-rules-cart-create.html

 

Using these rules your different customer groups customers will get different discounts.

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!