I have been working on this particular problem for about a day and a half, and have searched several times for a solution in the forums. I'm almost reduced to tears, but really don't want to go there.
I have installed CalGuy's Ecommerce package, and am trying to get the Category Template in Products to run a thumbnail of a Category Image. The Category Image is set-up in "category fields" as an image field, and each category will have an image field called "catimage".
Here is my Category template:
Code: Select all
<div class="products_category_list">
{foreach from=$categorylist item='obj'}
<div class="products_category">
{* category fields are available as an array in $obj->fields *}
{* i.e: $obj->fields.fieldname.field_value *}
{if isset($obj->fields)}
{foreach from=$obj->fields key='field_name' item='fielddata'}
<div class="products_category_field">
{$fielddata.field_prompt} = {$fielddata.field_value}<br/>
</div>
{/foreach}
{/if}
{if isset($obj->detail_url)}
<a href="{$obj->detail_url}">Details For {$obj->name}</a>
{/if}
<a href="{$obj->summary_url}">Products Matching {$obj->name}</a>({$obj->count})
</div>
{/foreach}
</div>
This is how the Category Template appears on the front end:
Code: Select all
Category Image = DSC_0384.jpg
(This is link)Details For Animals (This is link)Products Matching Animals(1)
Category Image = Sheep-BW.jpg
(This is link)Details For Black & White (This is link)Products Matching Black & White(1)
Any help would be truly appreciated.