osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Help with if then statement for price display

This is a discussion on Help with if then statement for price display within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; I am using a modified version of the latest OSCDOX release (With SPPC). These two fields are set to display ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-03-2007, 04:36 PM
New Member
 
Join Date: Sep 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
b5b4you
Default Help with if then statement for price display

I am using a modified version of the latest OSCDOX release (With SPPC).

These two fields are set to display prices in my database.
in this example:
supp_01sug = 299.99
products_price = 289.99

Ok the goal is to only show 'supp_01sug'
(this is my new field on the admin side showing the Mfg Suggested Retail Price)
ONLY if it is HIGHER THAN 'products_price' and not 0 (zero/empty)

ok so i have this so far, which just displays the 'supp_01sug' if it is not null, or zero i would assume

-----------------------------------------------------------
<?php if (tep_not_null($product_info['supp_01sug'])) { ?>
List Price:<?php echo $product_info['supp_01sug'] ?>
<?php } else { echo $product_info['supp_01sug']?>
<?php } ?>

Your Price: <?php echo $products_price; ?>
-----------------------------------------------------------

Please let me know if this is enough info to get a proper if then statement??

example of page:
ChoppersCycle : MFX Classic Faucet [MFX-CLASSIC] - $799.00
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-10-2007, 11:20 AM
New Member
 
Join Date: Sep 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
b5b4you
Default Re: Help with if then statement for price display

no one???

maby i need to buy a php book eigh ...lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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
don't display price jschafer52 osCMax v2 Customization/Mods 3 03-30-2007 02:25 PM
Shipping Price Display not working for me argentbeads osCMax v2 Installation issues 3 03-20-2007 10:54 AM
Display Price in Default Currency michael_s New osCommerce Contributions 0 02-26-2007 08:11 AM
Price Break 1.11.3 -- inconsistent display of price breaks across different pages argentbeads osCMax v2 Installation issues 1 02-19-2007 08:44 PM
If price = 0.00 dont display price michael_s New osCommerce Contributions 0 01-12-2007 10:14 AM


All times are GMT -8. The time now is 06:50 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax