/** * @package Sj Minicart Pro for VirtueMart * @version 3.0.0 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * @copyright (c) 2013 YouTech Company. All Rights Reserved. * @author YouTech Company http://www.smartaddons.com * */ defined('_JEXEC') or die; if (!class_exists('plgSystemPlg_Sj_Ajax_MiniCart_Pro')) { echo '<p ><b>' . JText::_('WARNING_NOT_INSTALL_PLUGIN') . '</b></p>'; return; } require_once dirname(__FILE__) . '/core/helper.php'; $layout = $params->get('layout', 'default'); $cart = SjMiniCartProHelper::getList($params); $is_ajax = !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'; $is_ajax_from_minicart_pro = (int) JRequest::getVar('vm_minicart_ajax', 0); if ($is_ajax && $is_ajax_from_minicart_pro) { if (JRequest::getCmd('minicart_task') == 'refresh') { require JModuleHelper::getLayoutPath($module->module, $layout . '_list'); } } else { if ($cart) { $vm_currency_display = CurrencyDisplay::getInstance(); $lang = JFactory::getLanguage(); $extension = 'com_virtuemart'; $lang->load($extension); if ($cart->_dataValidated == true) { $taskRoute = '&task=confirm'; $linkName = JText::_('GO_TO_CART');
?> > <?php echo SjMiniCartProHelper::imageTag($img, $image_config); ?> </a> <div class="mc-remove"><i class="fa fa-times-circle"></i></div> </div> <div class="mc-attribute"> <div class="attr-name attr"> <span class="value"> <a href="<?php echo $product->link; ?> " <?php echo SjMiniCartProHelper::parseTarget($params->get('item_link_target')); ?> title="<?php echo $product->product_name; ?> "> <?php echo $product->product_name; ?> </a> </span> </div> <?php if ($options->product_attribute_display == 1) { $match_count = preg_match_all('#(\\d+):(\\d+);#', $product->virtuemart_product_id, $matchs); $cvp = array();