Skip to content

Instantly share code, notes, and snippets.

@unlocomqx
Created November 15, 2023 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unlocomqx/ffd34aaa61301c4263a7ee8dd0a44a74 to your computer and use it in GitHub Desktop.
Save unlocomqx/ffd34aaa61301c4263a7ee8dd0a44a74 to your computer and use it in GitHub Desktop.
<?php
class Product extends ProductCore
{
public static function getPriceStatic($id_product, $usetax = true, $id_product_attribute = null, $decimals = 6, $divisor = null, $only_reduc = false, $usereduc = true, $quantity = 1, $force_associated_tax = false, $id_customer = null, $id_cart = null, $id_address = null, &$specific_price_output = null, $with_ecotax = true, $use_group_reduction = true, Context $context = null, $use_customer_price = true, $id_customization = null)
{
// si HT, on désactive l'ecotaxe
if (!$usetax) {
$with_ecotax = false;
}
return parent::getPriceStatic($id_product, $usetax, $id_product_attribute, $decimals, $divisor, $only_reduc, $usereduc, $quantity, $force_associated_tax, $id_customer, $id_cart, $id_address, $specific_price_output, $with_ecotax, $use_group_reduction, $context, $use_customer_price, $id_customization); // TODO: Change the autogenerated stub
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment