Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Forum

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!

×

Notice

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

TOPIC:

shipment by total amount of the three dimensions 17 Oct 2014 11:19 #1

  • daviz87
  • daviz87's Avatar Topic Author
Hello,

firstly thanks for this great component. I would to set my shipment by the total amount of: Length, Width and Height. For example: until 120 cm the price is 8, from 121 to 140 cm the price is 10 and greater than 140 cm the price is 12. I tried to write this code:
Name=Shipment; TotalPackaging<=120; Shipping=8
Name=shipment; 121>=TotalPackaging<=140; Shipping=10
Name=shipment; TotalPackaging>=141; Shipping=12

Unfortunately it doesn't work. Can you help me?
Thanks in advance

shipment by total amount of the three dimensions 17 Oct 2014 12:29 #2

The TotalPackaging variable is just the sum of all packaging variables (given in the product config in the backend).
To get the sum of len, width and height, you can define your own variable:
Variable=MyVariableName; Value=TotalLength+TotalHeight+TotalWidth

You can then use that variable like any of the predefined variables in the subsequent rules.

Best regards,
Reinhold

shipment by total amount of the three dimensions 17 Oct 2014 14:32 #3

  • daviz87
  • daviz87's Avatar Topic Author
Thank you for your answer! I tried with these rules:
Variable=Totalsize; Value=TotalLength+TotalHeight+TotalWidth
Name=Corriere espresso; 0<Totalsize<=120; Shipping=8
Name=Corriere espresso; 120<Totalsize<=140; Shipping=10
Name=Corriere espresso; Totalsize>141; Shipping=12

but in the cart I have this message: "Evaluation yields unknown value while evaluating rule part 'TotalLength+TotalHeight+TotalWidth'". Where am I wrong?

shipment by total amount of the three dimensions 21 Oct 2014 13:06 #4

Are you using the advanced version of the plugin for the shipping method? Custom variables are only supported in the advanced version. If you have both versions installed, you need to make sure to select the advanced plugin as the shipment type in the shipment method configuration.

Best regards,
Reinhold
  • Page:
  • 1