diff --git a/modules/loyalty/loyalty.php b/modules/loyalty/loyalty.php index 7c62898f..dca766b6 100755 --- a/modules/loyalty/loyalty.php +++ b/modules/loyalty/loyalty.php @@ -470,12 +470,11 @@ class Loyalty extends Module $discountValue = 0; $smarty->assign('no_pts_discounted', 1); } else { - $discountValue = (int)(LoyaltyModule::getDiscountValueByPrice($product->getPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? false : true, (int)($product->getIdProductAttributeMostExpensive())))); + $discountValue = (float)(LoyaltyModule::getDiscountValueByPrice($product->getPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? false : true, (int)($product->getIdProductAttributeMostExpensive())))); } $discountValueAfter = $discountValue; $discountValueBefore = 0; } - $smarty->assign(array( 'discountValue' => $discountValue, 'total_discounts' => $discountValueAfter,