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
![](https://mypresta.eu/content/uploads/2017/03/facebook-login-prestashop-17-classic-theme.png)
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:
- open module configuration page
- turn on position "fblogin": https://i.imgur.com/aSRSIlQ.png
- save changes
- now it is necessary to add tiny shortcode to /themes/your-theme-name/authentication.tpl file
- open it and right above the line with code like:
{l s='Already registered?'}
add this shortcode:{hook h='fblogin'}
- 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
0 comments:
Post a Comment