Making {titleattribute} field into price field

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
fgrace
Forum Members
Forum Members
Posts: 15
Joined: Mon Dec 15, 2008 8:35 pm

Making {titleattribute} field into price field

Post by fgrace »

Hi

I am a newbie to CMSMS

I would really appreciate some help on this issue. I wish to make the {titleattribute} input field a price field.

So if the price of say 500.00 is entered into this field, my template would show up the following "Prices from € 500.00"

I created a new Menu Template called Price with this code:
{foreach from=$nodelist item=node}
{if $node->current == true}
Prices from: €{$node->titleattribute}
{else}
{/if}
{/foreach}

It shows correct when I call the template when prices have been entered, but where prices are empty it still displays the text: "Prices from: €"
any help would be appreciated, I can't seem to find an answer in this forum or support notes.
- FG :)
fgrace
Forum Members
Forum Members
Posts: 15
Joined: Mon Dec 15, 2008 8:35 pm

Re: Making {titleattribute} field into price field

Post by fgrace »

Hi guys

any help on this issue?
best regards
FG  :)
fgrace
Forum Members
Forum Members
Posts: 15
Joined: Mon Dec 15, 2008 8:35 pm

Re: Making {titleattribute} field into price field

Post by fgrace »

I tried it a different way:

{if $node->titleattribute != ''}{string="Prices from:€}{$node->titleattribute}{else}{/if}

still no joy, would really appreciate some help :)
davidkirk451
Forum Members
Forum Members
Posts: 11
Joined: Wed Jul 22, 2009 7:58 pm

Re: Making {titleattribute} field into price field

Post by davidkirk451 »

You almost had it.  This works:

{if $node->titleattribute != ''}Prices from:€{$node->titleattribute}{else}{/if}
fgrace
Forum Members
Forum Members
Posts: 15
Joined: Mon Dec 15, 2008 8:35 pm

Re: Making {titleattribute} field into price field

Post by fgrace »

Hi David

Sorry for delay in replying,  I tried the code you sent again (and tried different modifications)  and still cannot get the price to show in the layout..I'm getting desperate now :)
any further help would be appreciated
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Making {titleattribute} field into price field

Post by Dr.CSS »

Have you looked in Menu Manager help for any extra parameters you may need to add to the menu tag call like maybe loadprops?...
Post Reply

Return to “Modules/Add-Ons”