Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Continue Shopping button in cart,doesnt work

Continue Shopping button in cart,doesnt work 11 years 2 weeks ago #3161

Ive had a search through the forums but cant see this problem has popped up before?

The continue shopping button (top right of the cart pages) doesnt work with SH404 enabled.
The link just tries to send you to www.mysite.com/virtuemart

Is this s problem that youve seen before?
Is there a fix I can add in?
or do you know of a way that this link can be ignored by SH404?

It works perfect when SH404 is off, but SH404 is essential to us!

Thanks in advance

Andy
Attachments:
The administrator has disabled public write access.

Continue Shopping button in cart,doesnt work 11 years 2 weeks ago #3165

What does the link resolve to?

Also to get SH404SEF to ignore it/change it - that's more a question for them.. :)
The administrator has disabled public write access.

Continue Shopping button in cart,doesnt work 11 years 2 weeks ago #3169

It always resolves to www.mysite.com/virtuemart

Just wanted to get ideas and see if its cropped up before as guess there lots of puremart users, using SH404 too?
The administrator has disabled public write access.

Continue Shopping button in cart,doesnt work 11 years 2 weeks ago #3170

Hi Andy,

Just did a quick search of this forum and not a mention of continue shopping woes...

I think you would be better off directing your question to the SH404SEF people - there must be a solution in their mega admin section.. ;)

Cheers
The administrator has disabled public write access.

Continue Shopping button in cart,doesnt work 11 years 1 week ago #3329

I posted this Question to SH404 SEF and they say it is problem within virtuemart itself.
issue is caused by virtuemart which render that "continue shopping" with missing &Itemid value

I checked the latest releases of VM & its changelog and this doesn't seem to have been added yet, although there a few people asking for it in VM forums.

Here is a modification that can be applied from a user in teh VM forum, but is a core change which will obviously be overwritten with upgrades.

forum.virtuemart.net/index.php?topic=108000.msg379354#msg379354
Last Edit: 11 years 1 week ago by Andy Connell.
The administrator has disabled public write access.

Continue Shopping button in cart,doesnt work 11 years 1 week ago #3334

Thanks Andy for letting us know - added as Sticky
The administrator has disabled public write access.

Continue Shopping button in cart,doesnt work 10 years 6 months ago #6540

Hi Guys,

Thanks for posting this up as a sticky, but it is now longer relevant in VM2.0.22C

The problem still exists, but the file that was modified has completely changed and I am now trying to find a new fix - any help from the Flexible community welcomed!

When using SH404SEF and adding a product to the cart, the continue shopping button always sends you back to the home page, which is a bit of a pin to users if the are already deep in a shop category.
At the moment I cant seem what to change in that file in order to add the menu itemid to the continue shopping link, as this is whats causing the problem.

Thanks

Andy
The administrator has disabled public write access.

Continue Shopping button in cart,doesnt work 10 years 6 months ago #6543

Hi,

To change the "continue shopping" link URL manually, do the customization in this PHP file:
root/components/com_virtuemart/views/cart/view.html.php

And look for this line:
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, FALSE);
 
		$continue_link_html = '<a class="continue_link" href="' . $continue_link . '" ><span>' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . '</span></a>';
		$this->assignRef('continue_link_html', $continue_link_html);
		$this->assignRef('continue_link', $continue_link);
	}

I don't know what sh404SEF is redirecting this URL, this is not our area to solve this problem, but you can manually change this line:
$continue_link = JRoute::_('index.php?option=com_virtuemart&view=category' . $categoryLink, FALSE);

to
$continue_link = "MANUAL URL GOES HERE";

At least it is better than going to homepage.

Regards.
Last Edit: 10 years 6 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.147 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo