for magento 2 · 2019-05-27 · parcelforce cai create simple automated rates, they are limited to...

28
Magento Extension User Guide SHIPPING MATRIX RATES for Magento 2

Upload: others

Post on 08-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Magento Extension User Guide

SHIPPING MATRIXRATESfor Magento 2

Page 2: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Table of contents

1. Key Features

1.1. Create rates from multiple product criteria

1.2. Use product or customer groups to defie shippiig rates

1.3. Filter by Post Code

1.4. Use detailed or exclusive requiremeits to create rates

1.5. Display multiple postage rates per order

1.6. Simplify your admiiistrative work

1.7. No codiig required

2. Module Admii Coifguratioi

3. CSV-fle Coifguratioi

3.1. Example CSV File

4. Filteriig by Post Code

4.1. Special Features for Caiada

4.2. Special Features for the Uiited Kiigdom

4.3. Special Features for two part iumeric codes like 12345-6789 (US, Brazil, etc)

5. Post Code Max Leigth Notes

6. Fiie Tuiiig Rates with Advaiced Calculatiois

6.1. Selectioi Commaids

6.2. Formulas

6.3. Secoidary Formulas

6.4. Fiiishiig Commaids

6.5. Example Order to Demoistrate Advaiced Calculatiois

Page 3: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Key Features

Create rates from multiple product criteriaDefie precise shippiig rate raiges from destiiatioi couitry, state/regioi, productweight, price, quaitity, product group, customer group or evei custom postcalculatioi parameters to calculate fial shippiig prices. Need to ship aiy iumber ofproducts of a certaii type that are over $125.00 total (after discouits) for $7.15? Well,iow you cai, aid you doi’t ieed to write a liie of code to do it.

Use product or customer groups to defne shipping ratesProduct shipping groups cai be set usiig the shipping group attribute. For iistaice, oie of our clieits has some items that must be palletized aid shipped as freight.These items use the Mageito product shipping group attribute optioi value, freight. Oily the freight type shippiig optioi is showi for these items ii checkout.Customer groups are a built ii Mageito feature of which Shippiig Matrix Rates takes

advaitage. Each customer group cai be used to map a set of static rates. For

example, oie of our clieits uses Shippiig Matrix Rates to elimiiate all shippiig fees

for pick-up customers aid to set delivery fees by zip code withii the local delivery

area.

Filter by Post CodeCreate shippiig rates based oi post code flteriig. You cai use value raiges, simplepatteri matchiig, aid actual value lists. For example, if you wait to specify a pricethat applies to all postcodes withii the raige 93221-98880 just create a row with thisraige ii the CSV fle aid all chaiges will be applied. Maiy ioi-iumeric post codescai also be fltered. Post code raiges for Caiada or the Netherlaids aid similar (e.g.from AB2 to AB12) are also supported.

Page 4: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Use detailed or exclusive requirements to create ratesWith Shippiig Matrix Rates you cai create a huge array of rate variaits. Forexample, you have products located ii New Jersey aid you ieed to seid theproducts to US aid Caiada. Of course, the shippiig rates vary by destiiatioi, butyou ieed them to vary by destiiatioi, weight, aid price, crossed with volume basedfree shippiig. Now you cai accomplish all this ii a siigle CSV fle, as opposed to theridiculous mishmash of exteisiois maiy have to use to accomplish the same task.

Display multiple postage rates per orderFor ai exact destiiatioi with weight, price, quaitity aid custom optiois, multiplerates cai be provided to reflect difereit shippers or ETA’s, etc.

Simplify your administrative workThe Shippiig Matrix Rates exteisioi is a powerful solutioi that will allow aiadmiiistrator to defie every possible custom shippiig rate for automated display toMageito store customers. Let's suppose, that you wait to ofer UPS aid Parcelforcewith difereit prices to US aid Europe. Although exteisiois from UPS aidParcelforce cai create simple automated rates, they are limited to simple shippiigapproaches. Shippiig Matrix Rates allows you to place all required data ii a siigleCSV fle for upload ii module coifg. Chaige aid update as oftei as you like, createrates based oi huidreds of combiiatiois aid evei custom calculatiois. It's all iiyour haids iow.

No coding requiredThe Shippiig Matrix Rates exteisioi allows you to chaige prices or add rates usiig asiigle CSV fle. You doi't ieed to have specifc codiig kiowledge to chaige or addrates. Specify oie couitry by iame, or all couitries usiig ai asterisk. Shippiig MatrixRates allows a siigle CSV fle to create aid coitrol rates by weight, quaitity, price,product group or customer group.

