Page 1 of 1

Extra info under product name

Posted: Fri Nov 20, 2015 10:06 am
by sultanen
Tryed to describe the problem in the picture i added.

want extra info text, maybe in small under the title name of the product :)

Re: Extra info under product name

Posted: Fri Nov 20, 2015 5:10 pm
by paulbaker
Is this the Products module? Post your Summary template.

Re: Extra info under product name

Posted: Sat Nov 21, 2015 2:35 am
by angelpeace
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,

Re: Extra info under product name

Posted: Mon Nov 23, 2015 8:19 am
by sultanen
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 :)

Re: Extra info under product name

Posted: Mon Nov 30, 2015 10:16 am
by sultanen
Any idea ? Cant figure out where to put those lines ?

Re: Extra info under product name

Posted: Mon Nov 30, 2015 10:59 am
by paulbaker
Try adding

Code: Select all

{$entry->details}
just below

Code: Select all

<h3><a href="{$entry->detail_url}">{$entry->product_name}</a></h3>

Re: Extra info under product name

Posted: Wed Dec 02, 2015 9:22 am
by sultanen
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

Re: Extra info under product name

Posted: Fri Dec 11, 2015 9:12 am
by sultanen
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 :)

Re: Extra info under product name

Posted: Fri Dec 11, 2015 3:36 pm
by paulbaker
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.