Bonjour,
Dans le fichier "administrator/components/com_hikashop/classes/currency.php", remplacer:
$discount->discount_value_without_tax = $discount->discount_percent_amount_calculated_without_tax = $discount->discount_percent_amount_calculated = ($price->price_value*floatval($discount->discount_percent_amount)/100.0);
$discount->discount_percent_amount_calculated = 0.0;
$discount->discount_percent_amount_calculated = $price->price_value_with_tax * $discount->discount_percent_amount_calculated_without_tax / $price->price_value_with_tax;
Par
$discount->discount_value_without_tax = $discount->discount_percent_amount_calculated_without_tax = $discount->discount_percent_amount_calculated = ($price->price_value*floatval($discount->discount_percent_amount)/100.0);
$discount->discount_percent_amount_calculated = 0.0;
if($price->price_value_with_tax != 0.0)
$discount->discount_percent_amount_calculated = $price->price_value_with_tax * $discount->discount_percent_amount_calculated_without_tax / $price->price_value_with_tax;
Dans le fichier "administrator/components/com_hikashop/classes/discount.php", remplacer:
$total->prices[0]->price_value_with_tax = $totalnondiscount_with_tax;
$total->prices[0]->price_value = $totalnondiscount;
$currency->addCoupon($total,$coupon2);
Par
$total->prices[0]->price_value_with_tax = $totalnondiscount_with_tax;
$total->prices[0]->price_value = $totalnondiscount;
$total->prices[0]->taxes = array();
$currency->addCoupon($total,$coupon2);
Le problème du calcul du coupon a été corrigé par le précédent patch, ces modifications permettent d'éviter des erreurs de type "warning" mais n'affectant pas le résultat final.
Cordialement,