[Skip to main content](#vessel-content)

#   $areas variable not set in search

##

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile") Topic Author
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

15 years 4 months ago [\#20121](#20121) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  *[$areas variable not set in search](/forum/3-bug-report/20121-areas-variable-not-set-in-search#20121 "Joomla 1.5.23 - business 1.5.2 Hi there,  in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.  We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.  Can you replicate this??")* was created by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")*

Joomla 1.5.23 - business 1.5.2
Hi there,

in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.

We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.

Can you replicate this??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMDEyMS1hcmVhcy12YXJpYWJsZS1ub3Qtc2V0LWluLXNlYXJjaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile") Topic Author
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

15 years 4 months ago [\#20125](#20125) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  Replied by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")* on topic *[Re: $areas variable not set in search](/forum/3-bug-report/20121-areas-variable-not-set-in-search#20125 "Joomla 1.5.23 - business 1.5.2 Hi there,  in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.  We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.  Can you replicate this??")*

Solved this problem by changing line 77 in the hikashop_categories.php file to:

$filters = array('a.category_published=1','(a.category_type=\'product\' OR a.category_type=\'manufacturer\')');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMDEyMS1hcmVhcy12YXJpYWJsZS1ub3Qtc2V0LWluLXNlYXJjaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 4 months ago [\#20146](#20146) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: $areas variable not set in search](/forum/3-bug-report/20121-areas-variable-not-set-in-search#20146 "Joomla 1.5.23 - business 1.5.2 Hi there,  in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.  We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.  Can you replicate this??")*

The solution is to change the code:
if(in_array('manufacturers',$valid)){
$types[]='\'manufacturer\'';
}
}

by:
if(in_array('manufacturers',$valid)){
$types[]='\'manufacturer\'';
}
}else{
$types[]='\'product\'';
$types[]='\'manufacturer\'';
}

in that file. Otherwise, the search area selected by the user will just be discarded.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMDEyMS1hcmVhcy12YXJpYWJsZS1ub3Qtc2V0LWluLXNlYXJjaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile") Topic Author
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

15 years 4 months ago [\#20160](#20160) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  Replied by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")* on topic *[Re: $areas variable not set in search](/forum/3-bug-report/20121-areas-variable-not-set-in-search#20160 "Joomla 1.5.23 - business 1.5.2 Hi there,  in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.  We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.  Can you replicate this??")*

Okay that solves that error. Thanks

Now we perform a search and click on category product link:

index.php?option=com_hikashop&amp;ctrl=category&amp;task=listing&amp;name=liftkit&amp;cid=84

we have the correct breakcrumb but a blank page. The same for the manufacturer search link:

index.php?option=com_hikashop&amp;ctrl=category&amp;task=listing&amp;name=skyjackersuspension&amp;cid=367

we don't have any breadcrumb and we a listing of the top level product categories.

I believe it is a question of configuration but I could find anything in the forums or documentation.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMDEyMS1hcmVhcy12YXJpYWJsZS1ub3Qtc2V0LWluLXNlYXJjaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 4 months ago [\#20162](#20162) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: $areas variable not set in search](/forum/3-bug-report/20121-areas-variable-not-set-in-search#20162 "Joomla 1.5.23 - business 1.5.2 Hi there,  in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.  We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.  Can you replicate this??")*

In the configuration of the search plugin, you need to set an id of a hikashop category listing menu in the itemid option.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMDEyMS1hcmVhcy12YXJpYWJsZS1ub3Qtc2V0LWluLXNlYXJjaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile") Topic Author
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

15 years 4 months ago [\#20604](#20604) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  Replied by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")* on topic *[Re: $areas variable not set in search](/forum/3-bug-report/20121-areas-variable-not-set-in-search#20604 "Joomla 1.5.23 - business 1.5.2 Hi there,  in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.  We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.  Can you replicate this??")*

Hi this is not really working as we want to. We do not have a any parent 'manufacturer' category menu link. So if we put in any category menu id we list the product category instead. Any suggestions? Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMDEyMS1hcmVhcy12YXJpYWJsZS1ub3Qtc2V0LWluLXNlYXJjaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 4 months ago [\#20633](#20633) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: $areas variable not set in search](/forum/3-bug-report/20121-areas-variable-not-set-in-search#20633 "Joomla 1.5.23 - business 1.5.2 Hi there,  in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.  We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.  Can you replicate this??")*

We'll have to add a new option so that you can have a second listing id on the search plugin options. I've made the modifications and packaged a new plugin. If you install it on your website, it should enable you to do that and thus fix the problem with manufacturers.

####  *This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMDEyMS1hcmVhcy12YXJpYWJsZS1ub3Qtc2V0LWluLXNlYXJjaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile") Topic Author
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

15 years 4 months ago [\#20653](#20653) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  Replied by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")* on topic *[Re: $areas variable not set in search](/forum/3-bug-report/20121-areas-variable-not-set-in-search#20653 "Joomla 1.5.23 - business 1.5.2 Hi there,  in the new categories plugin we noticed that we were not getting the manufacturer search results. On closer inspection neither the category results any more. In the onSearch function the $areas variable is not being passed so in line77 where we have the implode types we are getting nothing inserted.  We checked with the products search plugin and again the $areas variable in the onSearch plugin is not receiving any value. It does break anything here because it or and derivatives are used in the database query.  Can you replicate this??")*

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMDEyMS1hcmVhcy12YXJpYWJsZS1ub3Qtc2V0LWluLXNlYXJjaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
