Welcome,
Guest
|
TOPIC:
I need help plaese to create weight and price 28 Feb 2014 02:06 #1
|
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
|
|
If our custommer buy up to 1000 --- Shipping fee is 100
If he buy for more that 1000, the shipping is free... The code looks like this: Amount<100;Shipping=5 Name=Free shipping above 100€;100<=Amount;Shipping=0 But I need to add weight differential calculation to this code. If my customer buy some heavy gear, he has to pay for shipping, even if the amount is more that 1000 weight more than 10 kg --- no matter what amount -> shipping 200 weight more than 20 kg --- no matter what amount -> shipping 300 weight more than 30 kg --- no matter what amount -> shipping 400 I hope that you understand my question, and are able to help me! Best regards Martin |
|
So, your logic to calculate the shipping cost ist:
-) If the weight>30kg -> Shipping is 400 -) If the weight>20kg -> Shipping is 300 -) If the weight>10kg -> Shipping is 200 -) If the amount<100 -> Shipping is 5 -) Otherwise, shipping is 0 Simply use that order for the rules. The plugin will return the first rule that matches... Weight>30; Shipping=400
Weight>20; Shipping=300
Weight>10; Shipping=200
Amount<100; Shipping=5
Name=Free shipping above 100€;100<=Amount;Shipping=0 Best regards, Reinhold PS: By "more than 30kg" do you mean "30kg or more" or "strictly more than 30kg"? In particular, if you have an order of exactly 30kg, shall that be 400 or 300? If you mean "30kg or more", then you need to use >= in the comparison rather than > Best regards, Reinhold |