Skip to content

discount

Auto Added by WPeMatico

Tax calculation after discount

So I have a custom discount applied the following way: on vendormoduleetcsales.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Sales:etc/sales.xsd”> <section name=”quote”> <group name=”totals”> <item name=”testdiscount” instance=”vendormoduleModelQuoteDiscount” sort_order=”500″/> </group> </section> </config> On my vendormoduleModelQuoteDiscount.php class Discount extends MagentoQuoteModelQuoteAddressTotalAbstractTotal { public function __construct( MagentoFrameworkEventManagerInterface… Read More »Tax calculation after discount