Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Moving "Add To Cart" On The Bottom

Moving "Add To Cart" On The Bottom

Views: 771

Results 1 to 6 of 6
8 Jun 2011, 12:26 AM
#1
kb08 avatar

kb08

New Zenner

Join Date:
Jun 2011
Posts:
6
Plugin Contributions:
0

Moving "Add To Cart" On The Bottom

I just set up a new store with the current version. My products are highly custom, so I have quite a few attributes with file uploads, etc.

My problem is the add to cart functionality is all the way at the top. Not very good for users to have to scroll all the way back up.

I looked around and found about a dozen different threads on the subject. Pretty much every thread says find tpl_product_info_display and move the contents between <!--bof Add to Cart Box--> and <!--eof Add to Cart Box--> further down the template - preferably after the attribute modules.

Problem is I did this. I tried cutting/pasting and copying to multiple locations. Tried after attributes, after discount tables, etc. Every single time I update the template file my product page content area becomes blank. I've both edited the main template file, and created a new one in my custom theme folder. Both have the same effect.

I've applied modifications to other software over the years, so I'm not exactly a newbie. Kinda pulling my hair out on how simple this seems to be to fix, yet it totally evades me.

8 Jun 2011, 12:36 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: Moving "Add To Cart" On The Bottom

Is your text editor leaving a blank line below the </div> at the end of the .php file?

8 Jun 2011, 1:08 AM
#3
kb08 avatar

kb08

New Zenner

Join Date:
Jun 2011
Posts:
6
Plugin Contributions:
0

Re: Moving "Add To Cart" On The Bottom

I normally use notepad++, so I tried copying the whole document into notepad and uploading. Same result: blank content area. I am 100% sure there were no line breaks or spaces after the </div>

thanks for replying!

8 Jun 2011, 1:51 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: Moving "Add To Cart" On The Bottom

Here is the tutorial on the procedure:

https://www.zen-cart.com/tutorials/index.php?article=5

And you would edit: your_template/ templates/ tpl_product_info_display.php

8 Jun 2011, 2:58 PM
#5
kb08 avatar

kb08

New Zenner

Join Date:
Jun 2011
Posts:
6
Plugin Contributions:
0

Re: Moving "Add To Cart" On The Bottom

Thanks for that! I was apparently doing it wrong. Instead of moving the PHP code for the add to cart button down, you have to copy and paste the HTML source.

:oops:

8 Jun 2011, 11:10 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: Moving "Add To Cart" On The Bottom

Your welcome and ty for posting the solution..

BTW, I have done that many times too..:smile:.