VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: maxispin on March 15, 2012, 07:17:58 AM

Title: Continue shopping link goes to cart
Post by: maxispin on March 15, 2012, 07:17:58 AM
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);
}
Title: Re: Continue shopping link goes to cart
Post by: eldravo on March 27, 2012, 23:39:01 PM
Where can we found that piece of code? I have a similar problem. Perhaps I can found a solution and post it.

Regards,
Title: Re: Continue shopping link goes to cart
Post by: maxispin on March 30, 2012, 10:41:00 AM
components/com_virtuemart/views/cart/view.html.php
Title: Re: Continue shopping link goes to cart
Post by: uschmi on March 30, 2012, 13:29:49 PM
looks like this problem is solved in 2.0.3.H
Title: Re: Continue shopping link goes to cart
Post by: mabeall32 on March 30, 2012, 13:45:44 PM
not for me.  It still just stays in the shopping cart.  It works from the popup. but not in the shopping cart.
Title: Re: Continue shopping link goes to cart
Post by: leFlea on July 13, 2012, 15:09:05 PM
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
Title: Re: Continue shopping link goes to cart
Post by: Milbo on July 13, 2012, 16:07:39 PM
It is stored in the session, yes.