Developer forum

Forum » Templates » How to display Group fields

How to display Group fields


Reply
How do I loop out the group fields information in a product view? Have tried in several ways, but nothing comes out. Please provide a working example.

Replies

 
Reply
Hi Charlotte

Do you mean Product Group fields or Field Groups ?
Product Group fields are only available in the Grouplist template.

Field groups on products are looped like this:
<!--@LoopStart(GroupFields)-->
 <!--@LoopStart(Groups)-->
  <!--@LoopStart(Fields)-->
   <!--@HeaderStart-->
   <ul>
   <!--@HeaderEnd-->
   <li>
    <strong><!--@Ecom:Product:GroupField.Field.Name-->:</strong> <!--@Ecom:Product:GroupField.Field.Value-->
   </li>
   <!--@FooterStart-->
   </ul>
   <!--@FooterEnd-->
  <!--@LoopEnd(Fields)--> 
 <!--@LoopEnd(Groups)-->
<!--@LoopEnd(GroupFields)-->

 

You must be logged in to post in the forum