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


how i can set a return value template? 26 Feb 2016 11:53 #1

  • masay
  • masay's Avatar Topic Author
how i can set a return value for my implementation of the template?
i can get a custom value for example "package 1kg" of the custom field package and return throght
php code that package=5???
then with a variable or function in the plugin vmshippingbyroules for example "package" get the value 5??
i can have some example or tutorial?

how i can set a return value template? 29 Feb 2016 10:53 #2

Dear Masay,
There is some basic API documentation available at:

In particular, you would implement the onVmShippingRulesGetCartValues function and set $cartvals to 5, i.e.
function onVmShippingRulesGetCartValues(&$cartvals, $cart, $products, $method, $cart_prices) {
    $cartvals['package'] = 5;

Best regards,
  • Page:
  • 1