VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping By Rules for WooCommerce

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!

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Advanced Shipping Rules and

Advanced Shipping Rules and 07 Feb 2017 04:16 #1

  • bburnett
  • bburnett's Avatar Topic Author
  • Offline
  • Posts: 2
I just installed simplesalestax.com/ and then went to see if our local sales taxes are calculating correctly and
ran into this error related to Advanced Shipping Rules:

Syntax error during evaluation, RPN is not well formed! (Full rule: 'Shipping=17%')
Unknown error occurred during evaluation of rule 'Shipping=17%'.
Outstack:
Array
(
[0] => Shipping
[1] => 17
[2] => %
[3] => =
)
Assignments are not allowed inside expressions (rule given was 'Shipping=17%')
Unknown rule type '' encountered for rule 'Name="17Percent";Amount>=88.24;Shipping=17%'

Any recommendations?

Please Log in or Create an account to join the conversation.

Advanced Shipping Rules and 07 Feb 2017 12:38 #2

Dear BBurnett,
The plugin does not support the % notation. Instead of 17% you need to write 0.17

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

Advanced Shipping Rules and 08 Feb 2017 15:23 #3

  • bburnett
  • bburnett's Avatar Topic Author
  • Offline
  • Posts: 2
The side bar says "In the advanced version, all expressions may contain arbitrary basic arithmetic expressions (+, -, *, /, %, ^ and parentheses) of the above variables and functions like max(..), min(..), round(..), ceil(..), floor(..), day(), month(), etc.."

We purchased the advanced version. We shipping to be 17% of the product total with a $15 minimum. I thought this had been working:
Name="Minimum15";Amount<88.24;Shipping=15
Name="17Percent";Amount>=88.24;Shipping=17%

Please Log in or Create an account to join the conversation.

Advanced Shipping Rules and 09 Feb 2017 11:37 #4

Dear BBurnett,
Thank you for pointing out that text. The % Operator in the rules does not mean Percent, but the remainder of a Division.

As I said, 17% is the same as 0.17, which is understood by the plugin.So instead of Shipping=17%, you'd Need to write
Shipping=0.17*Amount
Additionally, If you want your shipping costs to be 17% of the total order amount, but at least $15, you can combine these two into one rule:
Shipping=Max(15, 0.17*Amount)

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular