[Solved]Products Module Detail Template question

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved]Products Module Detail Template question

Post 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
Last edited by jasnick on Sat Aug 10, 2013 8:26 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Products Module Detail Template question

Post by Rolf »

You can call the fields seperatly, I.e. https://www.cmscanbesimple.org/blog/bui ... ade-simple
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Products Module Detail Template question

Post 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!
Post Reply

Return to “Modules/Add-Ons”