Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Created August 18, 2024 20:58
Show Gist options
  • Save unlocomqx/abf348ad8a61e868614981b8ec5f0ab0 to your computer and use it in GitHub Desktop.
Save unlocomqx/abf348ad8a61e868614981b8ec5f0ab0 to your computer and use it in GitHub Desktop.
<?php
/** @var int $id_product */
/** @var float $product_price */
use DynamicProduct\classes\DynamicTools;
use DynamicProduct\classes\module\DynamicCalculator;
if(isset($vat)) {
$dynamicCalculator = new DynamicCalculator(DynamicTools::getModule(), DynamicTools::getContext());
$vat = $dynamicCalculator->getTax($id_product);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment