cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 "Percent of product price discount" on final price

Magento 2 "Percent of product price discount" on final price

Hello,

I have a problem and can't figure out how to fix it.

I created a new cart price rule with a 20% discount I want to subtract the discount after the tax is applied. So if I have an Item which cost 250 € the customer should have 50 € discount. Unfortunately the discount is only 41.85 € (250/1.19 * 20%). So the discount is calculated from the product price without tax. How can I achieve that the discount is applied after the tax?

 

1 REPLY 1

Re: Magento 2 "Percent of product price discount" on final price

@swordwolt

 

Cart rules are set based the subtotal excluding tax. It is because the tax is applied on subtotal based on the tax percentage you set in your Magento tax configurations. 


You'd need to customize the discount feature by writing custom code. Magento 2 allows you to write PLUGINS to overwrite core features. 

 

I hope that helps. 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post