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

16
WeChat Login For Magento2 User Guide / SunflowerBiz

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

Page 1: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

WeChat Login

For Magento2

User Guide / SunflowerBiz

Page 2: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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:[email protected]

Website:www.sunflowerbiz.com/

Page 3: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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:[email protected]

Website:www.sunflowerbiz.com/

Page 4: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

Module Setting:

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

Page 5: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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.

Page 6: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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.

Page 7: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

E) Check the AppID/Secret

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

Page 8: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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.

Page 9: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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.

Page 10: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

D) Set webpage authorization domain name

DI) Click Function setting under Setting of official account.

Page 11: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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.

Page 12: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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.

Page 13: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

Front page I -----On PC

Page 14: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

Scan the QR code

Page 15: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

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.

Page 16: WeChat Login - SUNFLOWERBIZphp bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile ... 2. Request “Website Application Development” ... Joining

Notifications

1. Support Magento 2.x

2. Support Magento Community and Enterprise.

Email:[email protected]

Website:www.sunflowerbiz.com/