[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Problem with pull-down menus and remembering option.
****** message to minivend-users from Daniel Lower <daniel_lower@yahoo.com> ******
First of all I am running mvend 3.10 on a Linux
Redhat 5.2 box POSIX compliant perl
I have a pull-down menu in my checkout.html form for a user to choose
a city from. Problem is it won't remember the city name between
updates.
I know this can be done as the country one is remembered between
updates, only trouble is I've looked and looked and I can't see how
the example does it.
I've found this code inside checkout.html
-----------------------
[if base=data
term="country::shipmodes::[default country US]"
op="=~" comp="[default mv_shipmode airpost]"]
[then]
[default name="country" default=US set=1]
[default name="mv_shipmode" default=airpost_cust set=1]
[/then]
[else]
[perl values]
$ship = tag_data('country', 'shipmodes',
$Safe{'values'}{country});
$out .= $ship;
$ship =~ s/\s+.*//;
$Safe{'values'}{mv_shipmode} = $ship;
return '';
[/perl]
[/else]
[/if]
-----------------------------------------------
I don't understand it what does. What does tag_data do?
What does "if base=data" mean. I know base is an alias for a table,
database what does data mean.
Thanks for your help in advance.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
-
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