Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / How to show only active products in "Products low stock"?

How to show only active products in "Products low stock"?

Locked

Started by navido on 6 Sep 2009, 7:30 PM · Views: 1,388

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
6 Sep 2009, 7:30 PM
#1
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #1 by navido

I have searched after this whithout finding any answer.

In "Admin - Reports - Products low stock" the report shows products which are not active(red). Is there any way to only list the report for active products(green status)?

Thanks

12 Sep 2009, 12:09 AM
#2
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #2 by navido

Hmmmmmm..no one knows?:dontgetit

How to see if something is sold out or nothing on stock? The stock report is no use since iit also show inactive products

16 Sep 2009, 11:08 PM
#3
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #3 by navido

Hmmmmmm...still havent solved it. Anyone please?:cry:

16 Sep 2009, 11:33 PM
#4
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #4 by navido

Hmm..i still havent solved this..can anyone help?

This is the code from the file stats_products_lowstock.php

$products_query_raw = "select p.products_id, pd.products_name, p.products_quantity, p.products_type from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and pd.language_id='" . $_SESSION['languages_id'] . "' order by p.products_quantity, pd.products_name";

Dont know how to change this..hmm.:shocking:

17 Sep 2009, 12:22 AM
#5
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #5 by navido

YES. thanks to myself:clap: i fixed it.

  $products_query_raw = "select p.products_id, p.products_status, pd.products_name, p.products_quantity, p.products_type from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and pd.language_id='" . $_SESSION['languages_id'] . "' AND p.products_status='1' order by p.products_quantity, pd.products_name";
17 Sep 2009, 4:03 PM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

Thanks for the update that you got this working and for posting your solution to add the products_status to the WHERE statement ... :smile:

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!

17 Sep 2009, 8:56 PM
#7
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #7 by navido

Ajeh:

Thanks for the update that you got this working and for posting your solution to add the products_status to the WHERE statement ... :smile:

Thanks Ajeh.

But i must say i am disappointed over the help here. Hmm.:lookaroun

18 Sep 2009, 4:15 AM
#8
ajeh avatar

ajeh

Oba-san

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

Post #8 by ajeh

Maybe looking in the bottom of your screen at the Similar Threads would of shown you the solution I posted to this same question that perhaps you missed when you searched the forum ... :smile:

Sometimes ... we get busy and just cannot get to every question right away ...

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!