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




LinkBack URL
About LinkBacks






Bookmarks