Page 1 of 1

[Solved]Products Module Detail Template question

Posted: Sat Aug 10, 2013 6:23 am
by jasnick
Using 1.11.7 and up to date modules

My product has several fields but I don't want ALL of the fields showing in the Detail Template. Currently have:

Code: Select all

{* accessing all of the fields in a list*} 
{if isset($entry->fields) && count($entry->fields)}

  {foreach from=$entry->fields key='name' item='field'}

<div class="product_detail_field">
<p>
      <b>{$Products->Lang}{$name}:</b>{$Products->lang}{$field->value}<br/>      
</p>
</div>
{/foreach}
{/if}
This is displaying the info correctly but is displaying ALL the fields and NOT in the order that I set them up. I've been experimenting all day to no avail.
How do I call only the fields I want so they can be listed in the order I want.
Thanks

Re: Products Module Detail Template question

Posted: Sat Aug 10, 2013 7:10 am
by Rolf
You can call the fields seperatly, I.e. https://www.cmscanbesimple.org/blog/bui ... ade-simple

Re: Products Module Detail Template question

Posted: Sat Aug 10, 2013 8:26 am
by jasnick
Thanks so much for that, Rolf - looks like exactly what I need to do. I shall study that tomorrow.

I really appreciate the help!