Forums / Templates, Stylesheets, Page Layout / Display - units amount purchased instead of units in stock

Display - units amount purchased instead of units in stock

Views: 815

Results 1 to 2 of 2
12 Aug 2011, 5:40 PM
#1
evok20 avatar

evok20

New Zenner

Join Date:
Jul 2011
Posts:
1
Plugin Contributions:
0

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

13 Aug 2011, 4:15 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

                <td class="dataTableContent" align="right"><?php echo $products->fields['products_quantity']; ?></td>

to read:

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