Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Moving "Add to cart box" to bottom of page

Moving "Add to cart box" to bottom of page

Locked

Started by andyase on 8 Oct 2006, 2:44 PM · Views: 2,348

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Oct 2006, 2:44 PM
#1
andyase avatar

andyase

Zen Follower

Join Date:
Oct 2005
Posts:
102
Plugin Contributions:
0

Post #1 by andyase

Hi
I have tried to move the add to cart box to the bottom of the product info page by editing tpl_product_info_display.php I have copied and pasted the top box code to the bottom of the page so that there are 2 boxes, the bottom one will only work in fiefox not ie, any one know an answer to this?

site address is: http://www.letterfromsanta.eu
there is only one test product.

Regards
Andy

8 Oct 2006, 3:21 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

The add-to-cart button needs to appear "before" the closing </FORM> tag earlier in the file.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Oct 2006, 4:15 PM
#3
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

Post #3 by wickedklown

get yourself a copy of Tabbed Products LITE - Admin edition, from the downloads section

install this contrib. you will love everything it offers. and it will alow you to move that add to cart where ever you want. really sweet contrib...

hope this helps

Super Orders2
Info at a glance
export email address
encrypted master pass
quick updates
recover carts
order Tracking
Tabbed products lite - admin edition
Hosted with sashbox.net <- best host around...

9 Oct 2006, 5:17 PM
#4
andyase avatar

andyase

Zen Follower

Join Date:
Oct 2005
Posts:
102
Plugin Contributions:
0

Post #4 by andyase

Thanks for the replys.

I tried the tabbed products lite mod, however my form will not work right in the description, so thats no good for me.

Dr Byte is there any way to get that second "add to cart box" working I'm not sure which </form> you mean!

Anyone else know how to get the second add to cart to work? can the original be positioned at the bottom using css?:lamo:
http://letterfromsanta.eu

Andy

10 Oct 2006, 11:15 AM
#5
abcisme avatar

abcisme

Zen Follower

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

Post #5 by abcisme

I am interested in doing this also - if you figure out how, could you please let me know? Thanks in advance!

12 Oct 2006, 9:07 PM
#6
internetoutfitter avatar

internetoutfitter

New Zenner

Join Date:
Jul 2006
Location:
Las Vegas Nevada
Posts:
25
Plugin Contributions:
0

Post #6 by internetoutfitter

My problem seems to be similar so I will post it here. I notice the add to cart button appears on a product page ABOVE the options/attributes. Some of the products I'm setting up REQUIRE a coice of one or more of the attributes and with the add to cart button just after the product description it is too easy for a customer to overlook this and simply add the product to the cart before selecting from the attributes.

I would like the add to cart button to be BELOW or AFTER the product options/attributes so the customer must scroll down past them and see that they are there. Seems to me this is where the buy now or add to cart buttons SHOULD be placed anyway. If a product has options, the customer should see those options before the by now button.

Isn't there a way to change the order of the placement of the checkout button without having to rewrite code?

Thanks,
Mark Hamilton

12 Oct 2006, 9:55 PM
#7
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #7 by ryk

internetoutfitter:

Isn't there a way to change the order of the placement of the checkout button without having to rewrite code?

Thanks,
Mark Hamilton

Use css for positioning.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

12 Oct 2006, 10:34 PM
#8
abcisme avatar

abcisme

Zen Follower

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

Post #8 by abcisme

I ended up editing the includes/templates/template_default/templates/tpl_product_info_display.php ..

I just moved the code starting at

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

and ending at

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

to just beneath

<!--eof Attributes Module -->

I tried to make the change in my custom template files, but it wasn't working - so I had to edit the default template.. shrug It is where I want it to be now.. At the bottom, above the prev/next and below the attributes.