VM: 2.0.3A
Front end: Cart
If the cart is empty, the 'continue shopping'-link is not working correctly. It goes back to cart.
Guessing if in the 'private function prepareContinueLink' is something wrong. Is the link even generated?
private function prepareContinueLink() {
// Get a continue link */
$virtuemart_category_id = shopFunctionsF::getLastVisitedCategoryId();
$categoryLink = '';
if ($virtuemart_category_id) {
$categoryLink = '&virtuemart_category_id=' . $virtuemart_category_id;
}
$continue_link = JRoute::_('index.php?option=com_virtuemart&view=category' . $categoryLink);
$continue_link_html = '<a class="continue_link" href="' . $continue_link . '" >' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</a>';
$this->assignRef('continue_link_html', $continue_link_html);
$this->assignRef('continue_link', $continue_link);
}
Where can we found that piece of code? I have a similar problem. Perhaps I can found a solution and post it.
Regards,
components/com_virtuemart/views/cart/view.html.php
looks like this problem is solved in 2.0.3.H
not for me. It still just stays in the shopping cart. It works from the popup. but not in the shopping cart.
Also happening to me when the cart is empty... Joomla 2.5.6, Virtuemart 2.0.8. User has to click the link 2 or three times to be taken to another page, hence 2 or 3 page loads after.
Seems like a category must be visited before a continue link can be valid on first try? Is last visited category stored using cookies?
http://tan-gan.com/phase2/shop/shopping-bag
It is stored in the session, yes.