$categoryProduct = $products[$id]['category'];
$discount = intval(Client::getDiscount($categoryProduct, Client::getCategory()));
$price = 0;
+ $priceDiscount = 0;
if($basicSellingPrice) {
$price = $basicSellingPrice;
}
$productsMessage[$indexMessage] .= isset($price) && $cartByID[0]['basic_selling_price'] ? $labelPrice . ECommerceCommon::formatPrice($price) . "€ \n" : "";
- if ($discount) {
+ if ($discount && $priceDiscount) {
$productsMessage[$indexMessage] .= $labelPriceDiscount . ECommerceCommon::formatPrice($priceDiscount) . "€ \n";
}
}