Add to cart not working?

General ShopSite user discussion

Add to cart not working?

Postby Shuto » Fri Sep 10, 2010 1:09 pm

I am haveing a issue on some of my items add to cart botton. When i click add to cart i am getting an error saying that the webpage can not be found.

Any ideas on where these setting are and how i can change it?

Thanks for any help
Shuto
 
Posts: 5
Joined: Wed Sep 08, 2010 3:35 pm

Re: Add to cart not working?

Postby Jim » Fri Sep 10, 2010 1:51 pm

Without seeing the code that is being executed it would be nearly impossible to determine what the problem is.
Do you have a link to the page where the problem exists?
What is the url that the form is submitting too, or the href url?
If a form submit, is it within another form so an improper url is being generated when you submit the form?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Add to cart not working?

Postby Shuto » Fri Sep 10, 2010 3:10 pm

here is one of the pages that areant woking http://www.logfinish.com/store/Shell-GuardRTU.php

If you scroll down to add to cart youll notice the botton isnt showing and the url it sends you to is wrong also.

Not sure where these setting are so that i can fix this.

Thanks agian
Shuto
 
Posts: 5
Joined: Wed Sep 08, 2010 3:35 pm

Re: Add to cart not working?

Postby loren_d_c » Fri Sep 10, 2010 3:30 pm

I doubt it is a setting, it looks more like a problem with your custom product template and the form URL that clicking the Add to Cart button is submitting to. The form action URL looks like this:

<form action="LogFinish/http://www.logfinish.com/cgi-logfinish/sb/order.cgi" method=post onSubmit="setPrice('281:price_1',document.getElementById('281:itemnum_1'))">

So when you click the submit button it sends you to a URL that looks like this, which is wrong:

http://www.logfinish.com/store/LogFinish/http://www.logfinish.com/cgi-logfinish/sb/order.cgi


So this part of the tag:

action="LogFinish/http://www.logfinish.com/cgi-logfinish/sb/order.cgi"

Should be this instead:

action="http://www.logfinish.com/cgi-logfinish/sb/order.cgi"

Again, this is probably the result of a mistake your custom product template. If you didn't make the template yourself, please contact the person who did to have them fix this.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Add to cart not working?

Postby Shuto » Fri Sep 10, 2010 3:39 pm

I got this working thanks for the help..Managed to run into this in the custom templates while browing through them to make sure everything looked right and saw exactly what u said fixed it and seems to be working fine.

Thanks agian
Shuto
 
Posts: 5
Joined: Wed Sep 08, 2010 3:35 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 113 guests