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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| no one??? maby i need to buy a php book eigh ...lol |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |