Welcome, Guest Login

Support Center

Xcart Social Login Installation, Configuration and Troubleshooting

Last Updated: May 03, 2013 12:33AM EDT
 


Xcart Module Installation Guide

1. Download and unzip Social Login for X-Cart.
2. Upload the module files  via FTP to your website.
3. Go to your FTP in /include/common.php
Add code at the end:

​if (!empty($active_modules['Sociallogin'])) {
include $xcart_dir . '/socialloginandsocialshare.php';
}

4. Login to your admin panel.
5. Click on patch/upgrade under Tools.



6.Upload "Sociallogin.sql" file using browse button and click apply.(Please see 'Note' below)
Note  : These queries will work if database table prefix is xcart, if you have other prefix, please update all sql queries according to it.



7. Patch will be uploaded and you will get success message.



8. Go to your admin panel and click on Edit templates under Content.



9. Go to /skin/YOUR_TEMPLATE/customer/content.tpl
(a)Add code where your want to show Sharing and Counter above content[ Example after 'centeral space comment line']:
{include file="modules/Sociallogin/SocialSharingTop.tpl"}



(b)  Add code where your want to show Sharing and Counter below  [Example before 'centeral space comment line']:
{include file="modules/Sociallogin/SocialSharingBottom.tpl"}


10. Now, click on settings >> modules >> SocialLogin.

 


Module Configuration

1. Navigate to Settings in menu and click on modules.



2. Go to Social Login and click on configure.


3. To activate the plugin, insert LoginRadius API Key & Secret (How to get API Key and Secret?).
4. Insert your right API KEY & API SECRET in textbox, and choose the option of API Connection Method (cURL  or FSOCKOPEN )
5. Verify the api key and api secret by hitting Verify API Setting button, and click on save & close button.​

 



Further Help:-

Where to look user details in your database:

User details are stored in the “customers” table ,“sociallogin” table and “address_book” table:-
customers  table:  
Column Info
username Name of user that display
firstname First Name of customer
lastname Last Name of customer
title Gender of customer
company Company name of customer
email Email address of customer
url website url of customer
 
sociallogin table:
Column Info
id_custmer Customer id
id_provider Social Provider ID
provider Social Provider
user_image Image of customer


address_book table:
Column Info
title Gender of customer
firstname FirstName of customer
lastname Last Name of customer
address Hometown of customer
city City of customer
state State of customer
zipcode Zip/Postal code of customer
 

Short code help:

You can enable social login, sharing and counter anywhere in your website page using shortcodes. Just place following shortcodes where you want to show interface


Shortcode for Social Login –

{$SocialloginIframe}
Shortcode for Social Sharing – 
{$SocialSharingShort}

Shortcode for Social Counter -

{$SocialCounterShort}


​How to show social login interface with categories:

1. Go to your admin panel and click on Edit templates under Content.
2. After that  go to /common_files/customer/categories.tpl 
 Add code:
{$SocialloginIframeLR}

How to uninstall the module:

1. Login to your admin panel.
2. Click on patch/upgrade under Tools.
3. Inside text box of SQL query(ies):
Paste the following line (Please see 'Note' below)
Note  : These queries will work if database table prefix is xcart, if you have other prefix, please update following sql queries according to it.
DELETE FROM `xcart_config` where `category` = 'Sociallogin';
DELETE FROM `xcart_modules` WHERE `module_name` = 'Sociallogin';
4. Go to your FTP in /include/common.php
Remove code at the end:
if (!empty($active_modules['Sociallogin'])) {
include $xcart_dir . '/modules/Sociallogin/index.php';
} 
5. Go to your FTP in  /common_files/customer/service_head.tpl
Remove code :
{$Sociallogin_Interfacescript}

6. Go to your FTP in  /common_files/customer/categories.tpl 
Remove code:
{$SocialloginIframeLR}
7. Go to your FTP in  /common_files/customer/main/register.tpl 
Remove code:
{$SocialloginIframe}
8. Go to your FTP in /common_files/customer/main/login_form.tpl Remove code:
{$SocialloginIframe}
9. Go to your FTP in /skin/YOUR_TEMPLATE/customer/content.tpl
Remove code :
{include file="modules/SocialSharing/SocialSharingTop.tpl"}
{include file="modules/SocialSharing/SocialSharingBottom.tpl"}​

 

Troubleshooting:

CURL and FSOCKOPEN  troubleshooting

There is a button “ Verify API Settings ” in the API Settings section of the plugin. you need to choose one of following options

  • CURL requires cURL support = enabled in your php.ini file.
  • FSOCKOPEN requires allow_url_fopen = On and safemode = off in your php.ini file.

If that does not work, you may need to contact your hosting provider to enable one of the option.

 


Contact Us

hello@loginradius.com
http://assets1.desk.com/raca8b478c9bd89640c451013350d59caa6b66ee1/javascripts/
false
loginradius
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete