Zen Cart Logo
Forums / General Questions / Add to cart button - bad link

Add to cart button - bad link

Locked

Views: 1,055

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
2 Mar 2009, 10:35 PM
#1
jhua002 avatar

jhua002

New Zenner

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

Add to cart button - bad link

My template is giving me trouble. Here is the site, https://www.displaysignboard.com , if you try to add an item to cart from the CATEGORY page instead of the product detail page, it will give error. I have narrowed it down the problem to the link on the category pages. There is a index.php that shouldn't be in the links. Can someone tell me how to get rid of this? any idea where to change this? Thanks! greatly appreciate any help.

3 Mar 2009, 1:27 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Add to cart button - bad link

If you turn off the SEO URL add on, you have does it work?

5 Mar 2009, 12:35 AM
#3
jhua002 avatar

jhua002

New Zenner

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

Re: Add to cart button - bad link

yes it does work when i turn off SSU. Anyway to fix this?

5 Mar 2009, 3:50 AM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Add to cart button - bad link

It's more than likely your template creates a bad form of add to cart links on those pages.
I would do this to debug:

  1. turn of the seo module
  2. view the source code of the page to see how the form action link looks like, is there anything weird with it?

Alternatively, you can check the module and template code for the category listing directly, and see if there is something wrong.

Another thing you can also check is to switch back to default template (provided that you used the template override system correctly), and see if the link generated there work correctly.

5 Mar 2009, 9:26 PM
#5
jhua002 avatar

jhua002

New Zenner

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

Re: Add to cart button - bad link

I am still new to all of this so it'll be hard for me to spot errors even if i knew how to check the code for categories, which i don't. I know it's a problem with the template since everything works fine in another cart in which i am running ssu with zen cart. Can someone break down for me where to check the categories link action step by step? thanks.

5 Mar 2009, 9:57 PM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Add to cart button - bad link

Since you also got some error last time with the category sidebox links in bad form, I would assume you get a badly coded template.

Anyhow, I would check the file includes/modules/products_listing.php or includes/modules/your_template/products_listing.php

jhua002:

I am still new to all of this so it'll be hard for me to spot errors even if i knew how to check the code for categories, which i don't. I know it's a problem with the template since everything works fine in another cart in which i am running ssu with zen cart. Can someone break down for me where to check the categories link action step by step? thanks.

5 Mar 2009, 10:52 PM
#7
jhua002 avatar

jhua002

New Zenner

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

Re: Add to cart button - bad link

thanks a great deal. Got it fixed. Yes this template is badly written, will avoid in future.