[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] $0.00 Shipping Charges Problem
"Cameron B. Prince" wrote:
>
> ****** message to minivend-users from "Cameron B. Prince" <princecb@inetexpertsinc.com> ******
>
> Thanks for your replies Marius, Joachim, and Tim.
>
> I tried the examples you all supplied as you can see below:
>
> [if value shipping eq '$0.00']
> [comment][if value shipping =~ /\$0\.00/][/comment]
> [comment][if value shipping = 0][/comment]
> [comment][if value shipping eq "$0.00"][/comment]
> [comment][if value shipping =~ /$0.00/][/comment]
> <hr>Worked</hr>
> [/if]
The shipping cost is displayed by calling [shipping] (i.e. not [value
shipping]).
I would suggest that you check the value of [shipping noformat=1] in a
perl script. That should work (hopefully).
I use it on [subtotal noformat=1] and [total-cost noformat=1] and that
works fine in a perl script.
example (untested):
[perl interpolate=1]
$ship = [shipping noformat=1];
return 1 if ($ship > 0);
return 0;
[/perl]
Hope this helps.
Chris
>
> None of those worked. I am freaking out here. I mean this isn't rocket
> science. Obviously it's not being matched correctly. But what is the proper
> code to make the match. If I just put a [shipping] in the page it shows
> $0.00