Zen Cart Logo
Forums / Basic Configuration / Changing the Add to cart button

Changing the Add to cart button

Views: 25,809

Results 1 to 20 of 39
16 May 2006, 4:19 PM
#1
albert_bouwman avatar

albert_bouwman

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Changing the Add to cart button

Hey

Is it possible to change the location of the "add to cart" button (along with the quanity in stock etc) to the top of the products page, instead of at the bottom? (so above the description)

16 May 2006, 4:30 PM
#2
albert_bouwman avatar

albert_bouwman

New Zenner

Join Date:
May 2006
Posts:
4
Plugin Contributions:
0

Re: Changing the Add to cart button

Got it! Finally after 1 hour of searching.

Mods may delete this post.

16 May 2006, 4:32 PM
#3
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Changing the Add to cart button

Got it! Finally after 1 hour of searching.
Might be an idea to post where you found info you required
so other visitors here can benefit
:wink2:

6 May 2007, 8:09 AM
#5
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changing the Add to cart button

i have a question along the same lines..

i'd like to move my add to cart button within the add-to-cart box, so that it sits next to the quantities box, rather than below it. ive taken a look at the tpl_product_info_display.php and can't locate a break or anything that is forcing the button to sit below the quantity box.

thanks,
mel

6 May 2007, 8:32 AM
#6
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changing the Add to cart button

:smile: just figured it out. i took the two <br />'s out of the Add to Cart Box section within the tpl_product_info_display.php. check out the bolded code below:

         // show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" />**<br />**' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) .** '<br /> .**'  zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
10 Jul 2007, 6:37 AM
#7
telston01 avatar

telston01

New Zenner

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

Re: Changing the Add to cart button

I'm really tired of going through all these posts on the site and everyone says it is so simple to just move the <!--bof Add to Cart Box --> through the <!--eof Add to Cart Box --> to move the Add to Cart button somewhere else on the page.

It doesn't work for me. I can take it off the page and it still shows up. I have even deleted the tpl_product_info_display.php from the site from both my custom template directory and the template_default yet the page still shows up unless... there are no attributes on the page, then it disappears.

What the heck is going on? Why can't I move the Add to cart button under the Attributes box?

http://rememberthewater.com/zencart/index.php?main_page=product_music_info&cPath=62&products_id=183

This is very frustrating.

15 Jul 2007, 6:49 PM
#8
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: Changing the Add to cart button

telston01:

I can take it off the page and it still shows up. I have even deleted the tpl_product_info_display.php from the site from both my custom template directory and the template_default yet the page still shows up unless... there are no attributes on the page, then it disappears.

What the heck is going on? Why can't I move the Add to cart button under the Attributes box?

So, deleting the product_info_display.php probably wont solve the problem of moving the attributes box to below the Add to Cart box. You are right, you should be able to select from <!--bof Add to Cart Box --> through the <!--eof Add to Cart Box -->, cut it, and then paste it below <!--eof Attributes Module --> in your tpl_product_info_display.php. that template file is the page that determines the ordering of your product info pages. so thats where you should move code around to get the display order you like. maybe try cutting and pasting again, just make sure youre cutting all the code you need and then pasting in the right place.

sorry to hear youre having so much trouble!

22 Nov 2008, 8:35 PM
#9
dave63 avatar

dave63

New Zenner

Join Date:
Nov 2008
Posts:
15
Plugin Contributions:
0

Re: Changing the Add to cart button

Hi,
I am not sure if this thread is still open, however, if enybody who knows how to solve the problem, finds this posting, I would really appreciate the answer.
My server admin uploaded the zen template from some clothing store including all of their pics and banners. I deleted all of their stuff, and now that I've set up my own store and merchandise, I don't have the add to cart button on my zen cart. I made all the connections to the mechant services and everything is ready to go, but I just can't figure out how to get the add to cart button on the page. Can somebody help me with that?:wacko:

22 Nov 2008, 8:37 PM
#10
Kim avatar

Kim

Obaa-san

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

Re: Changing the Add to cart button

Admin>Configuration>MyStore>StoreMode>

23 Nov 2008, 2:53 PM
#11
dave63 avatar

dave63

New Zenner

Join Date:
Nov 2008
Posts:
15
Plugin Contributions:
0

Re: Changing the Add to cart button

When I get to "MyStore", there is no option for Store Mode:no:. What do I do now?

23 Nov 2008, 3:26 PM
#12
Kim avatar

Kim

Obaa-san

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

Re: Changing the Add to cart button

Sorry - I called it the wrong thing -

Store Status
What is your Store Status
0= Normal Store
1= Showcase no prices
2= Showcase with prices

23 Nov 2008, 3:48 PM
#13
dave63 avatar

dave63

New Zenner

Join Date:
Nov 2008
Posts:
15
Plugin Contributions:
0

Re: Changing the Add to cart button

Store status is 2.

23 Nov 2008, 4:06 PM
#14
Kim avatar

Kim

Obaa-san

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

Re: Changing the Add to cart button

That is WHY you have no add to cart buttons - change it back to 0- normal store!

23 Nov 2008, 4:12 PM
#15
dave63 avatar

dave63

New Zenner

Join Date:
Nov 2008
Posts:
15
Plugin Contributions:
0

Re: Changing the Add to cart button

When I change it back to 0, I get "sold out" button.

23 Nov 2008, 4:29 PM
#16
Kim avatar

Kim

Obaa-san

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

Re: Changing the Add to cart button

Fix your stock settings - Admin> Configuration> Stock

23 Nov 2008, 4:36 PM
#17
dave63 avatar

dave63

New Zenner

Join Date:
Nov 2008
Posts:
15
Plugin Contributions:
0

Re: Changing the Add to cart button

Thanks a lot.:D It works.:clap:

30 Dec 2009, 7:09 AM
#18
amirgtr avatar

amirgtr

New Zenner

Join Date:
Mar 2009
Posts:
45
Plugin Contributions:
0

Re: Changing the Add to cart button

misty:

For any other members looking to move add to cart button, details
can be found at
http://www.zen-cart.com/forum/showthread.php?t=34132&highlight=move+cart+button
:thumbsup:

Thanks for the link, but I can't view it. It says I don't have the permissions to access that page.

9 Apr 2010, 12:12 AM
#19
dansicle avatar

dansicle

New Zenner

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

Re: Changing the Add to cart button

AmirGTR:

Thanks for the link, but I can't view it. It says I don't have the permissions to access that page.

Same....

14 Apr 2010, 7:28 AM
#20
supra avatar

supra

New Zenner

Join Date:
Jun 2009
Posts:
5
Plugin Contributions:
0

Re: Changing the Add to cart button

AmirGTR:

Thanks for the link, but I can't view it. It says I don't have the permissions to access that page.

Same here, would like to find a solution to this.