Author |
Message |
oblockbooks
User - One Blade
Joined: 29 Jul 2005
Posts: 65
|
View Cart/ CheckOut buttons - Continue shopping problem
I have 2 questions. First, can you please tell me the html code for adding a View Cart link and a Checkout link to a static page.
Also, I have added "Add to Cart" buttons to some static pages and they work, however the "Continue Shopping" button in the shopping cart does not. When it is clicked an error page comes up. How do you get it to go back to the page the customer was previously on? Thanks!
|
Mon Aug 15, 05 3:25 pm |
|
|
Dan
Guest
|
hell-o
try this for a viewcart link...
<a href="path-to-agora.cgi-file/agora.cgi?dc=1">View Cart</a>
if that doesn't work i have a form that will.
the easiest way to fix the continue shopping button without being a pro member is to hardcode a link back to your index or sitemap or one particular page.
you can use java script but if the customer goes and changes qty or removes items from their cart then they may have problems. there is or was a post for a js solutions someplace in this forum. probably will have to seach in the add to cart/buy now buttons forum. maybe not.
there is a solution but it's lifetime members only. sorry.
regards,
dan
|
Mon Aug 15, 05 4:04 pm |
|
|
sanrioKitty
Newbie
Joined: 19 Sep 2007
Posts: 6
|
Continue Shopping button
Hi!
My site is:
http://www.frameofchoice.com/agora/agora.cgi
When I add an item to the shopping cart, click on "home" > "View Cart" and then the "Continue Shopping" button, it brings me to one of my product pages but with a "Found x items..." line on top. It also doesn't tack on my customized ProductPage.inc extension.
Any way around this?
Thanks in advance!
|
Wed Sep 26, 07 6:00 pm |
|
|
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
The "Continue Shopping" button returns you to the last page that was viewed.
If you are wanting to use the 1a ppinc file as your default ppinc file, then it needs to be renamed as productPage.inc which is the default ppinc file name...
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Fri Sep 28, 07 8:52 am |
|
|
itzfry
User - One Blade
Joined: 22 Sep 2007
Posts: 40
|
Let me rephrase, I am having the same issue
If you have items in your cart, it works like the last post stated.
However, try this:
If you are sifting through the catgory pages and you click view cart, with nothing in it, then click continue shopping. It then brings you back to the store front, not the last thing you were viewing. I need to know personally, how to take it back to a specific URL to avoid this.
any help?
|
Wed May 28, 08 4:07 pm |
|
|
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Yep, that's the way it works...
If you want the continue shopping button to always go to a specific URL, you will need to edit the cart_footer.inc files
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed May 28, 08 5:05 pm |
|
|
itzfry
User - One Blade
Joined: 22 Sep 2007
Posts: 40
|
Thanks for the verification!
Here is a cut from the cart_footer file. How would you specify a URL in this string?
<input type="image" name="continue_shopping_button"
value="Continue Shopping" src="%%ButtonSetURL%%/continue_shopping.gif">
Thanks in advance!
|
Thu May 29, 08 2:31 pm |
|
|
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Just change that input tag and code it like a regular image link...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Thu May 29, 08 4:12 pm |
|
|
itzfry
User - One Blade
Joined: 22 Sep 2007
Posts: 40
|
This is what I tried
This is the section of the cartfooter.inc file I changed in the html_templates directory:
<input type="image" name="delete_item_button"
value="Delete Items" src="%%ButtonSetURL%%/remove_items.gif">
<input type="image" name="continue_shopping_button"
value="Continue Shopping" src="%%ButtonSetURL%%/continue_shopping.gif" onclick="location.href=http://xxx.xxx.com">
xxx.xxx.com is actually my website name. Still seems to be taking it to the main shopping store front?? Is there anywhere I simply can change the value of the store front to a static URL and/or fix this?
Thanks in advance!
|
Sat May 31, 08 9:16 am |
|
|
itzfry
User - One Blade
Joined: 22 Sep 2007
Posts: 40
|
Here's what worked
Anyone else having trouble, I wanted to report back when i got it working and let everyone know.
Two issues, code previously just wasn't working. So I took another approach. Its listed below.
<a href="http://www.washingtonnuthouse.com" target="_parent">
<IMG src="%%ButtonSetURL%%/continue_shopping.gif"></a>
The second issue is that I was simply editing the wrong file. There is a empty_cart_footer.inc and a cart_footer.inc. With the steps listed above, I had an empty cart, hence the other file. Replacing what was there (the input declarations) and replacing with the above strings, it works now by taking me to the specified URL, something different then the store front.
Hope this helps...
|
Sat May 31, 08 5:05 pm |
|
|
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
You would need to edit all *cart_footer.inc files....
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Sun Jun 01, 08 7:37 am |
|
|
|