Jump to content
irder

[Free Modules] necessary module for a online shop - Facebook Login for prestashop 1.6.x

Recommended Posts

[Free Modules] necessary module for a online shop - Facebook Login for prestashop 1.6.x
 
you need apply your appid and app key in facebook dev center
 
then configure the module
 
post-806281-0-88177100-1478591344_thumb.jpg
 
 
when there is a existing user in your shop using the same email with facebook ,it will  checking the user information and binding the existing account,if not existed it will create a new account,
the tab will switch between this two options as the following,
 
 

fbconnect.tar.gz

post-806281-0-54052500-1493148537_thumb.jpg

Edited by Irder (see edit history)

Share this post


Link to post
Share on other sites

on 1.6.1.7 it shows 

  •     The version of your module is not compliant with your PrestaShop version.
  •  

Share this post


Link to post
Share on other sites

 

on 1.6.1.7 it shows 

  •     The version of your module is not compliant with your PrestaShop version.
  •  

 

hello,just modify this line in file

 fbconnect.php

i have updated it also,thanks

$this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6.1.8'); 
Edited by TiaNex. (see edit history)

Share this post


Link to post
Share on other sites

Email address on files was not the same as the Facebook
account.customer ID: 7

user info:Array
(
[name] => xxxx
xxx
[id] => xxx
)

what does this mean do i need to do anything about it ?

Share this post


Link to post
Share on other sites

Email address on files was not the same as the Facebook

account.customer ID: 7

 

user info:Array

(

[name] => xxxx

xxx

[id] => xxx

)

 

what does this mean do i need to do anything about it ?

hello,have you configured your facebook appid and app key?

Share this post


Link to post
Share on other sites

Hello,

module works well for me, except I had to modify the suggested link in the module config page. It suggests to use:

 

<a title="Login with your Facebook Account" class="button_large" href="{$link->getModuleLink('fbconnect_psb', 'login', array(), true)}">Facebook Login</a>

 

but you have to change it to

 

<a title="Login with your Facebook Account" class="button_large" href="{$link->getModuleLink('fbconnect', 'login', array(), true)}">Facebook Login</a>

 

 

Only one problem is that if you try to login with the module AFTER you created an account with it (or if the customer registered previously with the same mail as Facebook),

 

it doesn't simply log-in but brings you on a page as the screenshot attached.

 

Shouldn't it log-in and bring you to "My account" page?

 

I mean:

 

Login with Facebook -> 

 

If doesn't exist an account with Facebook email -> create that account

 

if an account with Facebook mail already exists -> try to log-in using Facebook Password

 

 

Anyway, that page is not translatable with the module-translations page on BO. 

 

 

post-726807-0-33185600-1478710465_thumb.png

Share this post


Link to post
Share on other sites

Hello,

module works well for me, except I had to modify the suggested link in the module config page. It suggests to use:

 

<a title="Login with your Facebook Account" class="button_large" href="{$link->getModuleLink('fbconnect_psb', 'login', array(), true)}">Facebook Login</a>

 

but you have to change it to

 

<a title="Login with your Facebook Account" class="button_large" href="{$link->getModuleLink('fbconnect', 'login', array(), true)}">Facebook Login</a>

 

 

Only one problem is that if you try to login with the module AFTER you created an account with it (or if the customer registered previously with the same mail as Facebook),

 

it doesn't simply log-in but brings you on a page as the screenshot attached.

 

Shouldn't it log-in and bring you to "My account" page?

 

I mean:

 

Login with Facebook -> 

 

If doesn't exist an account with Facebook email -> create that account

 

if an account with Facebook mail already exists -> try to log-in using Facebook Password

 

 

Anyway, that page is not translatable with the module-translations page on BO. 

 

 

thank you for your feedback,

about why not bring to the account,maybe for some security problem,or if someone don't want to bind the facebook account,but he click it by mistake,

about multi-language support,i don't know how to develop it,i will modify it in the future version maybe,

Share this post


Link to post
Share on other sites

Hey,

 

Thank you for sharing your code. I have noticed there are still a lot of 'todos' in your source code.

I was wondering if you have an updated version of the module?

 

Thanks,

 

Kind regards,

Diego

Share this post


Link to post
Share on other sites

Hey,

 

Thank you for sharing your code. I have noticed there are still a lot of 'todos' in your source code.

I was wondering if you have an updated version of the module?

 

Thanks,

 

Kind regards,

Diego

hello,i didn't update it,it's OK for the basic function to login,

Share this post


Link to post
Share on other sites

Hi, I don't understand if the module is broken or this is just the normale usage. After I login with facebook it always address me to the page in the screenshot (it's the one that also  ljnuxxx commented). The problem is that this code:

{if isset($bind_account) && $bind_account}selected{/if}
{if isset($creat_account) && $creat_account}hide{/if}

is not working! In fact it just shows me everything.. In the console there is no error message. 
How can I fix this, and it is normal that I always get addressed to this point?

 

(I'm using Prestashop 1.6.1.11)

post-1354150-0-23814400-1493146942_thumb.png

Edited by Agilulfo (see edit history)

Share this post


Link to post
Share on other sites

Hi, I don't understand if the module is broken or this is just the normale usage. After I login with facebook it always address me to the page in the screenshot (it's the one that also  ljnuxxx commented). The problem is that this code:

{if isset($bind_account) && $bind_account}selected{/if}
{if isset($creat_account) && $creat_account}hide{/if}

is not working! In fact it just shows me everything.. In the console there is no error message. 

How can I fix this, and it is normal that I always get addressed to this point?

 

(I'm using Prestashop 1.6.1.11)

 

hello,please make sure the css was loaded,

it's a tab in fact,it will show one option,

 

you can see the demo,here

http://www.irder.com/en/login?back=my-account

thanks

Edited by TiaNex. (see edit history)

Share this post


Link to post
Share on other sites

Yes you are right, it doesn't load the css,,,but why? I am also always (if custumer/mail already exists) getting the error message that tells me that "An email address required."
Are those things connected in your opinion? And how can I solve the css problem?

Share this post


Link to post
Share on other sites

Yes you are right, it doesn't load the css,,,but why? I am also always (if custumer/mail already exists) getting the error message that tells me that "An email address required."

Are those things connected in your opinion? And how can I solve the css problem?

hello,please check it in browser (such as chrome),make sure the css is loaded,and the css container id or class is not the same to mine,

 

you can leave you shop URL,i can check for you

hello,please check it in browser (such as chrome),make sure the css is loaded,and the css container id or class is not the same to mine,

 

you can leave you shop URL,i can check for you

Edited by TiaNex. (see edit history)

Share this post


Link to post
Share on other sites

this module is also need to hook in header,so the js will be loaded

 

Ok that was it! Now that I hooked it in the header it works! 

 

But still, it doesn't really log you in, it always bring you to that screen, doesn't seem too user friendly. Could you please point me what file should I edit to just let the user login if the user already exist?

Edited by Agilulfo (see edit history)

Share this post


Link to post
Share on other sites

Ok that was it! Now that I hooked it in the header it works! 

 

But still, it doesn't really log you in, it always bring you to that screen, doesn't seem too user friendly. Could you please point me what file should I edit to just let the user login if the user already exist?

hello,

this file   modules\fbconnect\controllers\front\login.php

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More