Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Anyone know how to figure the total $$$ amount of product in inventory?


Trentide

Recommended Posts

Sorry. I'm not too good with PHP.

 

On which page do I put the code?

 

Where do I view the info from there?

 

Thanks, Jason

 

For a vanilla version with not attribute quantity tracking it's easy:

 

SELECT sum( products_price * products_quantity )
FROM products

Link to comment
Share on other sites

that's pretty cool. Thanks. I'll try it!

 

Jason

 

 

That's plain SQL. Open your preferred database management tool, i.e. phpMyAdmin and copy that code to the SQL box. You'll get the result by clicking 'Go'.
Link to comment
Share on other sites

The total amount in your default currency of all items you have in stock according to your shop database. As I said, it's just reliable for vanilla OSC versions. Any other you'll have to look if there might be different things that affect the stock value.

Link to comment
Share on other sites

Thanks for that info Manfred!! Do you think there's an easy way to get this info to be seen in the "Admin"?

 

Just wondering,

 

Thanks,

 

Jason

 

 

 

Okay, the dollar amount seemed correct. I just couldn't understand what the .4233 might be.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...