VirtueMart - change 'continue shopping' link to 'previous page'

This forum is for extensions for Joomla! version 1.0

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
fyica
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri Jan 05, 2007 11:58 pm

VirtueMart - change 'continue shopping' link to 'previous page'

Post by fyica » Fri Jan 04, 2008 8:19 pm

Hello,

I `m trying to get the 'continue shopping' link in the shopping cart to go to the previous page instead of the catagory browse page.

I think I`ve found where to make the change in the shop.cart page

(line 27)
$continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.browse&category_id='.$category_id );

I just need the syntax e.g.
$continue_link = PREVIOUS PAGE;

any help with this would be greatly appreciated, thank you

tekno_boy
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Sat Jan 12, 2008 8:52 pm
Contact:

Re: VirtueMart - change 'continue shopping' link to 'previou

Post by tekno_boy » Tue Sep 21, 2010 8:44 am

I need the same thing. I just don't really understand php, so I'm lost.

I'd love it fo someone could help me change the line:
$continue_link=$sess->url($_SERVER['PHP_SELF'].'?option=com_virtuemart' );

..which at the moment sends the user to a page "view all products" which is for some reason empty.
I would prefer to send the usere to the main browse page of the shop. Should be easy for someone who knows what they are doing.

So instead of
$continue_link=$sess->url($_SERVER['PHP_SELF'].'?option=com_virtuemart' );

I want:
$continue_link = <main browse page>

Is that even the right thing to change?
Anyone?

User avatar
RustyJoomla
Joomla! Explorer
Joomla! Explorer
Posts: 396
Joined: Wed Aug 01, 2007 12:08 am
Location: UK
Contact:

Re: VirtueMart - change 'continue shopping' link to 'previou

Post by RustyJoomla » Thu Jun 16, 2011 10:04 pm

This is something I need aswell, but need it to return the customer to the page they were previously on - i.e. :

Add a product to the cart, click ‘continue shopping’. The customer is returned to where they were before going to the cart.

Any ideas?
Follow me on Twitter - http://twitter.com/RustyJoomla
Company Joomla Website - https://storm.agency

verbigena
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Feb 07, 2007 7:43 pm

Re: VirtueMart - change 'continue shopping' link to 'previou

Post by verbigena » Fri Nov 18, 2011 7:11 am

Not sure if you guys found what you're looking for, but I thought I'd post this in case someone else found this and needed it:

In shop.cart.php on line 28(ish)

Code: Select all

$continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.product_details&flypage=flypage_images.tpl&product_id='.$product_id.'&category_id='.$category_id );
Notice I left my flypage static, I could probably dig through and find the variable for it later, but I'm in a hurry now and wanted to leave this for anyone who might find it useful.

jamesstratos
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sun Jul 26, 2009 6:19 pm

Re: VirtueMart - change 'continue shopping' link to 'previou

Post by jamesstratos » Fri Jan 13, 2012 11:07 pm

verbigena -
Thanks for that code - I just made a minor change to fix the theme's css styling which was lost.

Code: Select all

$continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.product_details&flypage=flypage.tpl&product_id='.$product_id.'&category_id='.$category_id );
I changed from flypage_images.tpl to just flypage.tpl and got back my theme css styling.


Locked

Return to “Extensions - 1.0.x”