Support Forums

Removal of price field

This is a discussion on Removal of price field within the Technical Support forums, part of the Technical Support Forums category; hi, i need to remove the price field on some ads how do i do it....


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 03-02-2008, 09:47 AM   #1
Junior Member
 
Join Date: Feb 2008
Posts: 22
Rep Power: 10
gboy is on a distinguished road
Default Removal of price field

hi, i need to remove the price field on some ads how do i do it.
gboy is offline  
Old 03-02-2008, 10:25 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,223
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

In admin you can turn fields on and off for the various user groups.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 03-02-2008, 10:28 AM   #3
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,936
Rep Power: 57
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

gboy,

Can you be more specific about what exactly you are wanting to do? For instance, I don't want to show the price for my "wanted categories", or I don't want to show a price if the price is $o.oo.

I did this in the version 3.1.x in my showlistings.tpl.php with the following code based on a price of $0.00
PHP Code:
{if $sDisPrice == "Y"}
   {* 
modification to not diplay price if it is $0.00 *}
    {if 
$entry.price == "\$0.00"}
       &
nbsp;
    {else}
       {if 
$entry.price == "<strong>\$0.00</strong>"}
          &
nbsp;
       {else}
       <
strong>{$smarty.const.LANG_PRICE} {$entry.price}</strong>
       {/if}
    {/if}
{/if} 
-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out

Last edited by Mike-N-Tosh; 03-02-2008 at 10:33 AM.
Mike-N-Tosh is offline  
Old 05-29-2008, 09:02 PM   #4
Senior Member
 
outlook's Avatar
 
Join Date: May 2008
Location: California
Posts: 120
Rep Power: 12
outlook is on a distinguished road
Default

Hi Mike.

v4 has a showlistings and a showlistings2. I tried in both, but it didn't work. Any other ideas? I just don't want it for the Featured ads and my jobs cateogory only.

Thanks.
outlook is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 06:43 PM.


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