Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping by Rules for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Help with code for custom shipping 29 Apr 2014 23:44 #1

  • creositi
  • creositi's Avatar Topic Author
Hello,
I would need to create a string with the following commands:

delivery of a specific product 10 €, shipment of the same product in some places (by zip code) 20 €
delivery of a specific product 5 €, shipment of the same product in some places (by zip code) 10 €
delivery of a specific product 3 €, shipment of the same product in some places (by zip code) 4 €
Free Shipping general
€ 5 shipping to some places (by zip code) - general

The products with different delivery (as the first, second and third string) will be many.
I made this string, but does not work.

Name="Corriere Espresso"; "LUX55TBI" in SKUs; Shipping=20; 07010<=ZIP<=09170 OR 90010<=ZIP<=99999; "LUX55TBI" in SKUs; Shipping=30;
Name="Corriere Espresso"; "LUX55TBI" in SKUs; Shipping=5; 07010<=ZIP<=09170 OR 90010<=ZIP<=99999; "PROVA" in SKUs; Shipping=10;
Name="Corriere Espresso"; "LUX55TBI" in SKUs; Shipping=3; 07010<=ZIP<=09170 OR 90010<=ZIP<=99999; "PROVA3" in SKUs; Shipping=4;
Name=Corriere Espresso; Shipping=0
Name=Corriere Espresso - Isole; 07010<=ZIP<=09170 OR 90010<=ZIP<=99999; Shipping=5

Help with code for custom shipping 03 May 2014 22:29 #2

1) With the plugin can only set shipping costs for the whole cart. The plugin does NOT provide a way to give shipping costs per article, which are then summed up to the total shipping costs.

2) In a rule, all rule parts have to match. So for example your first line has the following conditions, which ALL have to be true:
- "LUX55TBI" in SKUs
- 07010<=ZIP<=09170 OR 90010<=ZIP<=99999
- "LUX55TBI" in SKUs
If all three are true, then the shipping cost of the whole cart is set to 30 (the first Shipping=20 will be overridden by the second Shipping=30).

Best regards,
Reinhold
  • Page:
  • 1