Page 5: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Module Admin Confguration

Enabled - To eiable the Shippiig Matrix Rates exteisioi select “Yes”. Title - The title of this shippiig method as showi to the user.

Shipping Price Calculation Method - How products ii the cart are processedfor shippiig.

Calculate Price Per Item - Shippiig price is determiied per item ii the cart.Per product results are summed for a total shippiig price. For example, if the matchiig CSV row shippiig price is $20 aid a customer has added 3 items of aiy kiid, the shippiig price will be $60.

Calculate Price Per Row – Shippiig price is calculated per cart row. Let’s suppose that shippiig price is $20. If a customer has 2 rows of items ii the cart, the frst row haviig 3 ideitical products aid the secoid row a siigle uiique item, the shippiig price will be $40. The cart has oily 2 rows, aid it doesi’t matter how maiy items are ii each row.

Page 6: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Calculate Price Per Shipping Group – Before calculatiig a shippiig price, the items are grouped by the product’s Shippiig Group attribute. Shippiig price results for each group are summed to produce afial shippiig rate.

Calculate Highest Group Price – Here items are sorted by Shippiig Group attribute as ii the above “Calculate Price Per Shippiig Group”, butii this case the prices are iot summed, rather the highest rate amoig the grouped matches is selected.

Page 7: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Include Virtual Products in Price Calculation - To iiclude virtual products wheicalculatiig shippiig, select “Yes”. Default is “No”.

Use Product Price in Base Currency - Sometimes Mageito curreicy coiversioiwill iitroduce issues whei usiig price based shippiig. Ii this case, oie optioi is tocalculate shippiig rates usiig the store Base Curreicy prices. Let’s say your storeuses Euros as the base curreicy, but coiverts to GBP, CHF, aid USD. Wheicalculatiig rates ii the coiverted curreicy, there may be rouidiig errors. Iithis case, calculate shippiig rates before coivertiig curreicy. To do so, setthis optioi to “Yes”. Default is “No”.

Use Product Price incl Tax - To iiclude tax whei calculatiig price based shippiig,select “Yes”. Default is “No”.

Page 8: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Use Product Price with Discount To iiclude discouits whei calculatiig pricebased shippiig, select “Yes”. Default is “No”.

CSV Delimiter - Set the feld delimiter for your CSV import fle. Default is “;”. Export/Import - This form feld allows you to upload your customized CSV fle.

This feld is available oily whei the Mageito admii Coifguratioi Scope is setto Maii Website. It will iot show ii Default View.

Page 9: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Handling Fee Calculation Method - Set to “fxed” to add the haidliig feedirectly to the shippiig price, or “perceit” to multiply the shippiig price by thefee as a perceit, thei add it. Default is “fxed”.

Handling Fee - Value to be used for the haidliig fee. Default is “Null”. PostCode Max Length - Sometimes it is iecessary to limit the iumber of zip /

post code characters that will be used duriig lookup. Set the value to 0 forio limit, or a positive iiteger for a maximum post code leigth. This valueis oily used for iumeric or alpha-iumeric post codes. Default is 0.

Page 10: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Displayed Error Message - Custom error message to be displayed to theshopper whei this module eicouiters a problem. Default is “This shippiigmethod is iot available. To use this shippiig method, please coitact us.”

Ship to Applicable Countries - To create shippiig methods for all couitriesallowed ii your Store View, select “All Allowed Couitries”. To restrict shippiigmethods to a select group of couitries, select “Specifc Couitries”. Default is“All Allowed Couitries”.

Ship to Specifc Countries - Choose specifc couitries for which this modulewill apply. Default is io selectioi.

Show Method if not Applicable - To display Shippiig Matrix Rates ii checkoutevei whei it is iot applicable, select “Yes”. Default is “No”.

Sort Order - Order ii which this shippiig method will appear ii the list ofavailable shippiig methods.

Page 11: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need help? [email protected]

CSV-fle ConfgurationShippiig table CSV fles cai be created ii Excel or aiy spreadsheet that exports toCSV. CSV export defaults vary widely, so whei ii doubt, use Excel or the freelyavailable LibreOffice.org. The followiig columis are required for your CSV fle:

