/cart-prices-including-tax.xml Secret
Created
November 20, 2018 15:49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<modification> | |
<id>Show amounts including tax in cart</id> | |
<version>1.0.0</version> | |
<vqmver>2.3.0</vqmver> | |
<author>Albert Peschar (albert@peschar.net)</author> | |
<file name="catalog/model/total/sub_total.php"> | |
<operation error="skip"> | |
<search position="replace"><![CDATA[ | |
'value' => $sub_total, | |
]]></search> | |
<add><![CDATA[ | |
'value' => $this->cart->getTotal(), | |
]]></add> | |
</operation> | |
</file> | |
<file name="catalog/model/total/shipping.php"> | |
<operation error="skip"> | |
<search position="replace"><![CDATA[ | |
'value' => $this->session->data['shipping_method']['cost'], | |
]]></search> | |
<add><![CDATA[ | |
'value' => $this->tax->calculate($this->session->data['shipping_method']['cost'], $this->session->data['shipping_method']['tax_class_id']), | |
]]></add> | |
</operation> | |
</file> | |
<file name="catalog/model/total/automatic_shipping.php"> | |
<operation error="skip"> | |
<search position="replace"><![CDATA[ | |
'value' => $cost, | |
]]></search> | |
<add><![CDATA[ | |
'value' => $this->tax->calculate($cost, $tax_class_id), | |
]]></add> | |
</operation> | |
<operation error="skip"> | |
<search position="replace"><![CDATA[ | |
'text' => $this->currency->format($cost), | |
]]></search> | |
<add><![CDATA[ | |
]]></add> | |
</operation> | |
</file> | |
</modification> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment