luni, 22 noiembrie 2010

Facebook ‘Like’ button for PrestaShop product pages

May 3, 2010 PrestaShop Customization, PrestaShop Tips


Facebook ‘Like’ button/widget is one of the plugins available from the new Facebook Social Plugins.


To add the Facebook ‘Like’ button on every product page, you just need to add one line of code to one file.


Open this file with any text editor:
\themes\THEME_NAME\product.tpl


Where THEME_NAME is the folder name of the theme you are using.


Copy this code:


Paste the code to around line 87 — or right after this line:  {include file=$tpl_dir./breadcrumb.tpl}


The Facebook plug-in code added to the PrestaShop file was obtained from Facebook (have a look, but you do not need to get the code from there).


There are a few parameters that you may want to change to the code that you copied from STEP 2 above:

show_faces=false — Change to true if you want the widget to display the thumbnail photos of those who have ‘liked’ your product.colorscheme=light – Change to dark if your page is dark in color.height:35px — This was arbitrarily choosen. If you choose to display ‘faces’, then you should increase the height of the widget (80px or more).

Compatibility: PrestaShop all versions


Note: Example is provided as is. Not guaranteed to work across all hosting platforms (especially Windows server). Try it out before leaving it live on your site.


View the original article here


Whole New Look! Get Paid To Shop!! 75% Commission. Better than paid surveys, data entry, detective sites and grants! Oto converting 20% Too! --- The Best mystery shopping, secret shopping, work at home site!


Check it out!

Un comentariu:

  1. The blog posted is very interesting from all aspects and it will surely benefit the readers by all means.
    Prestashop Developer

    RăspundețiȘtergere