Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need Help in adding a add to cart button on product info page

Need Help in adding a add to cart button on product info page

Views: 1,179

Results 1 to 7 of 7
8 Apr 2013, 9:05 PM
#1
rmu065 avatar

rmu065

New Zenner

Join Date:
Apr 2013
Location:
United States
Posts:
22
Plugin Contributions:
0

Need Help in adding a add to cart button on product info page

Hi Guys

Can someone point me in the right direction on how to install a add to cart button on my product info pages and not on the tap like it is now. I'm using Adult 07 Premium Zen Cart Template and Zen v1.5.1

Thank You Guys,
Larry

8 Apr 2013, 9:40 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Need Help in adding a add to cart button on product info page

Please provide a link to your site.

8 Apr 2013, 9:43 PM
#3
rmu065 avatar

rmu065

New Zenner

Join Date:
Apr 2013
Location:
United States
Posts:
22
Plugin Contributions:
0

Re: Need Help in adding a add to cart button on product info page

sorry about that it's not letting add the link must be the words in the url lets tray it like this hot s e x toys mart. com

8 Apr 2013, 9:48 PM
#4
rmu065 avatar

rmu065

New Zenner

Join Date:
Apr 2013
Location:
United States
Posts:
22
Plugin Contributions:
0

Re: Need Help in adding a add to cart button on product info page

sorry about that it's not letting me add the link must be the words in the url lets tray it like this hot s e x toys mart. com

8 Apr 2013, 11:02 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Need Help in adding a add to cart button on product info page

Hmpf... a "premium" template that disables two simple stock functions:> Copyright © 2012 YourStore.com A stock Zen Cart will automatically display the current year here, and unless you named your store "YourStore.com" when you installed it, it is missing the automatic store name display.

That should tell you something about the template's maker. No telling what other stock elements or admin settings they have overridden so that you can't easily change your store to suit yourself. There are many HTML errors and outdated coding practices in the template, as well.

Anyway, moving the add to cart button in the product info page is a matter of editing /includes/templates/your_template/templates/tpl_product_info_display.php, and moving the code block marked by either <!--bof AddtoCart_Tab sc3--> or <!--bof Add to Cart Box --> depending on which of these you want to move. It appears that only the tab block is displaying when javascript is enabled for your site, but in that case, the add to cart is always linked in the tab row at the top of the page. Are you saying you want the add to cart above the whole tab row, not depending on clicking a tab before you can click the add to cart? That sounds like a reasonable desire; I wouldn't hide the add to cart inside another normally hidden element. You might need to edit your stylesheet, as it is probably deliberately hiding the non-tab add to cart.

8 Apr 2013, 11:19 PM
#6
rmu065 avatar

rmu065

New Zenner

Join Date:
Apr 2013
Location:
United States
Posts:
22
Plugin Contributions:
0

Re: Need Help in adding a add to cart button on product info page

I would like to add it some where by the product image.

9 Apr 2013, 12:50 AM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Need Help in adding a add to cart button on product info page

Do you mean above the image inside the "Product Description" tab? To do that, you need to move part of the

<!--bof AddtoCart_Tab sc3-->

code block to just after the start of the "sc1" tab div, and eliminate the div wrapper for sc3 so it does not confuse the tab script.

It is fairly complex and needs to be handled just right to maintain correct function.