Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Can I move the add to cart button?

Can I move the add to cart button?

Locked

Views: 2,678

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
12 Dec 2007, 4:54 PM
#1
pomzie avatar

pomzie

New Zenner

Join Date:
Oct 2007
Location:
Central Texas
Posts:
11
Plugin Contributions:
0

Can I move the add to cart button?

Hello,

Still trying to learn all that I can with the program. I have attributes for my items but it appears that they are at the very bottom of the item description, below the add to cart button. How do I either A) move the add to cart button down to the bottom of the page or B) move the attribute selection up before the add to cart button?

To see what I'm trying to describe, please look here http://pomzie.com/index.php?main_page=product_info&cPath=4&products_id=8. See where the add to cart button is, the information in the box below that needs to be moved up higher because I'm worried that my customers won't know to scroll down far enough.

TIA for your answers and suggestions.

Kari

12 Dec 2007, 5:31 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Can I move the add to cart button?

That's a common need. You can change the display order of any elements in the product info page by moving blocks of code (marked with <!--bof xxxx--> and <!--eof xxxx--> comments) in /includes/templates/your_template/templates/tpl_product_info_display.php. (Copy it from /template_default/common/.)

12 Dec 2007, 6:21 PM
#3
pomzie avatar

pomzie

New Zenner

Join Date:
Oct 2007
Location:
Central Texas
Posts:
11
Plugin Contributions:
0

Re: Can I move the add to cart button?

Ahhhh, okay. I'll mess with that after I back up everything. My luck I'll do something wrong and my entire site will be down! eeekk:ohmy:

12 Dec 2007, 6:26 PM
#4
pomzie avatar

pomzie

New Zenner

Join Date:
Oct 2007
Location:
Central Texas
Posts:
11
Plugin Contributions:
0

Re: Can I move the add to cart button?

WOO HOO! It worked.

THANK YOU THANK YOU THANK YOU!

16 Jan 2008, 11:05 PM
#5
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Can I move the add to cart button?

Sorry for dredging up an old thread, but ...

http://www.stuff4toys.com/index.php?main_page=product_info&cPath=15_74_457&products_id=477

I would like to move the "Add to Cart" box up adjacent to the "Main Product Image", and below the "Product Name" line, right Justified so that the "Product Description" text wraps between the two boxes and then wraps normally below.

This site is wide enough and has enough text to make finding the Add to Cart button a little more difficult than I want it.

Any Idea's???
JOhn ><>

17 Jan 2008, 1:34 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Can I move the add to cart button?

This should be easy.

Edit /includes/templates/your_template/tpl_product_info_display.php and move the code block that starts with

<!--bof Add to Cart Box -->

to just after

<!--eof Product Price block -->

Your #cartAdd is already floated right, so it should settle in like you want it.

17 Jan 2008, 2:15 PM
#7
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Can I move the add to cart button?

gjh42:

This should be easy.

Edit /includes/templates/your_template/tpl_product_info_display.php and move the code block that starts with

<!--bof Add to Cart Box -->

to just after

<!--eof Product Price block -->

Your #cartAdd is already floated right, so it should settle in like you want it.
Interesting ...
So where/what is telling the template to float right the #addCart box? Is it in the stylesheet.css? Can I make the discount box "float right" right under the #addCart box too?

JOhn ><>

18 Jan 2008, 12:19 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Can I move the add to cart button?

Yes, the float is in the stylesheet.
You can make pretty much any element go pretty much anywhere you want, as long as you know what name to call it and how to tell it where to go.