[ic] [loop] Returning a value from product field specified in variable

Stefan Hornburg racke at linuxia.de
Tue Apr 6 11:04:55 EDT 2004


On Tue, 06 Apr 2004 14:45:52 +0100
Steve <interchange at bojanglesdesign.co.uk> wrote:

> 
> Within a loop search I am trying to return a value from a field name which
> is specified in a variable (option_selected). A simplified version of what
> I've got is:
> 
>  [loop search="se=sub04/sf=sku"]
>    [loop-field [value option_selected]]
>  [/loop]
> 
> And I've tried this based on the 'Interpolating Parameters' (2.3.1) section
> in the Tag Reference docs.
> 
>  [loop search="se=sub04/sf=sku"]
>     [loop-field arg="[value option_selected]"]
>  [/loop]
> 
> But that also doesn't work. I've got a feeling I might be going about this
> one completely the wrong way, so any advise would be a great help.

List tags are interpolated first, therefore you need something like:

[field name="[value option_selected]" code="[loop-code]"]

	Racke



More information about the interchange-users mailing list