|
|
#1 |
|
Senior Member
|
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 |
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,779
Rep Power: 110 ![]() |
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 |
|
|
|
|
#3 |
|
Senior Member
|
Eric, where again is this called out? Which file? usercheckout?
Thank you! gsmith |
|
|
|
|
#4 |
|
Moderator
Join Date: Mar 2006
Posts: 4,122
Rep Power: 101 ![]() ![]() |
__________________
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 |
|
|
|
|
#5 |
|
Junior Member
Join Date: Apr 2006
Location: Croatia
Posts: 26
Rep Power: 13 ![]() |
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 |
|
|
|
|
#6 |
|
Moderator
|
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. |
|
|
|
|
#7 |
|
Junior Member
Join Date: Apr 2006
Location: Croatia
Posts: 26
Rep Power: 13 ![]() |
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.
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |