Support Forums

no price in futured

This is a discussion on no price in futured within the Templates, HTML, CSS, and Design Help forums, part of the General category; hi,when price is 0.00 contact owner in showlisting.tpl work well, thise is the code: {if $sDisPrice == "Y"} <td{if $entry.class<>""} ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 11-15-2010, 09:30 AM   #1
Banned
 
Join Date: May 2010
Posts: 17
Rep Power: 0
antonio71 is on a distinguished road
Default no price in futured

hi,when price is 0.00 contact owner
in showlisting.tpl work well,
thise is the code:

{if $sDisPrice == "Y"}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{if $entry.price == '0.00'} <h4>contact<br />owner </h4>{else} <h4>{$entry.price|format_money}</h4>{/if}</td>
{/if}

there is a way to apply in function.feature_listings_horizontal.php

PHP Code:
$output.=$loop[$x][title] ."<br />";
                    if(
$show_price=='Y')
                    {
                    
$output.= $loop[$x][price];
                    } 
thank you to all !!
antonio71 is offline   Reply With Quote
Old 11-15-2010, 10:15 AM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

You just use the same logic checking for the price using the different variable AND in this case the price is already formatted. This also needs to use php logic syntax and not smarty logic syntax.

PHP Code:
if ( $loop[$x][price] == "$0.00" // or whatever your formatted currency is
{
   
$output .= "<h4>contact<br />owner </h4>";
{
else
{
   
$output .= $loop[$x][price];

__________________
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   Reply With Quote
Old 11-15-2010, 10:33 AM   #3
Banned
 
Join Date: May 2010
Posts: 17
Rep Power: 0
antonio71 is on a distinguished road
Default

Quote:
Originally Posted by Mike-N-Tosh
You just use the same logic checking for the price using the different variable AND in this case the price is already formatted. This also needs to use php logic syntax and not smarty logic syntax.

PHP Code:
if ( $loop[$x][price] == "$0.00" // or whatever your formatted currency is
{
   
$output .= "<h4>contact<br />owner </h4>";
{
else
{
   
$output .= $loop[$x][price];


i have resolved,for all
add under thise line:
'price'=> FormatCurrency($row['price']), thise:
'price' => $row['price'],

Last edited by antonio71; 11-15-2010 at 12:35 PM.
antonio71 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
link payment product price to item price jw4 Technical Support 3 11-11-2010 09:18 AM
Price $2.50 becomes $250.00 henryv Technical Support 0 08-13-2010 10:12 PM
Price Required...Price Displayed tdisraeli Technical Support 6 12-02-2008 04:57 PM
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 12:24 AM.


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