<?php
/**
* @package HikaShop for Joomla!
* @version 1.4.3
* @author hikashop.com
* @copyright (C) 2010 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<span class="hikashop_checkout_coupon" id="hikashop_checkout_coupon">
<?php
if(empty($this->coupon)){
echo JText::_('HIKASHOP_ENTER_COUPON');
?>
<input id="hikashop_checkout_coupon_input" type="text" name="coupon" value="" />
<?php
echo $this->cart->displayButton(JText::_('ADD'),'refresh',$this->params,hikashop::completeLink('checkout'),'',' onclick="return hikashopCheckCoupon(\'hikashop_checkout_coupon_input\');"');
}else{
echo JText::sprintf('HIKASHOP_COUPON_LABEL',@$this->coupon->discount_code);
?>
<a href="<?php echo hikashop::completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'); ?>" ><img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" alt="remove coupon" /></a>
<?php }?>
</span>