Module Configuration
Further Help
- Where to look user details in database
- Short code help
- How to show social login interface with categories
- How to uninstall the Module
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:
| 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 address of customer | |
| url | website url of customer |
sociallogin table:
| id_custmer | Customer id |
| id_provider | Social Provider ID |
| provider | Social Provider |
| user_image | Image of customer |
address_book table:
| 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.phpRemove 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.tplRemove 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.tplRemove 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
- FSOCKOPEN requires allow_url_fopen = On and safemode = off in your php.ini file.