Country Eiter couitry code(s) accordiig to the ISO 3166-1 alpha-2 oralpha-3 specifcatiois. See ei.wikipedia.org/wiki/ISO_3166-1 for acomplete list. You cai eiter a siigle couitry code, or a set of couitrycodes separated by commas. If you wait to apply the shippiig methodto all couitries, eiter ai asterisk, “*”. Default is “*”. Examples: “US” or“FR, BE, LU, NL, CH”. Ii the “Couitry” feld oily 4 symbols cai be writteiper oie liie.

Region/State Eiter state or regioi code(s) accordiig to the ISO 3166-1alpha-2 specifcatioi (see above liik for full lists). Regioi or statespecifcity is oily coisidered for couitries that are previouslyeiumerated ii the couitry columi. If you wait to apply the shippiigmethod to all regiois / states, eiter ai asterisk, the “*”. Default is “*”.Ii the feld “Regioi/State” oily 11 symbols cai be writtei per oie liie.

City Eiter the iame of a siigle city or eiter “*” for all cities. Default is “*”.This columi cai be problematic if a customer misspells a city iame.Post code flteriig is usually the better optioi.

Zip From Eiter a siigle post code, or several separated with commas, or the“*” sigi for all possible codes. Optioially, you cai eiter the frst iumbersof a post code followed by the “%” to iidicate all possible codes begiiiiigwith the value eitered. For example, if you wait to apply the shippiigmethod for all postal codes that begii with the iumbers 12xxx, youwould eiter “12%”. Much more is available for this feld. See the detailediiformatioi about post code flteriig ii the sectioi titled, “Filteriig byPost Code”.

Zip To Eiter the last iumber from the post code raige, oie or severalseparated with commas or “*”sigi for all codes or whei otherwiseuiused. Default is “*”. If more thai oie post code is specifed, the ZipFrom columi must have a sequeitially ideitical set of post codes. Thefrst code ii the Zip From columi will be matched to the frst ii theZip To, etc. This columi is igiored ii some cases, see the sectioi titled,“Filteriig by Post Code”.

Page 12: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Weight From Eiter the lowest matchiig weight for the of the product orproduct group. If you have io weight limit or if you do iot wish to matchby weight raige, eiter the “*” sigi for all products with aiy weight. Default is“*”.

Weight To Eiter the highest matchiig weight for the product or product group. If you doi’t require a weight limit for this row, eiter “*”. Default is “*”. This

columi is evaluated oily whei Weight From is a iumeric value. Qty From Eiter the lowest matchiig product quaitity. If you do iot wish to

ship by quaitity, set this to “*”. Default is “*”. Qty To Eiter the maximum matchiig product quaitity. If you doi’t require a

quaitity limit for this row, eiter “*”. Default is “*”. This columi is evaluatedoily whei Qty From is a iumeric value.

Price From Eiter the miiimum matchiig price. If you do iot wish to ship byprice, eiter “*”. Default is “*”.

Price To Eiter the maximum matchiig price. If you do iot wish to ship by price,eiter “*”. Default is “*”. This columi is evaluated oily whei Price Fromis a iumeric value.

Shipping Group The iame of a shippiig group for which a shippiigmethod should be created. Eiter “*”, if you wait to create the shippiigmethod for all shippiig groups ii your store. Default is “*”.

Customer Group The iame of a customer group (Geieral, Wholesale,Retailer, etc.) for which a shippiig method should be created. To createthe shippiig method for all shippiig groups ii your store, eiter “*”. Defaultis “*”

Advanced Calculations Shippiig Matrix Rates allows you to performsimple calculatiois oi the result of the shippiig price logic. Ii otherwords, oice a particular shippiig price result has beei obtaiied for a row,you cai eiter oie or more formulas to modify the rate. This cai beoverly complex, aid we recommeid that you iot use this columiuiless there is io other way to approach a shippiig price problem. Eiteroie or several formula separated by commas or use “*” if you doi’t waitto use Advaiced Calculatiois. Default is “*”. For detailed iiformatioi oihow to use Advaiced Calculatiois, see “Fiie Tuiiig Rates with AdvaicedCalculatiois”.

Page 13: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Shipping Price The actual shippiig price of the shippiig method defied bythis row. A iumeric value is required. Default is 0. This value is passed tothe “Advaiced Calculatiois” feld (if used) before beiig displayed to thecustomer.

Cost Shippiig cost is used for your owi refereice (this feld is iot used iicalculatioi).

Delivery Method Name The delivery method display iame. Oftei this will beideitical for a series of rows. For iistaice, “Weight Based Shippiig”.

Notes Eiter iotes here as ieeded. Especially for future refereice regardiigaiy Advaiced Calculatiois you eiter.

Page 14: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Screenshot 1:

Example CSV File

Screenshot 2:

Screenshot 3:

Page 15: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Filtering by Post Code

To flter by specifc post codes, eiter oie or several ii the “Zip From” feldseparated by commas.

Examples: “9878” or “9878, 9880, 9881” iumeric codes for couitries like Austria. “1234 AB” or “1234 AB, 1234 AD, 1234 AX” alphaiumeric codes for couitries

like the Netherlaids. “A5B 2C3” or “V0H 1A0, V0H 1B0, V0H 3H0” alphaiumeric for couitries like

Caiada aid the Uiited Kiigdom. To flter for a raige of post codes, place the frst value ii the Zip From

feld aid the last value ii the Zip To feld. Support for iumeric aidalphaiumeric raiges is built ii.

Examples: Zip From: 9800, Zip To: 9899 – Ii a couitry with 4 digit post codes, this would

specify a simple raige of post codes. Zip From: 1230, Zip To: 1249 – Ii the Netherlaids where post codes have a

space followed by two letters oi the eid, this would specify all post codes wherethe frst part of the code raiges from 1230 to 1249, iicludiig all possible eidiigs.1230 A to 1249 A would iot work, as it is iot a sequeitial raige, but 1230 A to1230 B would be ai appropriate raige.

Special patteri matchiig characters for the Zip From feld (Zip To feld isigiored ii this case):

“%” – The perceit symbol (%) matches aiy possible combiiatioi of trailiigcharacters.

“_” – The uiderscore (_) matches a siigle trailiig character.Examples:

“AB12%” Will match all post codes that begii with “AB12” “AB12 3 ” Will match all post codes that begii with “AB12 3” aid have

exactly 2 additioial characters. For clarity, there are 2 uiderscores ii this example.

Page 16: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Special Features for Canada

The followiig search variaits are possible for Caiada:

Actual values (oie, or several separated by commas). Templated values usiig patteri matchiig characters at the eid: “%”, “_”; Value raiges require the frst 3 characters but oily match oi the frst 2.

For example: Zip From: A0A, Zip To: A9A –will match post codes from A0A toA9Z, the third character doesi’t iiflueice search results siice it is ioi-sequeitial ii Caiada post codes.

Page 17: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Special Features for the United Kingdom

Actual values (oie, or several separated by commas). Templated values usiig patteri matchiig characters at the eid: “%”, “_”; Value raiges are iot available because UK post codes do iot

follow a sequeitial paradigm.Examples:

“AB12 3CD” or “AB12 3CD, AB12 3C” – Actual values would be matched. “L1” or “RH10” – Matches a full Outward Code. “L” or “RH” – Matches the Postal Code Area of the Outward Code. “L1 3%” or “RH10 3_” – Matches a precisely templated post code.

Special Features for two part numeric codes like 12345-6789(US, Brazil, etc)

Actual values cai iiclude or omit the hyphei. Templated values cai use patteri matchiig characters at the eid: “%”, “_”. Value raiges cai use all or part of a post

code. Examples: “12345-6789” or “123456789” – Match actual values (oie, or several separated

by commas). “12345” – Matches aiy code by the full frst part.

Zip From: 12300, Zip To: 12399 – Matches value raige of the frst part of the post code. 123% – Matches values by template.

Post Code Max Length Notes

If “PostCode Max Leigth” parameter is set to ai iiteger value greater thai 0 ii module coifg, thei the post code that is eitered by a customer will be shorteied to this iumber of characters prior to post code matchiig. This settiig oily works with iumeric or alphaiumeric codes.

Page 18: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need help? [email protected]

Fine Tuning Rates with AdvancedCalculations

A value is eitered ii the Advaiced Calculatiois columi. The feld may coitaii oie orseveral coisecutively executed formulas separated by semicolois. If you doi’tieed to use formulas ii the Advaiced Calculatiois columi, eiter ai “*”. Default is “*”.

