Extra info under product name

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
sultanen
New Member
New Member
Posts: 5
Joined: Mon Nov 16, 2015 11:59 am

Extra info under product name

Post 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 :)
Attachments
Unavngivet.jpg
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: Extra info under product name

Post by paulbaker »

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
User avatar
angelpeace
Forum Members
Forum Members
Posts: 39
Joined: Fri May 15, 2009 9:45 am

Re: Extra info under product name

Post 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,
sultanen
New Member
New Member
Posts: 5
Joined: Mon Nov 16, 2015 11:59 am

Re: Extra info under product name

Post 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 :)
sultanen
New Member
New Member
Posts: 5
Joined: Mon Nov 16, 2015 11:59 am

Re: Extra info under product name

Post by sultanen »

Any idea ? Cant figure out where to put those lines ?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: Extra info under product name

Post 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>
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
sultanen
New Member
New Member
Posts: 5
Joined: Mon Nov 16, 2015 11:59 am

Re: Extra info under product name

Post 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
sultanen
New Member
New Member
Posts: 5
Joined: Mon Nov 16, 2015 11:59 am

Re: Extra info under product name

Post 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 :)
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: Extra info under product name

Post 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.
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
Post Reply

Return to “The Lounge”