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!
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!
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?![]()
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
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.
So are you saying that you want the shopping cart to be in a popup window?
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Yes, and I want that popup to close when they press continue shopping.
Thanks.
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).
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Thanks, forgetting the popup window, how would I edit the button so it would just close the window?
You would change the button link's href attribute tohref="javascript:window.close()"
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
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.
Any ideas anyone?