<?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('Restricted access');

$messageQueue = JFactory::getApplication()->getMessageQueue();
?>
<div class="vm-ajax-cart-popup">
	<?php if(!empty($messageQueue)) : ?>
		<?php foreach($messageQueue as $message) : ?>
			<p class="hasError"><?php echo $message['message'] ?></p>
		<?php endforeach; ?>
	<?php else : ?>
		<p class="hasError"><?php echo vmText::_('COM_VIRTUEMART_CART_ERROR_NO_VALID_QUANTITY') ?></p>
	<?php endif; ?>
	<div class="ajax-popup-buttons">
		<a class="btn btn-default" href="<?php echo $this->continue_link ?>"><?php echo vmText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') ?></a>
	</div>
</div>