Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

inventory listing of all products with quantity


bluecivic21

Recommended Posts

Posted

is there a contrib where I can see all my products with the quantity remaining, it can be a 1 page listing if thats simple. can someone even post me the sql statement so I can try it out

Posted

get all products and modify it a little to also show the quantity left next to the name. Shouldn't be too hard.

 

Ryan

If I was crafty, this would be a funny signature.

Posted

@ Bluecivic21

 

the sql staement you wanted looks like this :

 

 

 

SELECT `products_quantity` , `products_model` , `products_status`

FROM `products`

WHERE 1 AND `products_quantity` < 1000000 LIMIT 0 , 10000

 

 

 

This does :

Output a list of products which amount on stock is below 1 million [i don't think you've got more on stock of any product B) ) and also shows those items for which the status is 1 [which is visible in your shop]

 

if you want to see your products which are oflline change the 1 into a 0

 

the 10000 number at the end is a free number.This number now displays 10000 items on screen.You can change that to whatever suits you best

 

Hope this helps you out.

It helps me every time ;)

Posted

can also try this:

 

SELECT pd.products_name, p.products_quantity

FROM `products` p, `products_description` pd

WHERE p.products_id = pd.products_id LIMIT 0 , 10000;

Your online success is Paramount.

Archived

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

×
×
  • Create New...