getCustomerId(); $displayOriginal = true; $canSubmit = true; $points_currently_used = Mage::helper('rewardpoints/event')->getCreditPoints(); $couponCode = Mage::getSingleton('checkout/cart')->getQuote()->getCouponCode(); $pts = Mage::helper('rewardpoints/data')->getPointsOnOrder(); if (!$customerId): ?>

__('Reward points'); ?>

__("This shopping cart worths %s loyalty point(s).", $pts);?>
load($customerId); //points required to get 1 € $points_money = Mage::getStoreConfig('rewardpoints/default/points_money', Mage::app()->getStore()->getId()); //step to reach to get discount $step = Mage::getStoreConfig('rewardpoints/default/step_value', Mage::app()->getStore()->getId()); //check if step needs to apply $step_apply = Mage::getStoreConfig('rewardpoints/default/step_apply', Mage::app()->getStore()->getId()); $full_use = Mage::getStoreConfig('rewardpoints/default/full_use', Mage::app()->getStore()->getId()); $order_details = Mage::getSingleton('checkout/session')->getQuote()->getSubtotal(); if (Mage::getStoreConfig('rewardpoints/default/math_method', Mage::app()->getStore()->getId()) == 1){ $cart_amount = round($order_details); } else { $cart_amount = floor($order_details); } $max_use = min(Mage::helper('rewardpoints/data')->convertMoneyToPoints($cart_amount), $customerPoints->getPointsCurrent()); ?> getStore()->getId()) == 1 && ($couponCode == "" || $couponCode == null) || Mage::getStoreConfig('rewardpoints/default/coupon_codes', Mage::app()->getStore()->getId()) == 0):?>

__('Reward points'); ?>

__("This shopping cart worths %s loyalty point(s).", $pts);?>
$customerPoints->getPointsCurrent()):?>

__('You have %d loyalty point(s) available.', $customerPoints->getPointsCurrent()); ?>

__('To get a discount you need at least %d loyalty point(s).', $step); ?>

__('Enter quantity of loyalty point(s) you want to use.') ?>

__('You have %d loyalty point(s) available.', $customerPoints->getPointsCurrent()); ?>

type="hidden"type="text" value="" name="points_to_be_used" class="input-text" /> getCreditPoints(); ?>

__('Reward points'); ?>

__("This shopping cart worths %s loyalty point(s).", $pts);?>

__('You are currently using %d point(s) of your %d loyalty point(s) available.', $points_currently_used, $customerPoints->getPointsCurrent()); ?>

getStore()->getId()) == 1 && ($points_currently_used < 1 || $points_currently_used == null) || Mage::getStoreConfig('rewardpoints/default/coupon_codes', Mage::app()->getStore()->getId()) == 0):?> getChildHtml('coupon_original');?>