Last active
November 7, 2024 05:53
-
-
Save unlocomqx/76961f3c1878075a04506418b99081d6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
// first read the tax rate of the current product | |
/** @var $module DynamicProduct */ | |
$tax_rate = $module->calculator->getTax($id_product); | |
// then remove it from the calculation result | |
$result = $result / (1 + $tax_rate/100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment