VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

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

TOPIC: Shipping rule not found

Shipping rule not found 30 Sep 2017 06:03 #1

This is my shipping rule:

Name="Ground Shipping";convert_to_currency(Amount, "USD")<10;Shipping=50

and I got the following error on the front end:

Unknown function 'convert_to_currency' encountered during evaluation of rule 'Name="Ground Shipping";convert_to_currency(Amount, "USD")<10;Shipping=50'.

I am using the advanced version shipping by rules in Virtuemart. Why is that happened?

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

Shipping rule not found 07 Oct 2017 20:32 #2

Dear Huaqc8,
Sorry to hear about your problem. It is in fact our mistake in the documentation: The function is rather called ConvertToCurrency (not case-sensitive), so the correct, working rule should be:
Name="Ground Shipping"; convertToCurrency(Amount, "USD")<10; Shipping=50

Best regards,
Reinhold

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

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular