Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Plugin Contributions
    0

    Default Display - units amount purchased instead of units in stock

    I need to display the amount of units purchased instead of the units in stock on products in my cart.. Does anyone know if there is a variable to use for that?? I figured there could be a subtraction of units in stock from total units.. But I am not sure what variable I would use for the total units or if ther is one.. or if there is already a way to display what has been purchased instead of what is left..

    Thanks in advance..

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Display - units amount purchased instead of units in stock

    You could customize the file:
    /admin/includes/modules/category_product_listing.php

    And change the code around line 332 from:
    Code:
                    <td class="dataTableContent" align="right"><?php echo $products->fields['products_quantity']; ?></td>
    to read:
    Code:
                    <td class="dataTableContent" align="right"><?php echo $products->fields['products_quantity'] . '<br />' . zen_products_lookup($products->fields['products_id'], 'products_ordered'); ?></td>
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Show "in stock" instead of showing units in stock
    By gustafr in forum Templates, Stylesheets, Page Layout
    Replies: 69
    Last Post: 7 Aug 2015, 04:26 AM
  2. How to stop the units in stock display?
    By UrKoS in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 23 Nov 2011, 07:32 PM
  3. How to change QTY units in stock display?
    By hara in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 Oct 2010, 12:43 AM
  4. Display "Product is in Stock" instead of units?
    By Corys8646 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jul 2006, 01:20 PM
  5. number of units in stock display
    By ckuhl in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 May 2006, 04:00 PM

Posting Permissions

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