Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Changing the Continue Shopping Button use.

Changing the Continue Shopping Button use.

Locked

Views: 1,138

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
10 Feb 2009, 1:46 PM
#1
bungenstein avatar

bungenstein

New Zenner

Join Date:
Feb 2009
Posts:
19
Plugin Contributions:
0

Changing the Continue Shopping Button use.

Hi, when a user adds something to the cart, the continue shopping button appears, how would I set that so that when they click it, it closes the cart window.

Cheers!

10 Feb 2009, 2:45 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Changing the Continue Shopping Button use.

I think I must be misunderstanding you ... are you saying that when somebody puts something in their cart on your site but clicks continue shopping instead of checkout, you want to kick them off your site? :lamo:

10 Feb 2009, 2:49 PM
#3
bungenstein avatar

bungenstein

New Zenner

Join Date:
Feb 2009
Posts:
19
Plugin Contributions:
0

Re: Changing the Continue Shopping Button use.

No to add stuff to the cart they are using a different site, the cart opens in a new window. When they press continue shopping I want the cart to close, and so they are back to the normal site.

10 Feb 2009, 3:06 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Changing the Continue Shopping Button use.

So are you saying that you want the shopping cart to be in a popup window?

10 Feb 2009, 3:22 PM
#5
bungenstein avatar

bungenstein

New Zenner

Join Date:
Feb 2009
Posts:
19
Plugin Contributions:
0

Re: Changing the Continue Shopping Button use.

Yes, and I want that popup to close when they press continue shopping.

Thanks.

10 Feb 2009, 5:46 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Changing the Continue Shopping Button use.

I guess you could attach a bit of javascript to the button to close the pop up page. I think that getting your shopping cart into the popup would be a bigger challenge. You'd be better off, putting it into a modal window and removing the continue shopping button in favor of the normal modal window close.

Either way you'd likely have some programming to do to get the shopping cart into an appropriate state to go into a pop up or a modal window, and with the popup you may have some session issues too if a user logged into the original window tried to checkout in the new one.

This can be done but would require a reasonably good knowledge of php, Zen Cart and javascript frameworks (I recommend jQuery).

11 Feb 2009, 10:27 AM
#7
bungenstein avatar

bungenstein

New Zenner

Join Date:
Feb 2009
Posts:
19
Plugin Contributions:
0

Re: Changing the Continue Shopping Button use.

Thanks, forgetting the popup window, how would I edit the button so it would just close the window?

11 Feb 2009, 10:36 AM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Changing the Continue Shopping Button use.

You would change the button link's href attribute to > href="javascript:window.close()"

11 Feb 2009, 12:20 PM
#9
bungenstein avatar

bungenstein

New Zenner

Join Date:
Feb 2009
Posts:
19
Plugin Contributions:
0

Re: Changing the Continue Shopping Button use.

Cheers, I'm having trouble finding which line in which file to edit.

I've searched for "buttonRow back" in the dev kit but I can't see which bit I'm supposed to edit.

11 Feb 2009, 4:43 PM
#10
bungenstein avatar

bungenstein

New Zenner

Join Date:
Feb 2009
Posts:
19
Plugin Contributions:
0

Re: Changing the Continue Shopping Button use.

Any ideas anyone?