Notice: Only variables should be assigned by reference in /var/www/clients/client4/web20/web/templates/shape5_vertex/vertex/responsive/responsive_mobile_sidebar.php on line 8

Notice: Only variables should be assigned by reference in /var/www/clients/client4/web20/web/templates/shape5_vertex/vertex/responsive/responsive_mobile_menu.php on line 278

VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum
Welcome, Guest
Username: Password: Remember me

TOPIC: Notice to user

Notice to user 27 Jan 2017 10:06 #1

Hi Reinhold,

FYI: Joomla: 3.6.5 - VM: 3.0.18 - Shipping by Rules Plugin: 6.2.1

I want to give the user information dependent on some condition. In this case, how much more to spend before Free shipping is available.

If I enter the rule:
Notice="To qualify for FREE {ShopperCategory} shipping you would need to spend <strong>GBP{freeshippingmore}</strong>"; FreeShipping>Amount;

However this gives me the following error:
Unknown rule type '' encountered for rule 'Notice="To qualify for FREE {ShopperCategory} shipping you would need to spend GBP{freeshippingmore}"; FreeShipping>Amount;'


The message is still displayed to the user (as well as error message above):
To qualify for FREE Retail shipping you would need to spend GBP42.8

I guess this is because their is no Shipping= at the end of the rule.
How can I get round this ?

Also how do I display two decimal places for the value of freeshippingmore ?

regards
Eliot
The administrator has disabled public write access.

Notice to user 07 Feb 2017 11:06 #2

Dear Eliot,
I'm Aware of this Limitation, and I'm thinking about how to properly implement automatic detection (i.e. if a notice/warning/message is given in a rule the shipping cost should not be a required field. However, in the code this is a little harder to get right).

As a workaround for now you can simply append Value=0, e.g.
Notice="To qualify...."; FreeShipping>Amount; Value=0

This makes the plugin Interpret this rule like a variable Definition (so no warning will be shown), but as no variable Name is given, the plugin will also not make any variable assignment. The message will still be displayed, of course.

Best regards,
Reinhold
The administrator has disabled public write access.

Notice to user 07 Feb 2017 14:51 #3

Hi Reinhold

I tried that however it stops users proceeding through checkout to payment.

regards
Eliot
The administrator has disabled public write access.

Notice to user 19 Feb 2017 20:31 #4

Dear Eliot,
Are you using some third-party checkout plugin? With the default checkout of WooCommerce, a notice should not prevent users from checking out. I just cross-checked and with the default settings I'm just fine checking out, even when a message is displayed by the shipping plugin.

Do you use some third-party OPC plugin? I know that at least the VP OPC plugin does not allow checking out when any message is displayed (which in my eye is a bug in their OPC plugin...). I have informed the author of that OPC plugin a while ago, so he should be aware, but I haven't heard back whether he has fixed this issue yet.
It's probably best if you contact the author of your OPC plugin to fix this, if the OPC plugin is the cause of the problem.

Best regards,
Reinhold
The administrator has disabled public write access.

Notice to user 20 Feb 2017 11:29 #5

Hi Reinhold

I'll check with the author.

How do I display two decimal places for the value of variables when displayed in notices ?

regards
Eliot
The administrator has disabled public write access.

Notice to user 04 Mar 2017 17:48 #6

Dear Eliot,
To dispay variables rounded to two decimals, you'll have to add a custom variable that is rounded to two decimals (i.e. rounded to the nearest multiple of 0.01):
Variable=RoundAmount; Value=round(Amount,0.01)
Message="Rounded Amount is {RoundAmount}"; Value=0

You can then use this variable in your messages as shown above.

Best regards,
Reinhold
The administrator has disabled public write access.

Notice to user 05 Jul 2017 12:36 #7

Hi Reinhold

If the value is say 27.30 then this gets changed to 27.3 in the message or notice

regards
Eliot
The administrator has disabled public write access.

Notice to user 02 Aug 2017 00:29 #8

Dear Eliot,
You are right, there is currently no way to format a number with a fixed number of digits. Rounding makes sure to use at most the desired number of digits, but trailing zeroes will not be shown. I'm not aware of a workaround.

Best regards,
Reinhold
The administrator has disabled public write access.

VM - Shopping cart

 x 

Cart empty

Login Formular