Customer Redirect Pro for Magento 2 www.magepsycho.com (Quality extension provider for Magento 1 & Magento 2)
Contents 1. Overview... 3 2. Installation... 4 3. Manage Settings... 5 3.1. General Settings... 5 3.2. Login Redirect Settings... 6 3.3. Logout Redirect Settings... 7 3.4. New Account Redirect Settings... 8 3.5. Miscellaneous Settings... 9 4. Redirection URL Options... 9 5. Need Support?... 10 Magento 2 Customer Group Selector / Switcher Page 2 of 10
1. Overview This extension allows customer group wise redirection to the custom page after login, logout, registration & newsletter subscription actions with many extra features. In case you have a multi-store website (B2B store, wholesale/retail store etc.) with multiple customer groups. And you want to provide a more personalized shopping experience to your customers, for example by: Allowing your customers to select their required customer group at registration, either by using group drop-down or group code. Redirecting your retail customer to the retail website after they login from any one of your available multi-store websites. Redirecting your customer to welcome page with customized success message and email template if they register as a wholesale customer. Redirecting your customer to coupon page after newsletter subscription. In any one of these cases (or all of them), you will find this extension worthy. Magento 2 Customer Group Selector / Switcher Page 3 of 10
2. Installation 1. Backup your store codebase & database 2. Download extension installation package from Magento Marketplace 3. Copy the extension files to the </path/to/magento2-root-folder>/app/code/magepsycho/ RedirectPro 4. Run the following series of command from SSH console of your server: cd </path/to/magento2-root-folder> php bin/magento module:enable MagePsycho_RedirectPro --clear-static-content php bin/magento setup:upgrade 5. Flush the store cache php bin/magento cache:flush 6. Go to Admin > Stores > Configuration > MagePsycho > Custom Redirect Pro > Configure your settings here... Magento 2 Customer Group Selector / Switcher Page 4 of 10
3. Manage Settings Once you install the Extension, go to Stores > Configuration > MagePsycho > Custom Redirect Pro. You will see all the sections that need to be configured. 3.1. General Settings In general settings, admin can Enable / disable the extension Enter Development / Production license key Enable / disable the Debug Mode View popup manual Magento 2 Customer Group Selector / Switcher Page 5 of 10
3.2. Login Redirect Settings You can redirect the customer to custom page after login. In this section admin can Configure the default redirection URL after login Configure customer group wise custom URL after login Magento 2 Customer Group Selector / Switcher Page 6 of 10
3.3. Logout Redirect Settings You can redirect the customer to custom page after logout. In this section admin can Configure the default redirection URL after logout Configure customer group wise custom redirection URL after logout Remove intermediate logout page Magento 2 Customer Group Selector / Switcher Page 7 of 10
3.4. New Account Redirect Settings You can redirect the customer to custom page after registration. In this section admin can Configure the default redirection URL after registration Configure customer group wise custom redirection URL after registration Configure default success message after registration Configure customer group wise success message after registration Magento 2 Customer Group Selector / Switcher Page 8 of 10
3.5. Miscellaneous Settings You can redirect the customer to any custom page after newsletter subscription. In this section admin can Configure the custom redirection URL after newsletter subscription Configure redirect to parameter 4. Redirection URL Options As you saw above you can use custom redirection URL for redirecting customer after login, logout, register and newsletter subscription. This custom redirection URL can either be a relative URL or an absolute URL. Also, you can use custom variables like {{referer}}, {{redirect_to}}, {{assigned_base_url}} etc. as a part of redirection URL. For Example: - / - /welcome - /vendor/{{user_name}} - {{referer}} - {{assigned_base_url}} - {{redirect_to}} - http://my-another-store.com/welcome - http://mystore.com/{{user_name}} Notes: 1. / denotes the base URL of current store, used in case of relative URL. 2. {{referer}} variable is used when you want to redirect back to the previous / referrer page. 3. {{assigned_base_url}} variable is used when you want to redirect the customer to their assigned website. 4. {{redirect_to}} is used when you want to redirect to the URL mentioned in the query string(ref: Misc Settings > Redirect To Param) 5. You can also use absolute URL for URL redirection. Example: http://my-another-store.com/welcome 6. Other available variables are: {{ip}} - IP Address, {{country_code}} - Country Code {{user_name}} - User Full Name, {{user_email}} - User Email Address, {{user_id}} - User Id {{user_group_id}} - User Group Id Or you can request if you need any other custom variables. 7. If Customer Group Wise Redirection URL is not defined then Default Redirection URL will be used. Magento 2 Customer Group Selector / Switcher Page 9 of 10
5. Need Support? You can send an email to magepsycho@gmail.com OR submit the request form through our website: http://www.magepsycho.com/contacts/ in case you need any kind of assistance, support and quotation. Magento 2 Customer Group Selector / Switcher Page 10 of 10