We are glad to welcome you to our Community Support Forums!
These forums are your way of communicating with the community of people developing and using tools provided by the OneAll platform.
The forums are run by the community and moderated by the OneAll team during office hours. Please stick to technical issues - and remember, no confidential information - these are public forums!

Div in prestashop checkout page not returning any data

Hi!
After installing the module for Prestashop 1.7.1.1, I have implemented the div in the checkout page tpl file, it is correctly visible but doesnt return anything after the client clicks and connects. It simply lets the client log in to for example facebook, and returns to the same checkout page without returning any value.
Any solution?
Many thanks,
Phoebe

Best Answer

Answers

  • edited June 28
    Hello,

    could you please open the Social Login settings in your Prestashop admin area and click on the Autodetect and Verify buttons?
    Do both tests give a green success message?

    Regards,
  • Hi Claude,
    When I click autodetect the best api setting, it says Contacting API - please wait ... FOREVER.
    But the buttons on other pages (for say Login/Register) work fine, just not the < div > I have implemented in code for the checkout page.
    Any ideas?
    Many thanks!!
    Phoebe
  • Hi Phoebe,

    do you have any JavaScript errors in your browser's console when clicking on "Autodetect" or "Verify" ?

    What exactly have you added to your checkout page?

    Regards,
  • Hi Claude,
    Actually I do:
    jquery-1.11.0.min.js:4: POST https://my.url/modules/oneallsociallogin/assets/ajax/admin.php 404 Not Found
  • The div I have implemented is:

    in my personal-information.tpl. It sows up correctly, opens facebook, login and then redirects back, but none of the information returns.
  • edited July 10
    < div id="oneall_social_login" style="padding-top: 20px;" >< / div >
  • Without the spaces
  • edited July 13
    Hi Phoebe,

    adding the div will not work.

    You need to add the following code to embed the icons:
    {$HOOK_OASL_CUSTOM}

    More information is available here:
    http://docs.oneall.com/plugins/guide/social-login-prestashop/#4a
  • Hi Claude,
    Now it just shows the code:
    <div class="oneall_social_login_providers oneall_social_login_providers_custom" id="oneall_social_login_providers_XXX"></div> <script type="text/javascript"> var _oneall = _oneall || []; _oneall.push(['social_login', 'set_providers', providers]); _oneall.push(['social_login', 'set_callback_uri', window.location.href]); _oneall.push(['social_login', 'set_custom_css_uri', '']); _oneall.push(['social_login', 'do_render_ui', 'oneall_social_login_providers_XXX']); </script>
    instead of the result. I added the piece of code you said to the .tpl file:
    {$HOOK_OASL_CUSTOM}
    Phoebe
  • Could you post a link to your shop please?
  • Hello,

    I have been able to login with Facebook here:
    https://poopoo.rocks/en/login

    This also created a new account for me.

    Could you give me a direct link to the page where it does not work?
  • Hi, you need to add something to cart, and then at the cart page: https://poopoo.rocks/en/order you can see the piece of code which is not working.

    Thanks!
  • Hello,

    I have been able to reproduce the error.

    Please replace this:
    {$HOOK_OASL_CUSTOM}

    by this:
    {$HOOK_OASL_CUSTOM nofilter}

    In your template.

  • Hi Claude, now I can see the buttons, click on them, but when redirecting back, it doesnt fill in any data. So we are back to the starting point..

    Phoebe
  • Thank you Claude, the new version works!!
    Thank your for your persistence.
    Phoebe
Sign in with your OneAll account to take part in the discussion.