Support Forums

Featured listings-removing $0.00 from bottom of ad

This is a discussion on Featured listings-removing $0.00 from bottom of ad within the Technical Support forums, part of the Technical Support Forums category; Hi~ Can we remove the $0.00 from the bottom of the ad that displays under Featured listings at the bottom ...


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 05-31-2008, 09:02 PM   #1
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 10
YourPalAl is on a distinguished road
Question Featured listings-removing $0.00 from bottom of ad

Hi~

Can we remove the $0.00 from the bottom of the ad that displays under Featured listings at the bottom of the home page?

If so, how? The more specific the better..

Thank you kindly,

-Al
YourPalAl is offline  
Old 06-01-2008, 05:21 AM   #2
Jon
Junior Member
 
Join Date: May 2008
Posts: 23
Rep Power: 9
Jon is on a distinguished road
Default

Hi Al

If I understand your question correctly, just drop an if statement around the price variable within the template, like so:

Code:
{if $price > 0}{$price|format_money}{/if}
Substitute $price for whatever you're using.

Hope this helps
__________________
Version 4.0.9 Developer
Jon is offline  
Old 06-01-2008, 10:45 AM   #3
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 10
YourPalAl is on a distinguished road
Question Featured listings-removing $0.00 from bottom of ad

Okay.

Where specifically do I place that code? Which file and where is it?

Thanks a bunch for your help Jon~

-Al
YourPalAl is offline  
Old 06-01-2008, 05:44 PM   #4
Jon
Junior Member
 
Join Date: May 2008
Posts: 23
Rep Power: 9
Jon is on a distinguished road
Default

home.tpl within the default template calls feature_listings_horizontal, which is a function located here:

includes\classes\smarty\plugins\function.feature_l istings_horizontal.php

In this file, specifically line 77, there is a price reference, you need to update this so that it uses a null value versus zero.

Old value:

Code:
'price'=> FormatCurrency($row['price']),
New value:

Code:
'price' => ($row['price'] > 0) ? FormatCurrency($row['price']) : '',
NOTE: I have not tested this (as we do not use this function) but in theory it should work, at least with 4.0.2, and as with any update, ensure that you backup the orginal file prior to making this change should you wish to revert.
__________________
Version 4.0.9 Developer

Last edited by Jon; 06-01-2008 at 05:45 PM. Reason: Typo
Jon is offline  
Old 06-01-2008, 07:08 PM   #5
Member
 
Join Date: Apr 2008
Posts: 40
Rep Power: 10
YourPalAl is on a distinguished road
Thumbs up

Thank you~


I went to horizontal.php and believe I found an easier solution
line 32

$show_price='Y';

I just removed the Y and presto the price is no longer listed.

Will that change anything else that you know of....
YourPalAl is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Featured Listings Modifcation anna245 Technical Support 0 05-02-2008 11:23 AM


All times are GMT -4. The time now is 01:51 AM.


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