Support Forums

Price Required...Price Displayed

This is a discussion on Price Required...Price Displayed within the Technical Support forums, part of the Technical Support Forums category; Hello - I unchecked 'price required' under 'checkout settings' hoping it would just display nothing if a user posted an ...


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 12-01-2008, 10:27 PM   #1
Senior Member
 
Join Date: Jul 2008
Location: Star, Idaho
Posts: 131
Rep Power: 14
tdisraeli is on a distinguished road
Default Price Required...Price Displayed

Hello - I unchecked 'price required' under 'checkout settings' hoping it would just display nothing if a user posted an item without a price; instead it shows 0.00.

Is the any code I can insert (and where do I insert it) to allow nothing to be displayed if a user doesn't enter a price?

Thanks!
__________________
Todd - v4.0.9 Hosted

Traffic Tracker - Website Performance Management
"Ask About Our Extended Full-Featured Trial for 68 Clients"

Jiffy Leads - Prescision Targeted Marketing Lists
tdisraeli is offline  
Old 12-02-2008, 04:01 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,197
Rep Power: 78
seymourjames is a jewel in the rough
Default

Not sure why it does not work. However, you can edit showlistings and viewlistings to simply stop showing 0.00. Use a logical test to put something else in its place (like the word FREE) or leave it blank for example. If all your adverts are 0.00 then you could just comment out the column in showlistings and the price field in viewlistings.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline  
Old 12-02-2008, 10:27 AM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 133
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Right now the price is globally set to be seen of not seen. This comes from the usergroups.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 12-02-2008, 11:44 AM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,242
Rep Power: 66
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

As seymourjames posted, you can add logic to your showlistings(2) file to not display the price if it is $0.00.

If you are using showlistings.tpl find this around line 92:
PHP Code:
{if $sDisPrice == "Y"}
   <
td{if $entry.class<>""}
   class=
"{$entry.class}"{/if}>{$entry.price|format_money}</td>
{/if} 
Replace with this:
PHP Code:
{if $sDisPrice == "Y"}
   {* 
Modification to not show price if *}
   {if 
$entry.price == "\$0.00"}
    &
nbsp;
   {else}
   <
td{if $entry.class<>""
   class=
"{$entry.class}"{/if}>{$entry.price|format_money}</td>
    {/if}
{/if} 
If you are using showlistings2.tpl then find this around line 85:
PHP Code:
{if $sDisPrice == "Y"}
   {
$smarty.const.LANG_PRICE} {$entry.price|format_money}
{/if} 
Replace with this:
PHP Code:
{if $sDisPrice == "Y"}
{* 
Modification to not show price if *}
   {if 
$entry.price == "\$0.00"}
    &
nbsp;
   {else}
    {
$smarty.const.LANG_PRICE} {$entry.price|format_money}
   {/if}
{/if} 
Hope that helps,
-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,4.2,5.0)] 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
Mike-N-Tosh is offline  
Old 12-02-2008, 11:54 AM   #5
Senior Member
 
Join Date: Jul 2008
Location: Star, Idaho
Posts: 131
Rep Power: 14
tdisraeli is on a distinguished road
Default

Thanks Seymour, Eric, and Mike.

One more question...Is thre code that will allow text to be displayed like 'FREE' or 'obo' with or without a price?

Thanks again guys!
__________________
Todd - v4.0.9 Hosted

Traffic Tracker - Website Performance Management
"Ask About Our Extended Full-Featured Trial for 68 Clients"

Jiffy Leads - Prescision Targeted Marketing Lists
tdisraeli is offline  
Old 12-02-2008, 04:21 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,197
Rep Power: 78
seymourjames is a jewel in the rough
Default

As Mike says you can do this

if $entry.price == "\$0.00"}
Whatever you want to write
{else}

However if you wish to mix something like O.N.O (or near offer) with a price whic has been entered it becomes more complex. You are probably into having to define an extrafield and displaying it if it is set to 'true' (exists and is not null).
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline  
Old 12-02-2008, 04:57 PM   #7
Senior Member
 
Join Date: Jul 2008
Location: Star, Idaho
Posts: 131
Rep Power: 14
tdisraeli is on a distinguished road
Default

Or better yet...I should just decide to hire you Seymour
__________________
Todd - v4.0.9 Hosted

Traffic Tracker - Website Performance Management
"Ask About Our Extended Full-Featured Trial for 68 Clients"

Jiffy Leads - Prescision Targeted Marketing Lists
tdisraeli is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Price??? tdisraeli Technical Support 1 09-30-2008 02:54 AM
Hide price field when price=0 canariasdata Technical Support 3 06-11-2008 02:30 PM


All times are GMT -4. The time now is 05:02 AM.


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