VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: dry_crushader on December 12, 2012, 02:44:04 AM

Title: Shipping Method - Per Kg
Post by: dry_crushader on December 12, 2012, 02:44:04 AM
Sorry If I'm really a newbie here. But can someone tells me how to create a custom shipping method (or create a module for that) so I can set the cost per KG and for 1 city.

I.E :
- to City A : $1/Kg
- to City B : $2/Kg

Please help me.. I'm stuck now.. :(
I'm using VM 2.0.14
Title: Re: Shipping Method - Per Kg
Post by: reinhold on January 17, 2013, 01:00:48 AM
Quote from: dry_crushader on December 12, 2012, 02:44:04 AM
Sorry If I'm really a newbie here. But can someone tells me how to create a custom shipping method (or create a module for that) so I can set the cost per KG and for 1 city.

I.E :
- to City A : $1/Kg
- to City B : $2/Kg

Using my brand-new "Advanced Shipping by Rules for VirtueMart 2" plugin (the free version doesn't support shipping cost per kg) you can easily implement this:
http://open-tools.net/virtuemart-2-extensions/vm2-shipping-by-rules-plugin.html

The appropriate rule would be (with a condition on the ZIP code of the city):

Name=Shipping to City A; ZIP==01234; Shipping=1*Weight
Name=Shipping to City B; ZIP==56789; Shipping=2*Weight


Cheers,
Reinhold