News:

Looking for documentation? Take a look on our wiki

Main Menu

Continue shopping link goes to cart

Started by maxispin, March 15, 2012, 07:17:58 AM

Previous topic - Next topic

maxispin

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);
}
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

eldravo

Where can we found that piece of code? I have a similar problem. Perhaps I can found a solution and post it.

Regards,

maxispin

components/com_virtuemart/views/cart/view.html.php
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

uschmi

looks like this problem is solved in 2.0.3.H

mabeall32

not for me.  It still just stays in the shopping cart.  It works from the popup. but not in the shopping cart.

leFlea

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

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/