Skip to main content

Bug in Hikashop 1.6 in breadcrumb.php

More
13 years 11 months ago #70854 by tefun
Hi,

www.hikashop.com/en/forum/5-support-en-f...ied-for-foreach.html

Can you explane me on English please

My problem
Warning: Invalid argument supplied for foreach() in Z:\home\abt\www\administrator\components\com_hikashop\types\breadcrumb.php on line 17

Warning: Invalid argument supplied for foreach() in Z:\home\abt\www\administrator\components\com_hikashop\types\breadcrumb.php on line 26

[IMG
Warning: Invalid argument supplied for foreach() in Z:\home\abt\www\administrator\components\com_hikashop\views\product\tmpl\category.php on line 46

[IMG

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #70893 by nicolas
Please try to change the line:
$query = 'SELECT DISTINCT b.* FROM '.hikashop_table(end($this->tables)).' AS a LEFT JOIN '.
hikashop_table(end($this->tables)).' AS b ON a.category_left >= b.category_left WHERE '.
'b.category_right >= a.category_right '.$and.$where.' ORDER BY b.category_left';

to:
$query = 'SELECT b.* FROM '.hikashop_table(end($this->tables)).' AS a LEFT JOIN '.
hikashop_table(end($this->tables)).' AS b ON a.category_left >= b.category_left WHERE '.
'b.category_right >= a.category_right '.$and.$where.' GROUP BY b.category_id ORDER BY b.category_left';

in the file administrator/components/com_hikashop/classes/category.php and that should solve the problem.
The following user(s) said Thank You: tefun

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #71047 by tefun
Thanks, it is help me)

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #73789 by holylander
Thank you very much for your help ! it worked like a charm

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds
Powered by Kunena Forum