Jump to content


Corporate Sponsors


Latest News: (loading..)

francois21

Member Since 28 Mar 2007
Offline Last Active Apr 19 2012, 17:39
-----

Topics I've Started

Hide products from customer groups for SPPC

14 June 2011, 08:21

Hello
I installed this add on : Hide products from customer groups for SPPC
and I have a problem with box news.
With this query
if ($random_product = tep_random_select("select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_PRODUCTS_TO_CATEGORIES .  " using(products_id) left join " . TABLE_CATEGORIES . " using(categories_id) where p.products_status = '1' and pd.language_id = '" . (int)$languages_id . "' and p.products_id = pd.products_id and find_in_set('".$customer_group_id."', products_hide_from_groups) = 0 and find_in_set('" . $customer_group_id . "', categories_hide_from_groups) = 0 order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) {
box does not appear in the column.
What is wrong in this query.
Thank you

Francois