want extra info text, maybe in small under the title name of the product
Extra info under product name
Extra info under product name
Tryed to describe the problem in the picture i added.
want extra info text, maybe in small under the title name of the product
want extra info text, maybe in small under the title name of the product
Re: Extra info under product name
Is this the Products module? Post your Summary template.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
- angelpeace
- Forum Members

- Posts: 39
- Joined: Fri May 15, 2009 9:45 am
Re: Extra info under product name
Hi sultanen,
You need create custom_field (textfield) by name is discount.
Then you write in summarytemplate for 40% by custom_field (you set)
Good luck,
You need create custom_field (textfield) by name is discount.
Then you write in summarytemplate for 40% by custom_field (you set)
Good luck,
Re: Extra info under product name
Hi, here is the template
{if isset($catformstart)}
{$catformstart}
{$catdropdown}{$catbutton}
{$catformend}
{/if}
{if isset($pagecount) && $pagecount gt 1}
{$firstlink} {$prevlink} {$pagetext} {$curpage} {$oftext} {$pagecount} {$nextlink} {$lastlink}
{/if}
<table width="100%" class="summary-hierarchy">
{foreach from=$items item=entry}
{*
the summary template has access to custom fields via the $entry->fields hash
and to categories via the $entry->categories array of objects. Also
attribute information is available via $entry->attributes.
you should use the get_template_vars and the print_r modifier to see
what is available
*}
<tr>
<td style="padding-bottom:5px;">
<table width="100%">
<tr>
<td width="20%" align="center" class="produktbillede">
<a href="{$entry->detail_url}">
{if count($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
{if $field->name == 'varenummer'}
{if $field->value != ""}
{Gallery start="1" number="1" template="Fancybox" dir=$field->value}
{else}
{/if}
{/if}
{/foreach}
{/if}
</a>
</td>
<td style="vertical-align:top;" width="60%" align="left" class="produktbillede2">
<h3><a href="{$entry->detail_url}">{$entry->product_name}</a></h3>
</td>
<td style="vertical-align:top;" width="20%" align="right">
<h1>{$entry->price} kr.</h1>
{* include the cart *}
<div>
{cms_module module='Cart2' action='default' sku=$entry->sku}
</div>
</td>
</tr>
</table>
</td>
</tr>
{/foreach}
</table>
Where to put it ? and isent there any other program to place this template in, and see the results , that would be nice feature
{if isset($catformstart)}
{$catformstart}
{$catdropdown}{$catbutton}
{$catformend}
{/if}
{if isset($pagecount) && $pagecount gt 1}
{$firstlink} {$prevlink} {$pagetext} {$curpage} {$oftext} {$pagecount} {$nextlink} {$lastlink}
{/if}
<table width="100%" class="summary-hierarchy">
{foreach from=$items item=entry}
{*
the summary template has access to custom fields via the $entry->fields hash
and to categories via the $entry->categories array of objects. Also
attribute information is available via $entry->attributes.
you should use the get_template_vars and the print_r modifier to see
what is available
*}
<tr>
<td style="padding-bottom:5px;">
<table width="100%">
<tr>
<td width="20%" align="center" class="produktbillede">
<a href="{$entry->detail_url}">
{if count($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
{if $field->name == 'varenummer'}
{if $field->value != ""}
{Gallery start="1" number="1" template="Fancybox" dir=$field->value}
{else}
{/if}
{/if}
{/foreach}
{/if}
</a>
</td>
<td style="vertical-align:top;" width="60%" align="left" class="produktbillede2">
<h3><a href="{$entry->detail_url}">{$entry->product_name}</a></h3>
</td>
<td style="vertical-align:top;" width="20%" align="right">
<h1>{$entry->price} kr.</h1>
{* include the cart *}
<div>
{cms_module module='Cart2' action='default' sku=$entry->sku}
</div>
</td>
</tr>
</table>
</td>
</tr>
{/foreach}
</table>
Where to put it ? and isent there any other program to place this template in, and see the results , that would be nice feature
Re: Extra info under product name
Any idea ? Cant figure out where to put those lines ?
Re: Extra info under product name
Try adding
just below
Code: Select all
{$entry->details}Code: Select all
<h3><a href="{$entry->detail_url}">{$entry->product_name}</a></h3>To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Re: Extra info under product name
Wow, it worked ! Thanks
you made my day
I wish it was more simple, i just dont have the training in cms, maybe i should
I wish it was more simple, i just dont have the training in cms, maybe i should
Re: Extra info under product name
And i actually have one more question, because this opens some possibilities.
if i want to add another line under the details. a line with the name like
"save 150$ this month" with the color red.
any idea how to do that ?
by the way, merry xmas
if i want to add another line under the details. a line with the name like
"save 150$ this month" with the color red.
any idea how to do that ?
by the way, merry xmas
Re: Extra info under product name
Just go to Products & click the product in question and add that to the details box in the edit area. Highlight and select colour red in the WYSIWYG editor.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016

