Results 1 to 4 of 4

Thread: Inventory

  1. #1
    Client
    Join Date
    Nov 2007
    Posts
    182
    Squirrelcart version
    v3.2.0

    Inventory

    I have a client who sells fabric and makes made to order dresses. She wants to show how much fabric is remaining. I have used the code:

    Number in stock: <?=$Number_in_Stock?>

    so it shows under the Quantity box how much is in stock. For the dresses though, there is no inventory, they are made to order. I have to put something like 99999 in the inventory box in the control panel. The problem is, it shows 99999 under the quantity box which doesn't look very good. Is there anything I can do so the made to order items do no show the stock quantity?

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    You could do this:

    PHP Code:
    <?php if ($Number_in_Stock 90000) print "Number in Stock: $Number_in_Stock<br/>"?>

  3. #3
    Client
    Join Date
    Nov 2007
    Posts
    182
    Squirrelcart version
    v3.2.0
    Thanks Jamie! That worked perfectly.

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    You're welcome. Glad it worked.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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