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!



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


minimum shipping charge 11 Mar 2015 06:40 #1

  • jakhall
  • jakhall's Avatar Topic Author
Hello, I want to sell floor tiles per M2.
The cost of shipping to various areas is $15 per M2 which I have set up many shipping rules for.

My issue is, I need a minimum shipping fee of $150. So even if someone selected only 1m2, the cost of shipping for this amount would still show as $150. When they purchase more than 10m2, then it will calculate shipping at $15 per m2

can this be done with your plugin?

minimum shipping charge 14 Mar 2015 00:00 #2

Dear Jakhall,
How does the user choose the m^2? Or rather: Are you using a VM plugin to let the user choose the m^2 or do you simply use the default VM quantity as the number of m^2?

In the first case, it depends on which plugin you use exactly.
In the latter case, the shipping rule would be:
Shipping=max(150, Articles*15)
Explanation: Articles is the total quantity of all articles in the order, which in your case identifies the number of m^2. Each of them is 15$, so the cost is Articles*15. However, you want at least 150$, so you take whatever is larger: Either 150 or Articles*15 if that is larger.

Best regards,
  • Page:
  • 1