[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Unable to set scratch variables
****** message to minivend-users from Jarno Niemela <jargon@iki.fi> ******
Hello.
I have trouble when I'm trying to set scratch variables
that I should test with [if ...] statement.
I'd want to create a checkout page in which the user could select
a payment type (between various types of online banks used around here,
no-one trusts a credit cards..).
Here's what I'v been trying
----
<FORM ACTION="[process-target secure=1]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
<input type="hidden" name="mv_doit" value="refresh">
<input type="hidden" name="mv_orderpage" value="ord/checkout">
<input type="hidden" name="mv_checkout" value="ord/checkout">
<input type="hidden" name="mv_nextpage" value="ord/checkout">
<TABLE WIDTH=600>
<TR><TD>
<SELECT MV.OPTION="my_payment_type" NAME="my_payment_type"
onChange="this.form.submit()" MV.ARG="posti leonia">
<OPTION value="posti"> Postiennakko
<OPTION value="leonia"> Leonia verkkomaksu
</SELECT>
</TD>
<TD ALIGN=RIGHT><INPUT TYPE=submit VALUE="[L]Paivita[/L]"></TD>
</TR>
</TABLE>
</FORM>
[if scratch my_payment_type eq posti]
[then]
<TABLE WIDTH=600><TR><TD __HEADERBG__>
<FONT SIZE="+2" __HEADERTEXT__>[L]Maksutapana postisiirto[/L]</FONT>
</TD></TR></TABLE>
[/then]
[else]
<TABLE WIDTH=600><TR><TD __HEADERBG__>
<FONT SIZE="+2" __HEADERTEXT__>[L]Maksutapaa ei maaritetty[/L]</FONT>
</TD></TR></TABLE>
[/else]
[/if]
---
And no matter that I try i can't set the value my_order_type to anything, so
the [if] always evaluates to false. So what prints out is
'Maksutapaa ei maaritetty' (payment type not specified)
I'd really appreciate help on this.
Jarno Niemela.
-
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