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:

How to set 1st kilo fix, and succeedin kilo in fix 24 May 2015 09:25 #1

  • rudolfryan
  • rudolfryan's Avatar Topic Author
Hi, I bought the paid version hoping for a shorter line of code.
my current code is.

Name=DHL; Weight<=1; Shipping=1350
Name=DHL; 1<Weight<=2; Shipping=1550
Name=DHL; 2<Weight<=3; Shipping=1829
Name=DHL; 3<Weight<=4; Shipping=2095
Name=DHL; 4<Weight<=5; Shipping=2395

I need a code like this...

1st Kilo is 1350, for every succeeding kilo, add 300.....
Is this possible? so i dont need to add 30 lines of code per zone country?

How to set 1st kilo fix, and succeedin kilo in fix 28 May 2015 00:15 #2

Dear Rudolf,

1st Kilo is 1350, for every succeeding kilo, add 300.....
Is this possible? so i dont need to add 30 lines of code per zone country?


You can easily write this shipping cost structure in one line (there are actually several similar questions here in the support forum already):
Name=DHL; Weight<=1; Shipping=1050+300*ceil(Weight)

BTW, your current rules do not add 300 per kg,

Best regards,
Reinhold

How to set 1st kilo fix, and succeedin kilo in fix 28 May 2015 15:21 #3

  • rudolfryan
  • rudolfryan's Avatar Topic Author
HI again, I copy pasted your code

Name=DHL; Weight<=1; Shipping=1050+300*ceil(Weight)

Shipping cost only appears on the first kilo, when i add more items to test 2KG, shipping options dissapears.

How to set 1st kilo fix, and succeedin kilo in fix 28 May 2015 15:36 #4

  • rudolfryan
  • rudolfryan's Avatar Topic Author
Ok I manage to solve it via this code :-)

Weight>=1;Shipping =740+370*ceil(Weight)

This sets all shipping cost below 1KG to 1110 and every succeeding kilo +370

[SOLVED] How to set 1st kilo fix, and succeedin kilo in fix 02 Jun 2015 00:41 #5

Problem solved.
  • Page:
  • 1