WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento...

Post on 30-May-2020

14 views 1 download

Transcript of WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento...

WeChat Login

For Magento2

User Guide / SunflowerBiz

Table of Contents

1. Installation

2. Module Setting

3. Access to WeChat Login I

4. Access to WeChat Login II

5. Front Page

6. Notifications

Email:info@sunflowerbiz.com

Website:www.sunflowerbiz.com/

Installation:

From your base Magento2 directory -> app -> code (you may have to createthis directory), create Sunflowerbiz directory to your app/code directory.

From the base Magento2 directory:

-Upload the contents of 'WechatLogin' directory to 'app/code/Sunflowerbiz'directory of your Magento installation-Enable the module running the following commands on the root of yourMagento installation:bin/magento module:enable --clear-static-content Sunflowerbiz_WechatLoginbin/magento setup:upgrade

--------------------The following commands should work even in windows with the forward slashswapped for back.

php bin/magento cache:cleanphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy

Email:info@sunflowerbiz.com

Website:www.sunflowerbiz.com/

Module Setting:

1. Go to Admin Panel, navigate to STORES and click on Configuration underSettings.

2. Expand SUNLFOWERBIZ MODULES and choose WeChat Login in thedropdown.

Open WeChat APP ID/SECRET: Enter WeChat APP/SECRECT on WeChat's Open Platform.

Official Account APP ID/SECRET: Enter WeChat APP/SECRECT on WeChat's Official

Account Platform.

3. Access to WeChat Login on WeChat Open Platform

A) SignUp/Login on WeChat Open Platform

B) Request Website Application Development

C) Click “Create an application” to request

D) Joining process:

• Create website applicationDevelopers can create website applications by entering the website name,description, icons and official website address, etc.

• Submit for auditWhen a website creation application is submitted by a developer, WeChat Teamwill audit the information to guarantee the website quality.

• Pass audit and launchAfter auditing is passed, developers will receive an AppID, by which featuressuch as WeChat Login can be developed

• Configure Authorization Redirect Domain Please configure your “authorization redirect domain” in wechat login appmanagement page on https://open.weixin.qq.com/ Don't add https or http.

E) Check the AppID/Secret

After WeChat approves your application, click Web Application underManagement Center.

F) Click View to get the AppID and AppSecret.

G) Enter AppID as Open WeChat APP ID, and App Secret as Open WeChat APP

SECRET.

4. Access to WeChat Login on WeChat Official Accounts Platform

A) Make sure your official account is Server Account and has authorized.

B) Log into WeChat Official Accounts Platform, scroll down to Developmentand click Basic Configuration.

C) Enter Developer ID as Official Account APP ID, and Developer Passwordas Official Account APP Secret.

D) Set webpage authorization domain name

DI) Click Function setting under Setting of official account.

DII) Click Set button

DIII) Download the txt file and upload to your Magento site root.

◦ It require a filing domain and doesn't support IP address, port numberor short-chain domain name.

5. Bind WeChat Official Account

Go to WeChat Open Platform, and click Bind Official Account under OfficialAccounts.

6. Enable Auto Login and Default Customer Info configuration

A) Choose Yes to enable Auto Login in the wechat browser. After that, it will notdisplay an option for customers to bind existing Magento accounts but auto log into yourMagento store.

B) Configure Default Customer FirstName/LastName/Password to auto createMagento accounts.

Front page I -----On PC

Scan the QR code

Front page II------In the WeChat Browser

In WeChat browser, it offers an option to bind customers' WeChat account toexisting Magento accounts.

Auto Login After enabling Auto Login on the module setting page, it will not display the optionto ask customers to bind their existing Magento accounts on the front page.Customers will auto log into your Magento store in the WeChat browser.

Notifications

1. Support Magento 2.x

2. Support Magento Community and Enterprise.

Email:info@sunflowerbiz.com

Website:www.sunflowerbiz.com/