Product Filters

Open to all! Ask other shopowners for help.
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: Product Filters

Post by Omar_one »

Hello,
I just check this again today ,,
so the issue with qtpro is the filter module check attributes from products_attributes and the join query
with (products_stock ) not working as it show the products which has attributes in products_attributes
so I think the issue some where here

Code: Select all

if ( class_exists('pi_qtpro_options')) {
		    $select .= ', poa.products_options_values_id, poa.products_options_values_name, ov2po.products_options_id';
            $join .= ' LEFT JOIN products_attributes pa2 ON p.products_id = pa2.products_id LEFT JOIN products_stock qtps ON pa2.products_id = qtps.products_id AND qtps.products_stock_quantity > 0 LEFT JOIN products_options_values poa ON pa2.options_values_id = poa.products_options_values_id AND poa.language_id = ' . (int)$_SESSION['languages_id'] . ' LEFT JOIN products_options_values_to_products_options ov2po ON poa.products_options_values_id = ov2po.products_options_values_id AND ov2po.products_options_id IN (' . implode(', ', $attribute_filters) . ')';		
	        $group_by[] = 'poa.products_options_values_id';

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply