MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

if statement to compare strings



******    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?

Russ
--------------------------
Earn Money to surf the Internet Click Here!
http://www.alladvantage.com/refhome.asp?refid=AWW-495

-
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


Search for: Match: Format: Sort by: