<?php
/**
 *---------------------------------------------------------------------------------------
 * @package       VP Smart Template
 *---------------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2012-2021 VirtuePlanet Services LLP. All rights reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       Abhishek Das
 * @email         info@virtueplanet.com
 * @link          https://www.virtueplanet.com
 *---------------------------------------------------------------------------------------
 */
defined('_JEXEC') or die('Restricted access');
?>
<?php if ($this->layoutName != 'default') : ?>
	<form method="post" name="enterCouponCode" action="<?php echo JRoute::_('index.php'); ?>">
		<div class="input-group">
			<input type="text" name="coupon_code" size="20" maxlength="50" class="coupon form-control" alt="<?php echo $this->coupon_text ?>" placeholder="<?php echo $this->coupon_text ?>" />
			<span class="input-group-btn">
				<button type="submit" class="btn btn-default" title="<?php echo vmText::_('COM_VIRTUEMART_SAVE'); ?>"><?php echo vmText::_('COM_VIRTUEMART_SAVE'); ?></button>
			</span>
		</div>
		<input type="hidden" name="option" value="com_virtuemart" />
		<input type="hidden" name="view" value="cart" />
		<input type="hidden" name="task" value="setcoupon" />
		<input type="hidden" name="controller" value="cart" />
</form>
<?php else : ?>
	<div class="input-group">
		<input type="text" name="coupon_code" size="20" maxlength="50" class="coupon form-control" alt="<?php echo $this->coupon_text ?>" placeholder="<?php echo $this->coupon_text ?>" />
		<span class="input-group-btn">
			<button type="submit" class="btn btn-default" title="<?php echo vmText::_('COM_VIRTUEMART_SAVE'); ?>"><?php echo vmText::_('COM_VIRTUEMART_SAVE'); ?></button>
		</span>
	</div>
<?php endif; ?>