Akopia Akopia Services

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

[mv] loop search.



Hello List,

I'm runnin this on MV4.04 , RH6.1

On the checkout page, this chunk of code (which is identical
to the chunk in the simple demo) will not pull the name field
[loop-data country name]  from the country.txt table.
but it does pull the code [loop-code]

  [if value country =~ /(^$|US|CA)/]
  <SELECT NAME=country onChange="this.form.submit()">
   <OPTION VALUE="US"> United States
   <OPTION [selected country CA] VALUE="CA"> Canada
   <OPTION VALUE="JP"> Other (select to change)
  </SELECT>
  [else]
  <SELECT onChange="this.form.submit()" NAME=country>
  [loop search="ra=yes/fi=country.txt/ml=1000/tf=name" option=country]
   <OPTION VALUE="[loop-code]">[loop-data country name]
  [/loop]
  </SELECT>
  [/else]
  [/if] <FONT SIZE="1"><B>(will update display)</B></FONT>

Any tips?
--
Jeremy Olson
The Enteron Group
800 497 2695
312 922 5736 (fax)
mailto:jolson@enteron.net
http://www.enteron.net
 


Search for: Match: Format: Sort by: