Forums / Templates, Stylesheets, Page Layout / position of add this to cart box

position of add this to cart box

Locked

Started by docrocks on 2 Feb 2010, 9:51 PM · Views: 1,277

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
2 Feb 2010, 9:51 PM
#1
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

position of add this to cart box

I've looked in the menus of the admin section but can't seem to find a control to position the "add this to cart" box on the product page. Where is that pesky control?

DocRocks
My goal is to consume the Web, one byte at a time.

2 Feb 2010, 11:09 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: position of add this to cart box

There is no admin control of the add to cart position. You need to move the code block in tpl_product_info_display.php to the display order you want, and then fine-tune it in the stylesheet.

3 Feb 2010, 3:07 PM
#3
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: position of add this to cart box

Thanks - I'm using ZC 1.3.8. My goal is to move the options above the add to cart box on this page:
http://sportsessentialsinc.com/shop/index.php?main_page=product_info&cPath=5_7&products_id=1

I tried changing the order of the code blocks in tpl_product_info_display.php and used Firefox to inspect and tweak the css for these blocks but no joy. What am I missing?

DocRocks
My goal is to consume the Web, one byte at a time.

3 Feb 2010, 3:17 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: position of add this to cart box

Where do you want it? The id is #cartAdd in the stylesheet.

3 Feb 2010, 3:26 PM
#5
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: position of add this to cart box

Right - I do see that and tried changing margin settings but that didn't achieve the result I want which is to move the add to cart box below the options dropdown box. Again, what have I missed?

DocRocks
My goal is to consume the Web, one byte at a time.

3 Feb 2010, 4:39 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: position of add this to cart box

You'll still have to edit tpl_product_info_display to move everything between <!--bof Add to Cart Box --> and <!--eof Add to Cart Box --> to below the attributes section. Then you can change the float in #cartAdd to left from right. I think that should do it.

3 Feb 2010, 9:43 PM
#7
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: position of add this to cart box

stevesh:

You'll still have to edit tpl_product_info_display to move everything between <!--bof Add to Cart Box --> and <!--eof Add to Cart Box --> to below the attributes section. Then you can change the float in #cartAdd to left from right. I think that should do it.

Seems like it should work but changing the order of the add to cart code doesn't seem to be working for me.

The attached modified tpl file is in an override folder at
sportsessentials.com\shop\includes\templates\template_default\templates\theme073

I've changed the name of the tpl file in the main directory so Zen Cart shouldn't be using it.

Again, what am I missing - sigh!

DocRocks
My goal is to consume the Web, one byte at a time.

4 Feb 2010, 11:25 AM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: position of add this to cart box

The override folders don't work that way. It should be in includes/templates/theme073/templates

I've changed the name of the tpl file in the main directory so Zen Cart shouldn't be using it.*

I don't know what exactly that means, but you don't need to change any file names.

4 Feb 2010, 2:03 PM
#9
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: position of add this to cart box

Aha! Correcting the override path did it. Obviously I'm still not clear on where to put override folders.

Many thanks.

DocRocks
My goal is to consume the Web, one byte at a time.