Results 1 to 2 of 2

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 ...

      
  1. #1
    New Member
    Join Date
    Sep 2005
    Posts
    17
    Rep Power
    0


    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

  2. #2
    New Member
    Join Date
    Sep 2005
    Posts
    17
    Rep Power
    0


    Default Re: Help with if then statement for price display

    no one???

    maby i need to buy a php book eigh ...lol

Similar Threads

  1. don't display price
    By jschafer52 in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 03-30-2007, 02:25 PM
  2. Shipping Price Display not working for me
    By argentbeads in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 03-20-2007, 10:54 AM
  3. Display Price in Default Currency
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-26-2007, 08:11 AM
  4. Price Break 1.11.3 -- inconsistent display of price breaks across different pages
    By argentbeads in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 02-19-2007, 08:44 PM
  5. If price = 0.00 dont display price
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-12-2007, 10:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •