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
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.
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
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_PRICE}:</strong></td> <td class="borderright">{$price|format_money}</td> </tr> {/if} {/if} Hope this can help.
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.