There are Formulas for this columi that create simple calculatiois, SelectioiCommaids that tell the columi how to use the calculatiois, aid FiiishiigCommaids to create limits, iice rouidiig, aid price paddiig. You must use aSelectioi Commaid for aiy result to be applied.If you type ii the feld "Advanced Calculations" a lot of difereit formulas, thei it willbe sorted aid committed ii such order: 1) LOWEST_RESULT; 2) HIGHEST_RESULT;3) SUM; 4) PERCENT; 5) OVER_WEIGHT; 6) FULL_WEIGHT; 7) OVER_ITEM; 8) EXTRA;

9) ROUND; 10) MIN; 11) MAX.

Selection Commands

LOWEST_RESULT – This commaid selects the lowest result from all the

formulas ii the Advaiced Calculatiois feld. The result is passed oi the Secoidary Formulas aid Fiiishiig Commaids.

HIGHEST_RESULT –This commaid selects the highest result from all the

formulas ii the Advaiced Calculatiois feld. The result is passed oi the Secoidary Formulas aid Fiiishiig Commaids.

SUM – This commaid sums the results of all the formulas ii the feld.

Formulas

PERCENT (numeric_value) – The PERCENT formula multiplies the calculated

price (see: Shippiig Price Calculatioi Method) by the iumeric value givei as a perceit. Example:

Assume the calculated price is $200, aid the followiig formula, PERCENT (25).

The formula will result as: 200*25% = 50

OVER_WEIGHT (fractioial_weight_uiit*cost_iicrease_per_uiit*ceil) –

The OVER_WEIGHT formula uses the amouit of calculated weight that exceedsthe Weight From columi value as its base for calculatioi. If the “ceil” optioi is used,it will iicrease the calculated weight to the iearest whole value. The base is theidivided by the fractioial_weight_uiit. Fiially the divided result is multiplied by thecost_iicrease_per_uiit.

Page 19: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need [email protected]

Examples: Let’s say I have a shippiig price for packages weighiig 0 to 1 pouid, aidoie for 1 to 7 pouids, but that everythiig over 7 pouids iicreases at astaidard rate of $.75 per half pouid. The matchiig CSV row has a Weight Fromcolumi value of 7 for shipmeits that are 7 or more pouids, the calculatedweight is actually 11.5, aid we specify the formula, OVER_WEIGHT(0.5*.75). 11.5 – 7 = 4.5 The frst thiig the formula does is fgure out how much thecalculated weight exceeds the value ii the Weight From columi. Ii this case,4.5 lbs.

4.5 / 0.5 = 9 Next, we specify that we wait to iicrease the shippiig rate each halfpouid over the base value with the fractioial_weight_uiit. Ii this case, we are 9half pouids over.

9 * .75 = 6.75 Fiially, $.75 is the amouit that we ieed to iicrease shippiig byfor each half pouid over. Ii this case, 9 half pouids over * $.75 per half pouidiets us $6.75.Or, ((11.5-7)/0.5)*.75 = 6.75 Usiig the same coiditiois, but with the additioial requiremeit that theactual weight should be a whole iumber, we specify the formulaOVER_WEIGHT(0.5*.75*ceil).ceil(11.5) = 12 Ii this case we specifed the “ceil” attribute, so the calculatedweight is frst iicreased to the iearest iiteger. Ii this case, 12 lbs.12 – 7 = 5 The portioi that exceeds the Weight From columi is calculated.5 / .5 = 10 The iumber of half pouids our parcel goes over the base weight iscalculated.

10* .75 = 7.50 Fiially multiply by $.75 per half pouid… aid we get $7.50Or, ((ceil(11.5)-7)/.5)*.75=7.50

FULL_WEIGHT (fractioial_weight_uiit*cost_iicrease_per_uiit*ceil) – The

FULL_WEIGHT formula is ideitical to the OVER_WEIGHT formula, but theitem’s eitire weight is used as the base for calculatioi. If the “ceil” optioi isiicluded, the product’s weight rouids up to the iext whole value

Page 20: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need help? [email protected]

Example: Let’s say I ieed to calculate $.85 per half pouid oi the full weight of theitem or item group. I cai use FULL_WEIGHT(0.5*.85) to accomplish this. For ourexample, I will use a product that weighs 5.4lbs.5.4 / 0.5 = 10.8 So here we have 10.8 half pouids

10.8 * .85 = $9.18 The formula thei multiplies 10.8 half pouids by $.85 to give$9.18Or, (5.4/0.5)*.85 = 9.18 If we use the formula, FULL_WEIGHT(0.5*.85*ceil), the calculatioi wouldbe ideitical, but the 5.4lbs would frst be adjusted up to the iext whole value, 6because of the ceil fuictioi.The calculatioi would be: (6/0.5)*.85 = 10.20

Page 21: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need help? [email protected]

Secondary Formulas

OVER_ITEM(quaitity_groupiig*additioial_price) – The OVER_ITEM commaid is appliedafter all formulas have beei

calculated. The quaitity_groupiig ii this commaid is the iumber of uiits for which the additioial_price is applied. The additioial_price is the amouit that is charged per quaitity_groupiig. Similar to the OVER_WEIGHT formula, the value ii the From Quaitity columi is subtracted from the total quaitity to give the quaitity that exceeds the From Quaitity value.Example:

Assume our order of 17 products has matched the CSV row with a FromQuaitity of 10. We have specifed the Secoidary Formula OVER_ITEM(3*2),which meais for every three items over, add $2 shippiig.17 – 10 = 7 So we have 7 items over.7 / 3 = 2.33 We have 2.33 groups of 3

2.33 * $2 = $4.67 The result is ai additioial $4.67 ii shippiig

EXTRA(value) – The EXTRA formula simply adds a fxed price value tothe eitire calculatioi. If you use EXTRA(7.15) aid the shippiig price is $10, thefial result will be $17.15

Finishing Commands

ROUND(precision:direction:ending) – Oice the price is fialized, thiscommaid rouids the result as desired. Note that this commaid is separatedwith colois. precision – (iiteger value, default is 2) This is the precisioi of the

rouidiig. It is oily used whei “directioi” is set to iormal. direction – (up/dowi/iormal, default is “iormal”), “up” meais all

decimals are rouided to iext higher whole iumber ( 5.4, 5.5 or 5.9 will rouid to 6), “dowi” meais all decimals are rouided to iext lower whole iumber (5.4,

5.5 or 5.9 will rouid to 5), “iormal” meais that all decimals greater thai or equal to .5 will rouid up aid all less thai will rouid dowi. ending – (two digit iiteger like 99, or 50) This iumber will be appeided as

the decimal portioi of the shippiig value if supplied.

Page 22: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need help? [email protected]

Example:

Calculated shippiig of $6.32, aid the Fiiishiig Commaid ROUND(:iormal:99)

rouid(6.32) = 6 First the commaid rouids the value dowi accordiig to iormal rouidiig rules

6 + .99 = $6.99 Thei the commaid appeids .99 to the valueMIN(value) – This will be the smallest possible shippiig value. If the

previous calculatiois come back with a value lower thai this, the shippiig valuewill be set to the iew, miiimum price. Example

Calculated shippiig values of $6.99 or $17.99, aid Fiiishiig Commaid MIN(9.99) will result ii a shippiig values of $9.99 or $17.99 respectively.

MAX(value) – Ideitical to the previous MIN() Fiiishiig Commaid, except that it sets a maximum possible shippiig price.

Page 23: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need help? [email protected]

Example Order to Demonstrate Advanced Calculations

We’d like you to demoistrate ai example of usiig the Shippiig Matrix Rates.We created a CSV fle with difereit kiid of formulas.Also ii Notes feld you cai read the explaiatiois of usiig difereit formulas. Scrolliig dowi

the page, you’ll see the examples of usiig the Shippiig Matrix Rates oi website.

CSV fle example:

Page 26: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need help?custo [email protected]

Example 1:

Ii CSV fle we flled out the felds with such data:Country – US; Region/State – AK; City up to Customer Group - *Advanced Calculations – empty feld; Shipping Price – 50

As a result, ii the shoppiig cart the shippiig optioi must be $50

Page 27: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Need help?cust [email protected]

Example 2:

Ii CSV fle we flled out the felds with such data:

Country – US; Region/State up to Weight To - *; Qty From – 80; Qty To- 90Price From up to Customer Group - *; Advanced Calculations – PERCENT(1);MIN(100)Shipping Price – 20Delivery Method Name – limitatioi of miiimum result

As a result, ii the shoppiig cart the shippiig optioi must be $100 or higher

Page 28: for Magento 2 · 2019-05-27 · Parcelforce cai create simple automated rates, they are limited to simple shippiig approaches. Shippiig Matrix Rates allows you to place all required

Email: [email protected]

Web: www.mageside.com

Skype: mageside

Facebook: www.facebook.com/mageside

Twiter: www.twiter.com/magesideteam