Welcome,
Guest
|
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!
Welcome,
Guest
|
|
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? |
|
Dear Rudolf,
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 |
|
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. |
|
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 |