Facebook login on create account page in prestashop

I got the Facebook login module from your website and it works very great. 
My shop is based on prestashop 1.6.1.20 (latest one) and i have one doubt. I would like to place a position inside the login page. Please check the attachment file for what we need to the location. 
Many thanks


PrestaShop expert answer about facebook connect button on "register" page


Hello
Firstly I need to explain how the modules in prestashop display own contents.
Modules in prestashop can be attached to theme features called "hooks". Hook is a position in theme template file where the prestashop executes and shows modules.
Each page in prestashop (like product page, category page, authentication page etc.) have own hooks in a specific positions.

Authentication page in PrestaShop 1.6.1.x does not have a hook to execute and display module inside authentication page login form. Because of this by default it is not possible to display modules there - so also 'facebook login' module. But now worries - it is possible with some workarounds.

To display "facebook login" button on authentication page in prestashop 1.6.1.x:
  1. open module configuration page
  2. turn on position "fblogin": https://i.imgur.com/aSRSIlQ.png
  3. save changes
  4. now it is necessary to add tiny shortcode to /themes/your-theme-name/authentication.tpl file
  5. open it and right above the line with code like: {l s='Already registered?'} add this shortcode: {hook h='fblogin'}
  6. go to shop back office preferences > performance section and hit button "clear cache"

after these 6 steps facebook login should appear on authentication page below the "create an account" button and above the "Already registered?" text

Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment