I have installed Products 2.0.1 and it works great!
But I would be very grateful if someone could help me with detail template?
My menu looks like this:
Shirts | jackets | etc...
When I klick on Shirts it will go to index.php?page=shirts and there i have {Products category="shirts"} and all the things in "shirts" will be listed. When I click on one product so shows details template with image . So far so good...
But now to my problem.
In detalis template I also want to show the same list(menu) I have in page "shirts"
I've tried with something like this but haven't succeed.
Code: Select all
<div class="ProductDirectoryItem">
<p>
<table style="border-color: #d6d7d5; border-width: 2px;" border="0" cellspacing="0" cellpadding="0" frame="cols">
<tbody>
<tr>
<td width="30%" valign="top">
</p>
<p>
// HERE I WANT TO SHOW THE SAME LIST!
{if $entry->detail_url}
{foreach from=$entry item=entry}
<a href="{$entry->detail_url}">{$entry->product_name}</a>
{/foreach}
{/if}
</p>
</td>
<td width="70%" valign="top">
Name: {$entry->product_name}<br />
File Location: {$entry->file_location}<br/>
{if $entry->price ne ''}
Price {$currency_symbol}: {$entry->price}<br />
{/if}
{if $entry->weight ne ''}
Weight {$weight_units}: {$entry->weight}<br />
{/if}
{if $entry->details ne ''}
Details:<br />
{$entry->details}<br />
{/if}
{* accessing all of the fields in a list *}
{if count($entry->fields)}
<h4>Custom Fields</h4>
{foreach from=$entry->fields key='name' item='field'}
<div class="product_detail_field"><p>
{$mod->Lang('name')}: {$name}<br/>
{$mod->lang('type')}: {$field->type}<br/>
{$mod->lang('value')}: {$field->value}<br/>
{if $field->type == 'image' && isset($field->thumbnail)}
<img src="{$entry->file_location}/{$field->thumbnail}" alt="{$field->value}"/>
{/if}
</p></div>
{/foreach}
{/if}
{* print out attributes *}
{if isset($entry->attributes)}
<h4>Attributes</h4>
{foreach from=$entry->attributes key='name' item='attribset'}
<h6>{$name}</h6>
<div class="product_detail_field"><p>
{foreach from=$attribset key='label' item='adjustment'}
{$label}: {$adjustment}<br/>
{/foreach}
</p></div>
{/foreach}
{/if}
</td>
</tr>
</tbody>
</table>
</p>
</div>
Regards / Coldman