GJC VM2.0 Postcodes Plugin for Canada

It has been tested on a range of Canadian Postcodes.
Please see http://en.wikipedia.org/wiki/List_of_postal_codes_in_Canada

The advantage of this plugin is you can set your own postage areas (Postcode areas), costs, limits (weight, price, number of articles etc) all on one Virtuemart Shipping method.

The plugin uses a simple comma separated list pasted in the text area to configure the method.

On this test site I have configured 3 zones that cover all Canadian postcodes.

Try Yukon codes like Y1A 1C2 or Toronto like M4N 2K5

Minor debugging is on so you can see what is happening.

Territories,X*Y,20,0.20,200.00,400.00
Canadian Provinces,A*B*C*E*G*H*J*P*R*S*T*V,15,0.15,150.00,300.00
Southern Ontario,K*L*M*N,10,0.10,100.00,150.00

Name,Postcode*Postcode*Postcode,BasePrice,PriceMultiplier,Trigger,PriceFree

  • BasePrice: Fixed fee - used on it's own or in conjunction with the trigger

  • PriceMultipier: a value that is multiplied by the Sale price over or Weight over.

  • Trigger: If set and the 'Trigger' is set to 'Trigger by Price' and the Sale Price is above this figure then the PriceMultipier will be triggered.
    If the 'Trigger' is set to 'Trigger by Weight' and the weight is above this value then the PriceMultipier will be triggered.

  • PriceFree: If the Sale price is above this figure Shipping will be free


Settings available in the method
  • Country.
  • Lowest Weight.
  • Highest Weight.
  • Up To Weight - this is used in conjunction with the multiplier value to set a limit for the base value. When this passed the multiplier value is used. You can choose to add the base value to this value.
  • Minimum number of products.
  • Maximum number of products.
  • Minimum order amount.
  • Maximum order amount.
  • Tax.
  • Default Zone values - Base, Multiplier, Trigger and Free. These values will be used if the postcode is not found.
  • Price Multiplier - choose to multiply by weight or Sales Price.
  • Price Multiplier Type - choose if to add the base value to the multiplier value.
  • Full debug on/off
  • Minor debug on/off

 

Example One: Base price then fixed amount per dollar over the trigger.

ex1

Pasted code:

Name,Postcode*Postcode*Postcode,BasePrice,PriceMultiplier,Trigger,PriceFree

Southern Ontario,K*L*M*N,10,0.15,40,150.00

This will give $10 shipping up to $40 and add 15 cents for each $ over.

Over $150 shipping is free.

Example Two: Base price then fixed amount per kilo over the trigger.

ex1

Pasted code:

Name,Postcode*Postcode*Postcode,BasePrice,PriceMultiplier,Trigger,PriceFree

Southern Ontario,K*L*M*N,10,2,3,150.00

This will give $10 shipping up to 3kg and add $2 for each Kg over.

Over $150 shipping is free.

 

Example Three: Intial price then fixed amount per kilo over the trigger.

ex1

Pasted code:

Name,Postcode*Postcode*Postcode,BasePrice,PriceMultiplier,Trigger,PriceFree

Southern Ontario,K*L*M*N,10,4,2,150.00

This will give $10 intial shipping up to 2kg and $4 for each Kg over the 2kg trigger.

Over $150 shipping is free.

 

Example Four: Intial price then fixed amount per $ over the trigger.

ex1

Pasted code:

Name,Postcode*Postcode*Postcode,BasePrice,PriceMultiplier,Trigger,PriceFree

Southern Ontario,K*L*M*N,10,0.14,60,150.00

This will give $10 intial shipping up to $60 sale price and 14 cents for each $ over the $60 trigger.

Over $150 shipping is free.

 

Example Five: Simple price per $ value of sales - use 0 as trigger

.

ex1

Pasted code:

Name,Postcode*Postcode*Postcode,BasePrice,PriceMultiplier,Trigger,PriceFree

Southern Ontario,K*L*M*N,,0.14,0,150.00

This will give 14 cents for every $ of sales price.

Over $150 shipping is free.

Price Multiplier Type setting is ignored.

 

Example Six: Simple price per Kg - use 0 as trigger

.

ex1

Pasted code:

Name,Postcode*Postcode*Postcode,BasePrice,PriceMultiplier,Trigger,PriceFree

Southern Ontario,K*L*M*N,,2,0,150.00

This will give $2 shipping for every Kg.

Over $150 shipping is free.

Price Multiplier Type setting is ignored.

 

Example Seven: Simple base price - use x as trigger.

ex1

Pasted code:

Name,Postcode*Postcode*Postcode,BasePrice,PriceMultiplier,Trigger,PriceFree

Southern Ontario,K*L*M*N,10,,x,150.00

This will give a shipping price of $10 for this postcode match.

Over $150 shipping is free.

Price Multiplier Type & Price Multiplier setting is ignored.

 






 

All the plugins and modules are available at www.gjcwebdesign.com 

Virtuemart 2.0 NZ Post Shipping Plugin Virtuemart 2.0 Post - ZIP code Shipping Plugin
   
Virtuemart 2.0 Cart with Shipping Module J2.5 nofollow Plugin
There are also Virtuemart 1.1 shipping extensions available.




 

All the plugins and modules are available at www.gjcwebdesign.com 

Virtuemart 2.0 NZ Post Shipping Plugin Virtuemart 2.0 Post - ZIP code Shipping Plugin
   
Virtuemart 2.0 Cart with Shipping Module J2.5 nofollow Plugin

There are also Virtuemart 1.1 shipping extensions available.