Page 1 of 1
Method for displaying products?
Posted: Mon Mar 01, 2010 7:40 pm
by JiiPee
I need some easy way to display small amount of products. It dont need any purchase option, just need to show picture and short text description with price. I tried to install Cataloger to CMSMS 1.6.7 version but I only get empty page after installation and no new module. Tried several times and with both IE and FF.
Then I installed shop made simple and it meets all requiremets, but I'm not too happy with the product layout. I tried to play little with table rows and cells in template, but could not get it work successfully.
I would need a way to display products box-like, side by side. Any advice how to do this, and so that the products can be added from admin area?
Re: Method for displaying products?
Posted: Mon Mar 01, 2010 7:42 pm
by calguy1000
The Products module will do that
it behaves similarly to News.... and there are no tables in the default frontend templates.
Re: Method for displaying products?
Posted: Thu Mar 04, 2010 5:30 pm
by JiiPee
Thanks, Calguy.
I have been studying it for about one day now and I could use some help to get really started.
I think the basic functionality is about clear, but how can I modify the layout to my needs? I am little lost with all those 5 different type of templates, where I should begin?
I try to get something like this that I found in the "CMS show off":
http://steelinehsc.com.au/bathroom/basins/above-counter
There products are displayed nicely side by side, before the final detailed product information page.
All I would actually need is only two main product hierarchies with few sub hierarchies and in those product images showing side by side, where can click to detailed information with name, bigger image and price.
I tried to edit hierachy product list view, and created css rules to "ProductDirectoryItem" but that changed also the look for product detail page.
What templates I should look into and how to modify?
Is there any websites to refer that uses Products like mentioned above?
Re: Method for displaying products?
Posted: Thu Mar 04, 2010 6:42 pm
by Peciura
http://www.jnn.lt/index.php?page=meniu&hl=lt
This is hierarchy template; ("Paveikslelis"=="Image"):
Code: Select all
{if isset($upurl)}
<p><a href="{$upurl}" title="{$mod->Lang('back')}">{$mod->Lang('back')}</a></p>
<h4>{$hierarchy_item.name}</h4>
{/if}
{assign var='prodmod' value=$mod}
{if isset($parent)}
Name: {$parent.name}
Description: {$parent.description}<br/>
{/if}
{Products hierarchy=$hierarchy_item.name}
{if isset($child_nodes) && count($child_nodes)}
{foreach from=$child_nodes item='node'}
<h5>
{if isset($node.downurl)}
<a href="{$node.downurl}" title="{$node.name}">{$node.name}</a>
{else}
{$node.name}
{/if}
</h5>
{capture assign='temp'}{$node.name}*{/capture}
{capture assign='temp'}{Products hierarchy=$temp}{/capture}
{if !empty($temp)}
{$temp}
{else}
{Products hierarchy=$node.name}
{/if}
<br/>
{/foreach}
{/if}
This one detail template; :
Code: Select all
{assign var='products' value=$mod}
<div class="ProductDirectoryItem">
{return_url text=$mod->Lang('back')}
{*/*$params['text']*/
echo '<a href="javascript:history.go(-1)" title="'.$params['text'].'">'.$params['text'].'</a>';*}
<div class='paragraph'><a name="product_name" style="text-decoration: none;"><span style='float:left;'>{$entry->product_name}</span></a>
{if $entry->price ne ''}
<span style='float:right;' >{*tr_key key='price' lang=$lang*}{$products->Lang('price')} : {$entry->price|string_format:"%.2f"|replace:'.':','} {$currency_symbol}</span>
{/if}</div>
{if $entry->details ne ''}
<div class='paragraph'>
{if count($entry->fields)}
<p>
{foreach from=$entry->fields key='name' item='field'}
{if $field->type == 'image' && isset($field->thumbnail) && $field->name == 'Paveikslelis'}
{capture assign='thumb' }{$entry->file_location}/{$field->thumbnail}{/capture}
{capture assign='image'}{$entry->file_location}/{$field->value}{/capture}
{LightBox name="$name" thumb="$thumb" image="$image" addtext='style=float:left;margin-right:10px; margin-bottom: 10px;'}
{/if}
{/foreach}
{$entry->details}</p></div>
{/if}
{/if}
{* create a link back to the top of the page *}
<div class='paragraph'>
{anchor anchor='product_name' text=$products->Lang('return_to_top') title=$products->Lang('return_to_top')}
</div>
</div>
Re: Method for displaying products?
Posted: Tue Sep 07, 2010 1:13 pm
by dcleckley
JiiPee wrote:
I need some easy way to display small amount of products. It dont need any purchase option, just need to show picture and short text description with price. I tried to install Cataloger to CMSMS 1.6.7 version but I only get empty page after installation and no new module. Tried several times and with both IE and FF.
Then I installed shop made simple and it meets all requiremets, but I'm not too happy with the product layout. I tried to play little with table rows and cells in template, but could not get it work successfully.
I would need a way to display products box-like, side by side. Any advice how to do this, and so that the products can be added from admin area?
Has this been resolved? I am having a similar problem where I cannot get a 'grid' look to Shop Made Simple. Please review
http://forum.cmsmadesimple.org/index.php/topic,47116.0.html I've made additions to the templates and css to no avail.