<?php
/**
 *---------------------------------------------------------------------------------------
 * @package       VP Smart Template
 *---------------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2012-2020 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;

if(!empty($viewData['orderable']))
{
	echo '<input type="submit" name="addtocart" class="addtocart-button" value="' . vmText::_('COM_VIRTUEMART_CART_ADD_TO') . '" title="' . vmText::_('COM_VIRTUEMART_CART_ADD_TO') . '" />';
}
else
{
	echo '<input type="submit" name="addtocart" class="addtocart-button-disabled disabled" value="' . vmText::_('COM_VIRTUEMART_ADDTOCART_CHOOSE_VARIANT') . '" title="' . vmText::_('COM_VIRTUEMART_ADDTOCART_CHOOSE_VARIANT') . '" disabled="disabled" />';
}