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


Ceil not working 31 Aug 2015 14:11 #1

  • jpeters
  • jpeters's Avatar Topic Author
current test shipment rule:
Joomla 3.4
Virtuemart 3.0.9
shipment rules v5.6

shipment rule parameters:
Weight unit Kg
Lenght unit cm

country norway

name="test {Weight}; Shipping=6.95+0.19*ceil(Weight)

this results in 0.0 shipping costs.

bassicly what i need is for several country's.
every country a base shipping costs and cost per kg..

Ceil not working 31 Aug 2015 15:41 #2

  • jpeters
  • jpeters's Avatar Topic Author
for now i have a work arround..

name=Total {weight} kg; Weight<1; Shipping=10
name=Total {weight} kg; Weight>14; Shipping=41.66
name=Total {weight} kg; Weight>13; Shipping=40.03
name=Total {weight} kg; Weight>12; Shipping=38.40
name=Total {weight} kg; Weight>11; Shipping=36.77
name=Total {weight} kg; Weight>10; Shipping=35.14
name=Total {weight} kg; Weight>9; Shipping=33.51
name=Total {weight} kg; Weight>8; Shipping=31.88
name=Total {weight} kg; Weight>7; Shipping=30.25
name=Total {weight} kg; Weight>6; Shipping=28.62
name=Total {weight} kg; Weight>5; Shipping=26.99
name=Total {weight} kg; Weight>4; Shipping=25.36
name=Total {weight} kg; Weight>3; Shipping=23.73
name=Total {weight} kg; Weight>2; Shipping=22.10
name=Total {weight} kg; Weight>1; Shipping=20.47

the costs are 18.84 + 1.63 for every 1 kg.

Ceil not working 03 Sep 2015 16:48 #3

Dear JPeters,
Is this the exact rule copied from the settings?
You might notice that the name starts with a quote, but never closes it. To the plugin, this means that the name lasts until the end of the line, and an implicit Shipping=0 is used...

I suppose things should work as expected when you either close the quote properly or leave it out altogether...
name="test {Weight}"; Shipping=6.95+0.19*ceil(Weight)

Best regrads,

Ceil not working 04 Sep 2015 10:45 #4

  • jpeters
  • jpeters's Avatar Topic Author

i did a copy/past of the rule you delivered..

it's not working..
name="test {Weight}"; Shipping=6.95+0.19*ceil(Weight)
its not working: no shipping fee is calculated

when i change the rule to this:
name="test {Weight}"; Shipping=6.95
its working. shipping fee

when i change the rule to this:
name="test {Weight}"; Shipping=0.19*ceil(Weight)
its not working: no shipping fee is calculated

the rule is calcultating the Weight correctly (shown in the description of the shipping ..)

Ceil not working 12 Sep 2015 14:11 #5

Dear JPeters,
This sounds as if you are using the free plugin for that shipping method. Can you please make sure that you have really selected the advanced version of the plugin for the shipping method. See the attached screenshot:

The "Shipment Method Information" Tab has the "Shipment Method" setting, which needs to be set to the advanced version of the plugin rather than to the free version.

Best regards,

Ceil not working 14 Sep 2015 11:04 #6

  • jpeters
  • jpeters's Avatar Topic Author
i am using your free version of shipping rules..

Ceil not working 15 Sep 2015 01:07 #7

Dear JPeters,
Thanks for the clarification. Unfortunately, mathematical expressions and functions are only available in the advanced version of the plugin. That explains your problems.

There should actually be an error message about some failed evaluation of the shipping cost term, but apparently you use one of those Joomla templates that has for some strange reason removed the message notifications...

Best regards,
  • Page:
  • 1