Support Forums

Text in Price comes up a 0.00

This is a discussion on Text in Price comes up a 0.00 within the Technical Support forums, part of the Technical Support Forums category; Hello Everyone. I have a site where people list autos and caravans. However, a dealer may get on there and ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 11-18-2008, 12:43 AM   #1
Member
 
Join Date: Oct 2008
Posts: 43
Rep Power: 6
napes is on a distinguished road
Default Text in Price comes up a 0.00

Hello Everyone.

I have a site where people list autos and caravans.

However, a dealer may get on there and list a price as POA (Price on Appoinment) meaning that there are many options on site that you can add/subtract, which affects the price.

When the dealers lists it as POA in the required price box, it price defaults to $0.00

Any suggestions?

Thanks Boys
Todd
napes is offline  
Old 11-18-2008, 03:15 AM   #2
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 933
Rep Power: 25
bowers01 is on a distinguished road
Default

In the viewlisting use
{$price|format_money|replace:'$0.00':'P.O.A'}
then in showlistings use
{$entry.price|format_money|replace:'$0.00':'P.O.A' }

Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline  
Old 11-18-2008, 06:40 PM   #3
Member
 
Join Date: Oct 2008
Posts: 43
Rep Power: 6
napes is on a distinguished road
Default Thanks Nick

Nick, you are a legend....worked a treat.

Cheers!
Todd
napes is offline  
Old 11-24-2008, 10:16 AM   #4
Member
 
Join Date: Oct 2008
Posts: 39
Rep Power: 5
domdaf is on a distinguished road
Default

hello
but what i want is to hide the form and text price in some section/categories
is it possible?
i know but using this method it will show price then $0.00
but i want to hide both in some section
plz help
domdaf is offline  
Old 11-24-2008, 10:29 AM   #5
Coder
 
Join Date: Mar 2006
Posts: 4,902
Rep Power: 120
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by domdaf
hello
but what i want is to hide the form and text price in some section/categories
is it possible?
i know but using this method it will show price then $0.00
but i want to hide both in some section
plz help
What you will have to do is edit you viewlisting.tpl template file.

You will need to surround the html section that displays they price field with smarty logic ( Smarty ) to evaluate the category the ad is in and if it is a category where you dont want the price displayed then dont process the section of HTML.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 11-24-2008, 06:05 PM   #6
Member
 
Join Date: Mar 2008
Location: ireland
Posts: 67
Rep Power: 9
markstanden is on a distinguished road
Default

Hello,

Im trying to use this code with a EURO' '�' symbol and its not working

In the viewlisting use
{$price|format_money|replace:'�0.00':'P.O.A'}
then in showlistings use
{$entry.price|format_money|replace:'�0.00':'P.O.A' }

Any help appreciated
Mark
markstanden is offline  
Old 11-24-2008, 06:26 PM   #7
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 933
Rep Power: 25
bowers01 is on a distinguished road
Default

When viewing an ad does it display like �0.00 or like this �0 ?
Cheers
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline  
Old 11-25-2008, 05:06 AM   #8
Member
 
Join Date: Mar 2008
Location: ireland
Posts: 67
Rep Power: 9
markstanden is on a distinguished road
Default

Hello,

If i use the code without the � symbol it changes the ending of every lisitng with 0.00 to P.O.A, but with the � symbol it makes no difference.. cant work it out..

Thanks for your help
Mark
markstanden is offline  
Old 11-25-2008, 06:14 AM   #9
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 933
Rep Power: 25
bowers01 is on a distinguished road
Default

try
Code:
|replace:'0.00':'P.O.A'|replace:'$':''}
change the $ to eruo.
Cheers,
Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline  
Old 11-25-2008, 08:28 AM   #10
Member
 
Join Date: Oct 2008
Posts: 39
Rep Power: 5
domdaf is on a distinguished road
Default

it seem too difficult for me
can you right the code for me?

i am using 4.09
thanks beforehand
domdaf is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab Text tdisraeli Technical Support 5 09-19-2008 12:30 PM
Hide price field when price=0 canariasdata Technical Support 3 06-11-2008 03:30 PM
Adding Text To Price Field PFZ_Ken v3.1 Questions & Support 8 02-21-2008 08:27 PM
Text in Price Field? dphibb v3.1 Questions & Support 5 07-09-2007 10:12 AM
How do I make it so people can input text in the price field...... sbuell20 v3.1 Questions & Support 1 08-05-2006 07:24 PM


All times are GMT -4. The time now is 12:25 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0