Algorithm Column

The algorithm column allows you to specify advanced options around how your shipping rules will work.

Please refer to the examples linked from the switch column before using any of these in your rules.

Switch Description Syntax
w= Weight rounded to the next highest full measurement. Adds the specified amount for every unit to the next rounded to the next whole number of weight above the weight from field W=<weight threshold> @ <price>to add $1.50 per 1ln use: W=1@1.5surcharge for 0.5lb would be 1 * 1.5 = 1.5
wnc= Weight based price increase. Adds the specified amount for every unit of weight above the weight from field WNC=<weight threshold> @ <price>to add $1.50 per 1lb use: WNC=1@1.5 surcharge for 0.5lb would be 0.5 * 1.5 = 0.75
v= achieved using syntax V=Volume @ Price. For example, to add $5 for every 500 units of volume use: v=500@5
i= Unit based price increase. Used to specify an additional per item rate I=<price> Increase per unit added E.g. to add $5 for every item added use: I=5
m= Store a unique shipping method code in the database. Unless you have a specific requirement for this please ignore. Used to store a unique shipping code in the database for use with order/delivery management solutions. Stored as field ’shipping_method’ in sales_order/sales_flat_order. You can also retrieve this value via the Magento API m=FDXGND
instock=<bool> Check if all items are in stock/out of stock. You could use this to offer express shipping if all items are in stock. Alternatively use it to offer delayed delivery if items are out of stock instock=true checks if all items are in stock, instock=false checks if there’s any item that is out of stock
stock= (Only supported in Premium Zones) Check if all items are in stock or out of stock or both. You could use this to offer express shipping if all items are in stock. Or you can use it to offer delayed delivery if items are out of stock. Alternately If you have a scenario where you have 2 or more items in the cart are in stock and out of stock you can use the both to display a separate shipping method. stock=only_in checks if all items are in stock, stock=only_out checks if there’s any item that is out of stock and stock=both checks if there is any items in stock and out of stock in the cart.
min= define a minimum price to be used for that shipping method. If the other algorithms price is below the minimum price then min= would be used. Added in version 7.4 to apply a minimum shipping price of $10 you would use min=10
To use multiple algorithms use an ampersand ‘&’ e.g. i=10&wc=1@0.5
0 votes

Leave a Reply

Featuring WPMU Bloglist Widget by YD WordPress Developer