Zen Cart Logo
Forums / Addon Templates / Need Help Adding a button to product page - Apple Zen

Need Help Adding a button to product page - Apple Zen

Locked

Views: 1,427

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
29 Jan 2010, 3:46 PM
#1
directdesign avatar

directdesign

New Zenner

Join Date:
Sep 2007
Posts:
14
Plugin Contributions:
0

Need Help Adding a button to product page - Apple Zen

Please Help,

I am trying to add a Twitter/Facebook/blog button to the products page. I am using apple_zen template. I can not figure out which file to put it in and where with in that file to put it.

It is from AddThis and the code is as follows

<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style"> <a href="http://www.addthis.com/bookmark.php?v=250&username=thehouseofdecor" class="addthis_button_compact">Share</a> <span class="addthis_separator">|</span> <a class="addthis_button_facebook"></a> <a class="addthis_button_myspace"></a> <a class="addthis_button_google"></a> <a class="addthis_button_twitter"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=thehouseofdecor"></script> <!-- AddThis Button END -->

Help!!!!!!!

1 Feb 2010, 7:47 AM
#2
vjef avatar

vjef

New Zenner

Join Date:
Jan 2010
Posts:
90
Plugin Contributions:
2

Re: Need Help Adding a button to product page - Apple Zen

To add this button you should paste "AddThis" code to the following file if no override file is used:
YOUR_ZENCART\includes\templates\template_default\templates\tpl_index_product_list.php

If your template use this file, you can find it at:
YOUR_ZENCART\includes\templates[YOUR_TEMPLATE]\templates\tpl_index_product_list.php

2 Feb 2010, 12:58 AM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Need Help Adding a button to product page - Apple Zen

Note: never edit the files in /template_default/. If you want to edit a file that is not yet in your custom template folders, copy it from the /template_default/ folder and save it to your custom template with the same subfolder path.

Everyone is using a "custom" template, even if it is only /classic/ (and if you are using /classic/, look at the tutorials for advice on creating your personal version of it).

2 Feb 2010, 9:29 AM
#4
vjef avatar

vjef

New Zenner

Join Date:
Jan 2010
Posts:
90
Plugin Contributions:
2

Re: Need Help Adding a button to product page - Apple Zen

Yes, you are right. Thanks for additional info.