Title: Magento 2 Shipping Rules
1Shipping Rules for Magento 2 User Guide
- Table of Content
- Extension Installation
- Configuration
- Add New Shipping Rule
- Shipping Rules in Frontend
- Usage Example
Shipping Rules for Magento 2
Meetanshi
2- Extension Installation
- For Magento Marketplace Customers
- Create a folder structure in Magento root as
app/code/Meetanshi/ShippingRules - Download and extract the zip folder and upload
our extension files to the app/code/Meetanshi/Shi
ppingRules via FTP. - Login to your SSH and run below commands step by
step - php bin/magento setupupgrade
- For Magento version 2.0.x to 2.1.x - php
bin/magento setupstatic-contentdeploy - For Magento version 2.2.x above - php
bin/magento setupstatic-contentdeploy f - php bin/magento cacheflush
- For Meetanshi Customers
- Extract the zip folder and upload our extension
to the root of your Magento 2 directory via FTP. - Login to your SSH and run below commands step by
step - php bin/magento setupupgrade
- For Magento version 2.0.x to 2.1.x - php
bin/magento setupstatic-contentdeploy - For Magento version 2.2.x above - php
bin/magento setupstatic-contentdeploy f - php bin/magento cacheflush
- Configuration
- Add New Shipping Rule
- Rule Name Enter rule name to recognize easily.
- Rule Status Activate the shipping rule.
- Shipping Carriers and Methods Select shipping
carriers to recalculate the shipping rates using
this extension and select the shipping methods of
the selected shipping carrier to recalculate
shipping rates of all or specific methods. - Stores Select stores to which the shipping rules
to be applied. If none of the stores is
selected, the rules will be applied to all the
stores.
Shipping Rules for Magento 2
Meetanshi
3- Customer Groups Select customer groups to which
the shipping rules should be applied. If none of
the customer groups is selected, the rules will
be applied to all the customer groups. - For Admin Select YES to enable the created rule
only in the admin panel for the backend orders. - Priority Set priority for the rule. 0 is the
highest priority. It helps to decide which rule
to apply when multiple rules are eligible to
apply on the same order. - Note Please note that when multiple rules
replace a shipping rate for the same product,
only the rate from the last applied rule will be
displayed.
Shipping Rules for Magento 2
Meetanshi
4- Shipping Rates
- Define shipping rates here.
- Rate Calculation Type Select the rate
calculation type. - Replace Replaces/overrides the calculated value
with the existing shipping rates. - Discount Subtracts the calculated value from the
existing shipping rates. - Surcharge Adds the calculated value on the top
of the existing shipping rates. - Shipping Rate per Order Adds the shipping rate
to charge the whole order. - Fixed Shipping Rate per Product Adds shipping
rate as a fixed amount to charge per product in
the cart. - Percentage Shipping Rate per Product Adds
shipping rate as a percentage of the price sum
of all the products in the cart. - Handling Shipping Rate in Percentage Set
handling shipping rate to apply on order. It
will be calculated based on the original shipping
amount of the default shipping rate.
Shipping Rules for Magento 2
Meetanshi
5- Product Conditions
- Set product conditions or combination of product
attribute combinations that defines to which
products the rules should be applied. The product
conditions control the products of which the
shipping rates would be changed based on the set
rules.
- Shipping Address Conditions
- Set shipping address conditions to define when
(on which shipping address condition, cart
attributes, customer attribute) to apply the rule.
Shipping Rules for Magento 2
Meetanshi
6- Days and Time - Based Conditions
- Set days to apply the shipping rules on specific
or all days of the week. Specify the time
interval during which the shipping rules to be
applied.
Shipping Rules for Magento 2
Meetanshi
74. Shipping Rules in Frontend Once all the
shipping rules are defined and saved, when
customers add products to cart, the shipping
charge is calculated and applied based on the
priority and set conditions. Here, Product
price 149.00 Shipping Country
Australia Quantity is Cart lt3 Rate Calculation
Shipping Rate Per Order (2.00) Fixed Shipping Rate Per Product (2.00) Percentage Shipping Rate Per Product (10) Handling Shipping Rate 5 (Default Flat Rate 5) Total
2.00 2.00 14.9 0.25 19.15
Shipping Rules for Magento 2
Meetanshi
8- Usage Example
- Flat rate shipping for selected country and
selected category products - If you want to conduct a sale for the products of
a specific category and want to charge flat
shipping in a country you are conducting a sale,
set shipping rule as follows - Select shipping carrier as flat rate
- Set shipping rates
- Now, as you want to provide flat rate shipping,
replace the default rate with the fixed flat
rate you set under the shipping rates.
Shipping Rules for Magento 2
Meetanshi
9- Set product conditions
- As you want to provide sale to only the products
of specific categories, select the categories - to match the product conditions. If the category
is multiple, you can select One of the options
to match one of the categories amongst multiple
you added or if its only one - category, set is to exact match the selected
category.
- Set specific country
- As you want to provide the sale to a specific
country only, you can select the country from - the shipping address conditions by selecting
Shipping Country attribute.
Shipping Rules for Magento 2
Meetanshi
10- Rule applied on order
- Immediately after the rule is applied, you can
see related shipping rates calculated and
applied on order.
Shipping Rules for Magento 2
Meetanshi