MiniVend Akopia Services

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

Re: loop through Products



Dmitriy Katsman wrote-
>
>Hi...
>
>I have a products database set-up with the following fields:
>
>code    title    description    ....     ...    ..    ..    ....
>ud1    ud2    ud3    ud4    ud5    ud6    ud7 .... ud20
>
>Now... ud1 - ud20 are user defined fields (or specifications in other
>words)... Most of the time... only 6,7 or 8 of them are defined... and
>the rest are just blank.
>
>How can I display only the fields that are defined in loop on
>flypage.html?
>I tried using [perl interpolate=1]... [/perl] stuff... but [item-field
>ud$i] produces [item-field ud1], [item-field ud2] and so on output and
>they don't get interpolated (displayed as is)...
>
>HOWEVER... using [item-field ud1] or [item-field ud2] in [perl] produces
>the right output (gets interpolated)...
>WHY???
>
>if it can substitute $i for a number.... why can't it interpolate it at
>the same time?
>
>Thanks for the help...
>
>any ideas on how to do what i need will be appreciated
>
>
>--
>______________________________________
>|                                    |
>|          Dmitriy Katsman           |
>|       Webmaster, The Wizard        |
>|     Affordable Computers, Inc.     |
>| http://www.affordablecomputers.com |
>|      (800) 864-2345 Ext. 114       |
>|____________________________________|
>

Dimitri -

I have not done what you are trying to do, but I would try using the
[loop... tag in conjunction with [if data...

- Ed L.

-
PRINTEX Marking Technologies
12113 Kirkham Rd.
Poway, CA  92064  U.S.A.
(858) 513-2418
(800) 982-1928
(858) 513-2419 fax
edlafrance@printexusa.com
http://www.printexusa.com




Search for: Match: Format: Sort by: