Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Add to cart button --> Advanced search

Add to cart button --> Advanced search

Locked

Views: 1,663

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
5 Mar 2007, 10:36 AM
#1
aaron25 avatar

aaron25

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

Add to cart button --> Advanced search

Hello,
I have some problem with my custom template. If I click my add to cart button the shopping cart page not loading, instead the advanced search page is loading. If I switch to the default template everything is ok. I checked my custom tpl_product_info_display.php file, and replaced the <!--bof Add to Cart Box --> part to what I found in the working original template file, but not worked again.
Could you please help me where is the problem?
(sorry, i know that my english isn't the best :)
thanx,
Aaron

5 Mar 2007, 11:12 AM
#2
kuroi avatar

kuroi

Totally Zenned

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

Re: Add to cart button --> Advanced search

Could you provide a link to the site?

5 Mar 2007, 8:37 PM
#4
kuroi avatar

kuroi

Totally Zenned

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

Re: Add to cart button --> Advanced search

I'm afraid that I don't have an answer for you. After I had finished rolling about laughing at the seven nested divs that this Template Monster template uses to render a single title, I checked the add to cart form and it is pointing where I would expect.

However, Zen Cart works by detecting new items in the shopping cart and redirecting the page to the shopping cart as the page is re-built. This re-direction is not visible on the page, so we can't actually see the code that does it, to see what is going wrong.

This is further complicated by it being a Template Monster template. They really hack the code about, so there's no guarantee that it still operates as intended by the Zen Cart team anyway. I would recommend that you consult with you vendor or with Template Monster support. Although they need to be pushed quite hard, they do seem to have actually answered some of the problems that people have experienced with their templates lately.

6 Mar 2007, 9:17 AM
#5
aaron25 avatar

aaron25

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

Re: Add to cart button --> Advanced search

Thanks for trying help.
However I think it's not a TM issue, beacuse originally it worked, but I made some additional changes.
I'm trying to figure out what is the problem and post if I found it.

6 Mar 2007, 9:22 AM
#6
kuroi avatar

kuroi

Totally Zenned

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

Re: Add to cart button --> Advanced search

I'm afraid that I agree that it is probably something that you have changed. Unfortunately, without knowing what changes you have made and what changes Template Monster may have made to how pages are being built, it's very difficult to advise on this.

7 Mar 2007, 8:23 AM
#7
aaron25 avatar

aaron25

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

Re: Add to cart button --> Advanced search

Good news! I found my mistake, in common/tpl_header.php I deleted some lines, which caused the problem.