|
|||||||
| v4 Questions & Support Help and support for 68 Classifieds v4 |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Hello and sorry, me again
Another little problem I couldn't solve on my own searching the forum. How can I hide the price field when price=0? I would need to do this in first place for showlistings.tpl as I have "Custom Categories Module" installed but -as yous know- this only effects the categorie and searchresult view of listings. Any Idea? Cheers & thanks, Gregor.
__________________
4.0.3 Developer |
|
#2
|
|||
|
|||
|
This is what I did in V3 to replace any price of 0 with "P.O.A"
In showlisitings.tpl.php, find this code: PHP Code:
PHP Code:
You may be able to achieve what you want by playing with that code. Im not sure if you could use this: PHP Code:
Good Luck
__________________
Greg Version 3.1.9 Developer |
|
#3
|
|||
|
|||
|
Hi Greg,
thanks for your reply. UPS, my error, I want to remove the price from viewlisting.tpl and not only the price value but the "Price" as well. Something like: HTML Code:
{if $viewprice=="Y" && $price != 0}
<tr>
<td><h3>{$smarty.const.LANG_PRICE}:</h3></td>
<td><h3>{$price|format_money}</h3></td>
</tr>
{else}
<tr>
<td> </td>
<td> </td>
</tr>
{/if}
__________________
4.0.3 Developer |
|
#4
|
|||
|
|||
|
Ok, with my above question I nearly gave myself the answer.
I tried a few times it and it finaly works like this: HTML Code:
{if $viewprice=="Y" && $price <> "0"}
<tr>
<td><h3>{$smarty.const.LANG_PRICE}:</h3></td>
<td><h3>{$price|format_money}</h3></td>
</tr>
{/if}
__________________
4.0.3 Developer |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MOD: Price Descriptor | Chaslie | v3.1 Modules | 7 | 02-27-2008 03:23 PM |
| Text in Price Field? | dphibb | v3.1 Questions & Support | 5 | 07-09-2007 09:12 AM |
| removing the price field on some categories | manilaboy | v3.1 Questions & Support | 2 | 11-26-2006 06:09 PM |
| How do I make it so people can input text in the price field...... | sbuell20 | v3.1 Questions & Support | 1 | 08-05-2006 06:24 PM |
| Large price field entry causes listing to be hidden in admincp | civ | v3.0 Questions & Support | 1 | 04-07-2006 10:04 AM |