marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Keep Shopping Link In Same Window - Go Back?

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Keep Shopping Link In Same Window - Go Back? »
Welcome, Guest. Please Login or Register.
12/14/17 at 22:43:45
Home Help Search Login Register
   marty.net message board
   General
   General Stuff
   Keep Shopping Link In Same Window - Go Back?
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Keep Shopping Link In Same Window - Go Back?  (Read 834 times)
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Keep Shopping Link In Same Window - Go Back?
« on: 01/24/08 at 20:30:37 »
Reply with quote Modify message

I know a lot of you have the cart open in a new window but I have always had it open in the same.  Now I am really wondering if that prevents larger orders since people are redirected back to the main page when they hit "keep shopping" as opposed to the normal  action of going back to what you were looking at.  

Does anyone know how to modify this to work correctly?  

Is the simple solution to just open in a new window?  I just don't like that way of shopping because I have never seen any reputable shopping cart experience act like that.

Cheers!  
Jon
Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
Jason
Gold Dragon
****

Posts: 54




   

Re: Keep Shopping Link In Same Window - Go Back?
« Reply #1 on: 01/25/08 at 11:55:36 »
Reply with quote Modify message

When you visit the cart you pass the keep shopping link as a parameter in the url. For example this is the url to your cart:

www.flippinsweetgear.com%2fcgi-bin%2fshop%2fshop.cgi" target="_blank">http://www.cafepress.com/cp/viewcart.aspx?keepshopping=http%3a%2f%2fwww.flippinsweetgear.com%2fcgi-bin%2fshop%2fshop.cgi

Note the keepshopping parameter. You maybe seeing the home page because this param link is invalid or not properly encoded.
Logged

www.viadesigns.com
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Re: Keep Shopping Link In Same Window - Go Back?
« Reply #2 on: 01/25/08 at 12:45:25 »
Reply with quote Modify message

Thanks Marty, but maybe I explained that wrong.  I'm looking to have it go back to the item that was last looked at rather than the default which is what you posted.   It currently goes to http://www.flippinsweetgear.com/ instead of the link that is passed since I set that as the home page in the admin.  That is fine but I want it to go to the page that they added to the cart instead.  Can that be done?  Basicly going backwards.
« Last Edit: 01/25/08 at 12:46:34 by flippinsweetgear » Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Keep Shopping Link In Same Window - Go Back?
« Reply #3 on: 01/25/08 at 23:48:02 »
Reply with quote Modify message

Actually, I think you meant "Thanks Jason."

I'm thinking something like this in cpshop.cgi.images (or shop.cgi.images, in your case):

*||||<input type=hidden name=keepshopping value="http://www.flippinsweetgear.com/cgi-bin/shop/shop.cgi">||||<script language="javascript">document.write('<input type=hidden name=keepshopping value="' + location.href + '">')</script>

You'd have to create a similar link in place of the standard cart link.
« Last Edit: 01/25/08 at 23:48:23 by Marty » Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Re: Keep Shopping Link In Same Window - Go Back?
« Reply #4 on: 01/26/08 at 00:32:19 »
Reply with quote Modify message

LoL.. Thank you Jason.  I'm so used to you Marty answering first.  

That worked beautifully.  You should incorporate that into the next release as an option.  I think that is a much better behavior for shoppers.  I'm surprised I never thought of it sooner.  You are god!
« Last Edit: 01/26/08 at 00:34:21 by flippinsweetgear » Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.