Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Last active November 7, 2024 05:53
Show Gist options
  • Save unlocomqx/76961f3c1878075a04506418b99081d6 to your computer and use it in GitHub Desktop.
Save unlocomqx/76961f3c1878075a04506418b99081d6 to your computer and use it in GitHub Desktop.
<?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