[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: if statement to compare strings
****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
>****** message to minivend-users from "Russ" <russ@khouse.org> ******
>
>Hello,
>
>I am implementing a new checkout process that collects both shipping and
>billing information regardless of whether or not you want to. I want to
>only print billing information if the shipping and billing info are exactly
>the same. I know the logic, and I know how to do it in perl, but can't seem
>to make things work in Minivend 3.12.
>
>In the final checkout page, there are two variables passed like this:
>
><input name="billo" type="hidden" value="[value b_name_first][value
>b_name_last][value b_address][value b_state][value b_zip][value
>b_email][value b_phone_day]">
><input name="shipo" type="hidden" value="[value name_first][value
>name_last][value address][value state][value zip][value email][value
>phone_day]">
>
>Now, in order to decide whether or not to print the shipping information I
>just want to compare these values!
>in perl like this:
>
>if ($billo ne $shippo)
>{ print "Shipping Name: [value name_first]"; }
>
>How do you do it in Minivend tags? I've tried the following:
>[if [value shipo]ne[value billo]]
> Shipping Name: [value name_first] [value name_last]
>Shipping Address: [value address]
>City, State, Zip: [value city], [value state] [value zip]
>Shipping Country: [value country]
>[/then]
>
>Any clues? Anyone doing something similar?
>
[if type="value" term="shipo" op="ne" compare="[value billo]"]
[then]
whatever
[/then]
Cheers, Frank
--
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list