Developer forum

Forum » Templates » CustomFields in a Product loop

CustomFields in a Product loop


Reply

Im iterating through a ecom product search and outputting this as xml, but strange thing is that when I iterate through a products customfields the value is written fine enough, but the tag is also still in the output.

Any idea why this happens?

 

An example

http://gosh.net.dynamicweb.dk/Default.aspx?ID=286&eComQuery=Concealer

 

my template:

<items>
<!--@LoopStart(Products)-->
<item Href="">
    <href>
    <![CDATA[
    /Default.aspx?ID=
    <!--@LoopStart(CustomFields)-->
        <!--@ProductPage-->
    <!--@LoopEnd(CustomFields)-->
    &ProductID=<!--@Ecom:Product.ID-->
    ]]>
    </href>
    <title><![CDATA[<!--@Ecom:Product.Name-->]]></title>
    <summary><![CDATA[<!--@Ecom:Product.ShortDescription-->]]></summary>   
</item>
<!--@LoopEnd(Products)-->
</items>

 

kind regards Sune Fengel
 


Replies

 
Reply

 

 

Anybody got any idea how to solve this problem?

 

regards Sune Fengel

 
Reply

Not sure what you mean by "but the tag is also still in the output".

 

You must be logged in to post in the forum