Algorithm Based Examples

Custom Shipping Code Algorithm

This example shows you how to store a custom shipping code in your database for use with a 3rd party order management system or fulfillment system. This is stored as the “shipping_method” in sales_flat_order. The shipping method name is stored in the same table as “shipping_description”.

In this example we want to store FedEx shipping options with specific codes:

FedEx Ground = FDXGND

FedEx 2Day Air = FDX2DY

FedEx Overnight = FDXOVR

Custom Shipping Codes Example


Minimum Shipping Cost Algorithm

This algorithm enables you to set a minimum shipping cost for the shipping method if the rule this algorithm is set on is matched.

In this example we’re going to offer a “Standard” shipping method which costs $5 base price and then for every 1lb charge $2(this is setup using W=)  we want the minimum Shipping price to be $20, if we add an Item into the cart which weighs 5lbs the shipping price calculation would be base + weight total which works out to $15 but with the MIN algorithm the shipping price would become $20. Now if the item weighs 10lbs then the shipping price would be $25 so the MIN algorithm would not be applied.

Minimum Shipping Cost Example

0 votes

Leave a Reply

Featuring WPMU Bloglist Widget by YD WordPress Developer