Merge branch 'ticket-fidelite' into develop

This commit is contained in:
Marion Muszynski 2016-04-21 11:39:49 +02:00
commit 0d92bae9f9

View File

@ -535,10 +535,10 @@ class Loyalty extends Module
if (Validate::isLoadedObject($params['cart']))
{
$discount_value = LoyaltyModule::getCartNbPoints($params['cart']);
$discount_value = LoyaltyModule::getCartDiscountValue($params['cart']);
$smarty->assign(array(
'discount_value' => (int)$discount_value,
'voucher' => LoyaltyModule::getVoucherValue((int)$discount_value),
'discount_value' => $discount_value,
'voucher' => $discount_value,
'guest_checkout' => (int)Configuration::get('PS_GUEST_CHECKOUT_ENABLED')
));
} else {