The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jan 04, 2008 8:19 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jan 05, 2007 11:58 pm
Posts: 16
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


Top
 Profile  
 
PostPosted: Tue Sep 21, 2010 8:44 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 12, 2008 8:52 pm
Posts: 35
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?

_________________
Knowing everything isn't the goal. Knowing what the goal is, is everything. http://www.youtukan.com http://www.neuropool.com


Top
 Profile  
 
PostPosted: Thu Jun 16, 2011 10:04 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Aug 01, 2007 12:08 am
Posts: 232
Location: Kent, UK
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?

_________________
Company site - http://www.stormit.co.uk
Follow me on Twitter - http://twitter.com/stormit


Top
 Profile  
 
PostPosted: Fri Nov 18, 2011 7:11 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Feb 07, 2007 7:43 pm
Posts: 10
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:
$continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.product_details&amp;flypage=flypage_images.tpl&amp;product_id='.$product_id.'&amp;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.


Top
 Profile  
 
PostPosted: Fri Jan 13, 2012 11:07 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 26, 2009 6:19 pm
Posts: 12
verbigena -
Thanks for that code - I just made a minor change to fix the theme's css styling which was lost.

Code:
$continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.product_details&amp;flypage=flypage.tpl&amp;product_id='.$product_id.'&amp;category_id='.$category_id );


I changed from flypage_images.tpl to just flypage.tpl and got back my theme css styling.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group