Support Forums

Old 04-15-2006, 09:24 AM   #1
Senior Member
 
garysmith's Avatar
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 130
Rep Power: 15
garysmith is on a distinguished road
Default If Price is $0.00 Can it not show in the ad?

I searched and couldn't find anything in the forum...

Does anyone have a mode that this situation...globally if there is no price set in the ad when posted...I don't want the $0.00 to show when the ad is approved. I tried the administration options but it turns all off?

gsmith
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com
garysmith is offline  
Old 04-15-2006, 09:39 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,779
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

I think John posted this mod somewhere but here is what I believed he did:
{if $listingprice != "$0.00"}
{$listingprice}
{/if}
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now  
Old 04-15-2006, 09:43 AM   #3
Senior Member
 
garysmith's Avatar
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 130
Rep Power: 15
garysmith is on a distinguished road
Default

Eric, where again is this called out? Which file? usercheckout?

Thank you!

gsmith
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com
garysmith is offline  
Old 04-15-2006, 10:21 AM   #4
Moderator
 
 
Join Date: Mar 2006
Posts: 4,122
Rep Power: 101
Lhotch is just really niceLhotch is just really nice
Default

Perhaps this thread will be of some help/interest.

Removing the Price Field
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline  
Old 04-16-2006, 07:34 AM   #5
Junior Member
 
igor81's Avatar
 
Join Date: Apr 2006
Location: Croatia
Posts: 26
Rep Power: 13
igor81 is on a distinguished road
Default

Perhaps this will not be helpful for some, I did this change cause I wanted to set a default text for prices that are zero.

In searchresults.php (and every other page where the price is being displayed), where I made the code bold.

if($row['price']=="0")
{
$nilprice="contact for price";
}
else
{
$nilprice=$pre.FormatCurrency($row['price']).$post;
}



$tmp = array(
'id' => $row['id'],
'owner'=> $row['owner'],
'image'=> $irs['image'],
'title'=> $pre.safeStripSlashes($row['title']).$post,
'featured'=> $row['featured'],
'section'=> $row['section'],
'shortDescription'=> safeStripSlashes($row['shortDescription']),
'description'=> safeStripSlashes($row['description']),
'price'=>"$nilprice",
'dateadded'=> $row['dateadded'],
'expiration'=> $row['expiration'],
'class'=>$class,
'state'=> $pre.safeStripSlashes($row['state']).$post,
'city'=> $pre.safeStripSlashes($row['city']).$post,
'country'=> $pre.safeStripSlashes($row['country']).$post,
);
$results[$i++] = $tmp;
}//end while
igor81 is offline  
Old 04-16-2006, 11:04 AM   #6
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,182
Rep Power: 59
juven14 is a jewel in the rough
Default

igor81, remember that showlistings.tpl.php displays from 3 files, searchresults.php, includes/functions_categories.php, and includes/functions_toplistings.php. If you do it this way and want it to display that text you will also have to edit the other two files to match.

You can do a replace at the template level and only have to edit 1 file, showlistings.tpl.php.
__________________
TemplateCodes.com
juven14 is offline  
Old 04-18-2006, 04:31 PM   #7
Junior Member
 
igor81's Avatar
 
Join Date: Apr 2006
Location: Croatia
Posts: 26
Rep Power: 13
igor81 is on a distinguished road
Default

Thanks John, I did not realize that at the time but I changed all the files anyway so I will leave it as its working.
igor81 is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MOD: Price Descriptor Chaslie v3.1 Modules & Modifications 7 02-27-2008 03:23 PM
Price checking by Listing Package Bucketman v3.0 Questions & Support 25 12-03-2007 04:48 AM
removing the price field on some categories manilaboy v3.1 Questions & Support 2 11-26-2006 06:09 PM
Show customers URL on showlistings.tpl.php marketingsolutions v3.1 Questions & Support 0 11-01-2006 08:38 PM
Not show price garysmith v3.1 Modules & Modifications 10 05-30-2006 05:44 AM


All times are GMT -4. The time now is 03:23 PM.


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