Support Forums

0 price showing as Free

This is a discussion on 0 price showing as Free within the TemplateCodes forums, part of the Third Party Support category; On the new Sigma Template, when a customer places an ad with 0.00 on the price it then shows up ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 04-11-2010, 05:20 PM   #1
Customer
 
Join Date: Oct 2009
Posts: 114
Rep Power: 10
belvedere is on a distinguished road
Default 0 price showing as Free

On the new Sigma Template, when a customer places an ad with 0.00 on the price it then shows up on the Homepage as "Free". However when clicking on the ad to view the listing the price shows as n/a. I would like n/a or even 0 to appear on the Homepage as well instead of Free.How can I do this?

Thanks
belvedere is offline   Reply With Quote
Old 04-11-2010, 07:32 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,299
Rep Power: 81
seymourjames is a jewel in the rough
Default

Have you changed the viewlisting and showlisting files? It should say FREE as well - the code for this is in the viewlisting file is as follows

{if $viewprice=="Y"}
<tr>
<td><strong>{$smarty.const.LANG_PRICE}:</strong></td>
<td>{if $price == '0.00'} {$smarty.const.MOD_LANG_ZERO_PRICE} {else} {$price|format_money}{/if}</td>
</tr>
{/if}

Likewise there is a similar pice of code issued in showlistings.

Then all you do is go into modules/templatecodes/languages/english.php and change the value for MOD_LANG_ZERO_PRICE to anything you wish.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 04-12-2010, 05:17 PM   #3
Customer
 
Join Date: Oct 2009
Posts: 114
Rep Power: 10
belvedere is on a distinguished road
Default

OK thanks very much David
belvedere is offline   Reply With Quote
Old 05-13-2010, 04:51 AM   #4
Ageless Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 133
Rep Power: 15
Bronxgodzilla is on a distinguished road
Default

Yes Thanks David
I personally do not like mixing "N/A" or "Free" (for Services or general store listings) with priced products, but putting a nul value in MOD_LANG_ZERO_PRICE gave uneven listings. So I found putting a " <BR>" as the value for MOD_LANG_ZERO_PRICE created uniform listings on the home page & looks fantastic and professional.

Thanks David and John for this. A very old problem now elegantly solved.

BarryG
__________________
Currently using Latest version v4.1.10 Developer with latest Templatecodes Sigma (The Greatest)
Bronxgodzilla is offline   Reply With Quote
Old 05-14-2010, 04:16 AM   #5
Customer
 
Join Date: Sep 2008
Posts: 51
Rep Power: 13
ronin is on a distinguished road
Default

Maybe someone can found usefull my solution.

If price is 0, then price field is not showed at all!

NOTE: code for viewlisting.tpl


{if $viewprice=="Y"}
{if $price == '0.00'}{else}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_PRI CE}:</strong></td>
<td class="borderright">{$price|format_money}</td>
</tr>
{/if}
{/if}

Hope this can help.
ronin is offline   Reply With Quote
Old 05-14-2010, 05:58 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,299
Rep Power: 81
seymourjames is a jewel in the rough
Default

Yes this works and it can be done in showlistings too. Best to use a variable though so you can display nothing, FRE, N/A or whatever you like - I used it in the past to display SOLD . Be aware that on searches the listing is still considered to have price == 0 and what that may imply for your site.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Price field disappear in free listings Jshed Off Topic 1 03-25-2010 07:50 AM
Price Required...Price Displayed tdisraeli Technical Support 6 12-02-2008 04:57 PM
Hide price field when price=0 canariasdata Technical Support 3 06-11-2008 02:30 PM
images not showing up/ ad listings not showing up anna245 Technical Support 4 04-19-2008 09:56 AM
Free Ads free2take Technical Support 1 08-11-2007 06:34 PM


All times are GMT -4. The time now is 02:08 PM.


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