Zen Cart Logo
Forums / General Questions / Interesting Problem - Displaying Certain Products in Category, But NOT in All prducts

Interesting Problem - Displaying Certain Products in Category, But NOT in All prducts

Locked

Views: 1,747

Results 21 to 22 of 22
This thread is locked. New replies are disabled.
20 Aug 2010, 12:50 PM
#21
ajeh avatar

ajeh

Oba-san

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

Interesting Problem - Displaying Certain Products in Category, But NOT in All prducts

Both SELECT statements need the $where_str on them ...

  $specials_index_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, p.products_quantity,
                           p.products_date_added, p.products_price, p.products_type,  p.products_model,p.master_categories_id
                           from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                           where p.products_id = pd.products_id
                           and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                           and   p.products_status = 1 " . $where_str . $display_limit;

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!

20 Aug 2010, 2:52 PM
#22
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Interesting Problem - Displaying Certain Products in Category, But NOT in All prducts

Hi Ajeh,

Your genius status is confirmed! Eureka, it's definitely working now.

Thank you once more!