+ All Categories
Home > Documents > J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile...

J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile...

Date post: 27-Jun-2020
Category:
Upload: others
View: 6 times
Download: 0 times
Share this document with a friend
12
J2T Auto Add extension for Magento 2 (http://www.j2t-design.net) J2T Auto Add Extension for Magento 2 Documentation for v. 2.0.x Summary How to install.................................................................................................................3 How to configure............................................................................................................ 5 Description of configuration fields................................................................................. 6 Rules............................................................................................................................ 7 Rules Grid................................................................................................................. 7 Rule Creation............................................................................................................. 7 Rule Edition............................................................................................................... 7 Rule Information.................................................................................................... 8 Conditions............................................................................................................. 8 Actions.................................................................................................................. 8 Product Page Information...................................................................................... 10 Customers’ Usage................................................................................................. 11 Other Labels........................................................................................................ 11 Unit Price Label.................................................................................................................... 11 Subtotal Label....................................................................................................................... 11 Extra Product Information.................................................................................................... 11 Top Cart Messages............................................................................................................... 12 1
Transcript
Page 1: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

J2T Auto Add Extension for Magento 2Documentation for v. 2.0.x

SummaryHow to install.................................................................................................................3How to configure............................................................................................................5

Description of configuration fields.................................................................................6Rules............................................................................................................................ 7

Rules Grid................................................................................................................. 7Rule Creation.............................................................................................................7Rule Edition............................................................................................................... 7

Rule Information.................................................................................................... 8Conditions............................................................................................................. 8Actions..................................................................................................................8Product Page Information...................................................................................... 10Customers’ Usage.................................................................................................11Other Labels........................................................................................................ 11

Unit Price Label....................................................................................................................11Subtotal Label.......................................................................................................................11Extra Product Information....................................................................................................11Top Cart Messages............................................................................................................... 12

1

Page 2: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

2

Page 3: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

How to install

1. unzip de module in app/code/J2t/Autoadd2. enable module: bin/magento module:enable --clear-static-content J2t_Autoadd3. upgrade database: bin/magento setup:upgrade4. re-run compile command: bin/magento setup:di:compile

Optional• In order to deactivate the module bin/magento module:disable --clear-static-content

J2t_Autoadd• In order to update static files: bin/magento setup:static-content:deploy

- Activation Not necessary purchased through Magento Connect - In order to be able to configure the module, it is necessary to add a valid serial within the module configuration. Note that serial can be generated from your dashboard account on http://www.j2t-design.net/j2tmoduleintegrity/customer/serials/:

Important: It is necessary to activate the module for specific store views, where the module would operate:

This configuration is not accessible from “default config” store view. It is only accessible for websites' scopes and all available children.

If you don't set “yes” to active, you will not be able to see/use the module on front area of your store.

3

Page 4: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

Steps in order to activate the module:1. Select appropriate scope (top left select) – must be different from “Default”2. Set “yes” to “Active” configuration field, within module serial area.

4

Page 5: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

How to configure

Connect to your administration panel and go to “stores”, “settings”, then “Configuration”

When you reach configuration screen, please click on “Auto Add” under “J2T Modules” tab.

5

Page 6: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

Description of configuration fields• Main Configuration:

◦ Remove Old/Inactive Rules: Remove old or inative rules from restored shopping cart(in case of deactivated or outdated rules which have been used within restored cart session).

• Extra Information:

◦ Show On View Pages: Show auto added products on product view page.

◦ Product View Injection Block Name: Product view injection layout block name wherethe information will be injected (default is: product.info.addtocart). Other block name could be product.info.other for example.

◦ Auto Add List Injection Block Name: Auto Add List injection layout block name where the auto add list will be injected (default is: checkout.cart.order.actions). Other block name could be product.info.other for example.

• Auto Add Messages:

◦ Show Cart Information: Show message details on top cart.

◦ Default Block Name: Default layout block name where the rule messages will be injected (default is: checkout.cart.form). Other block name could be checkout.cart.form.before for example.

6

Page 7: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

Rules

Rules GridRules’ grid is accessible from “Marketing” > “Promotions” > “J2T Auto Add Rules”.

Rule CreationIn order to create a rule, it is necessary to click on “Add New Rule” button on grid page.

Rule EditionRule’s edition page offers six sections:

(1) Rule Information, allowing default rule’s configuration

(2) Conditions, in order to define conditions to be met by the rule

(3) Actions, which allows product selection to be automatically added

(4) Product Page Information, allowing product boxes to appear on product pages concerned by the rule

(5) Customers’ Usage would allow store admin to check rule’s usage quantity

(6) Other Labels would allow to define text to be shown on cart and product pages.

7

Page 8: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

Rule InformationThis is where you will define basic rule’s information, such as title, availability, scope, etc. You’llalso be able to define starting and ending date in order to limit rule usage.

ConditionsThe most important part of the module would be rule’s condition. This is where you define a condition to be met in order for auto add rule to take action.

The following example would verify if product SKU ‘24-UG05’ is in cart and its quantity is at least 2:

ActionsActions would define which product(s) can be automatically added to shopping cart. This area contains the following options:

Type Of Action: If you decide to show the list of product in the shopping cart, only one product will be added. When allowing customer to remove auto added product(s) from cart, note that auto add rule will not take any further actions.

Coupon Code: Optional. This coupon code would be added to your cart if the rule is met.

Free Product Label: Show the added products as FREE on shopping cart.

Match Product Quantity: Match product quantity (quantity will be the addition of product(s) concerned by the rule). Only works with "Product Subselection" and the autoadded product must be different from the product verified by the condition.

Match Quantity Divider: Need to be used if you have a rule such as BUY 2 get 1 FREE (2will be the divider quantity), in order to increase the quantity of auto added product as step values (e.g. 2 products = 1 added, 4 products = 2 added, 6 products = 3 added, etc.). Please note that this configuration field only appears wen Match Product Quantity is applied.

Force Quantity: Quantity of auto added product. If you want user to modify quantity value, 0 is to be added.

Discount: Discount (as % value) to be applied on auto added products. Note that this discount will be applied on all products’ quantities (if match quantity is not used, customer can increase/decrease product quantity in cart). For more advanced rule, please use shopping cart rule.

Action area will also allow usage of conditions in order to define products to be automatically added. Please note that all products attributes will be shown and if an attribute is not, you will have to modify the attribute in order to make it available for promotion rules.

8

Page 9: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

The following example will set product having SKU ‘24-UG06’ to be added to cart when rule’s condition is met:

9

Page 10: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

Product Page InformationThis feature is quite important if you want to inform your clients that when buying a product, other products will be automatically added to cart.

This is what you will see on product page:

In order to specify which product will be concerned by this information, condition will be used. The following example will tell the system to add the information on product page having SKU ‘24-UG05’:

10

Page 11: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

Customers’ UsageThis area will allow you to see the usage of the rule by your customers.

Other LabelsThis is where you define the labels that will be shown on your site.

Unit Price Label

(2) Unit Price Label will allow you so show specific label on product price unit on cart page, such as the following:

Subtotal Label

(3) Subtotal Price Label will allow you so show specific label on product price subtotal on cart page, such as the following:

%1 will need to be used in order to define number of product which would be free.

Extra Product Information

(1) This information will be shown under product name on cart page:

11

Page 12: J2T Auto Add Extension for Magento 2 · 4. re-run compile command: bin/magento setup:di:compile Optional • In order to deactivate the module bin/magento module:disable --clear-static-content

J2T Auto Add extension for Magento 2 (http://www.j2t-design.net)

Top Cart Messages

This is the message which will be shown on cart when the rule is not met:

12


Recommended