Здравствуйте!
У меня есть такая проблема, Клиент который нажимает который на главной странице нажимает кнопку купить и потом продолжить покупку, то попадает по адресу "/component/virtuemart/" ну я не хочу, чтобы человека перекидывало, нужно чтобы человек оставался на той же странице.
Можете помочь исправить это ?
VirtueMart 2.0.1
Буду очень благодарный, а вот сам кусок шаблона этой кнопки
<?php // Continue Shopping Button
if ($this->continue_link_html != '') {
echo $this->continue_link_html;
} ?>
</div>
<div class="clear"></div>
</div>
<?php echo shopFunctionsF::getLoginForm($this->cart,false);
а вот уже модуль корзины
$categoryLink = '';
$continue_link = JRoute::_('index.php?option=com_virtuemart' . $categoryLink);
$virtuemart_product_ids = JRequest::getVar('virtuemart_product_id', array(), 'default', 'array');
$errorMsg = JText::_('COM_VIRTUEMART_CART_PRODUCT_ADDED');
if ($cart->add($virtuemart_product_ids, $errorMsg )) {
$this->json->msg = '<a class="continue" href="' . $continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING'). '</a>';
$this->json->msg .= '<a class="showcart floatright" href="' . JRoute::_("index.php?option=com_virtuemart&view=cart"). '">' . JText::_('COM_VIRTUEMART_CART_SHOW_MODAL'). '</a>';
if ($errorMsg) $this->json->msg .= '<div>'.$errorMsg.'</div>';
$this->json->stat = '1';
} else {
//// $this->json->msg = '<p>' . $cart->getError(). '</p>';
$this->json->msg = '<a class="continue" href="' . $continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING'). '</a>';
$this->json->msg .= '<div>'.$errorMsg.'</div>';
$this->json->stat = '2';
}
} else {
$this->json->msg = '<a href="' . JRoute::_('index.php?option=com_virtuemart'). '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING'). '</a>';
$this->json->msg .= '<p>' . JText::_('COM_VIRTUEMART_MINICART_ERROR'). '</p>';
$this->json->stat = '0';
}
echo json_encode($this->json);
jExit();
}
Подскажите что подправить.
Заранее спасибо!