MiniVend Akopia Services

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

Re: Evaluate [data session source]



******    message to minivend-users from Frank Miedreich <miedreich@acm.org>     ******

>******    message to minivend-users from cyberJames
><jjohnson@walkthetalk.com>     ******
>
>I am using a source code in mass email to offer only certain users
>10%.  Well I WANT to do this. :)
>
>http://207.158.108.101/cgi-bin/store/valentine?;;wfm
>(the link doesn't work yet... there will be a special page later)
>
>So.. my  [data session source] is 'wfm'.
>
>All I want to do is give people who come in this way 10% off...
>What am I doing wrong?
>
>[if explicit]
>         [condition]
>             $code = '[data session source]';
>             return 1 if $code='wfm';
>             return 0;
>[/condition]
>
>        [item-list]
>           [discount code="[item-code]"]
>               return ($s * .90);
>           [/discount]
>        [/item-list]
>[/if]
>
>---
>
>I suppose it's something with "return 1 if $code='wfm';"
>
>I have to have this up and running by MONDAY EEEEK!
>
>Thanks in advance for helping this idiot :)
>
>
>Best regards,
>cyberJames

You suppose correctly. $code='wfm' is an assignment.
The string comparison operator in perl is eq, so you may want
"return 1 if $code eq 'wfm';"

Take heart. Monday is still 72 hours away. Time to read the output of "man
perlop".

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


Search for: Match: Format: Sort by: