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

#   Category selection problem with existing products

##

- **[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")**
- [![spoonbow's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6067.gif)](/forum/user/6067-spoonbow "View spoonbow's Profile") Topic Author
- [ Offline](/forum/user/6067-spoonbow)

Less More

- Posts: 42
- Thank you received: 2
-
-
-
-

10 years 9 months ago -  10 years 9 months ago [\#231193](#231193) by [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")  *[Category selection problem with existing products](/forum/32-content-creation/882591-category-selection-problem-with-existing-products#231193 "SOLVED - This was a browser cache issue in Chrome. Clearing the cache resolved the problem.  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5  I'm having a strange problem with category selection. On an existing product, clicking in the Category field brings up a selection explorer that doesn't match the current structure of the categories. If I begin typing in the name of the desired category in the Category field, then and only then does it show up in the selection explorer. I have attached a graphic illustrating the issue. Center top in the image is an inset with the Category structure, the left side of the image shows the explorer I see when clicking in the Category field, right side shows the result of typing the name of the category. I've cleared cache, logged out and back in, rebuilt categories, and the behavior persists.")* was created by *[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")*

**SOLVED** - This was a browser cache issue in Chrome. Clearing the cache resolved the problem.

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5

I'm having a strange problem with category selection. On an existing product, clicking in the Category field brings up a selection explorer that doesn't match the current structure of the categories. If I begin typing in the name of the desired category in the Category field, then and only then does it show up in the selection explorer. I have attached a graphic illustrating the issue. Center top in the image is an inset with the Category structure, the left side of the image shows the explorer I see when clicking in the Category field, right side shows the result of typing the name of the category. I've cleared cache, logged out and back in, rebuilt categories, and the behavior persists.

[ ![category&#95;problem.jpg](/forum/attachment/29746) ](/forum/attachment/29746 "...ry&#95;problem.jpg")

---

It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

- [ ![category&#95;problem.jpg](/forum/attachment/29746) ](/forum/attachment/29746 "...ry&#95;problem.jpg") [ ](/forum/attachment/29746?download=1 "...ry&#95;problem.jpg")

Last edit: 10 years 9 months ago by [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile"). Reason: Solution found and added to original post

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODgyNTkxLWNhdGVnb3J5LXNlbGVjdGlvbi1wcm9ibGVtLXdpdGgtZXhpc3RpbmctcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 9 months ago [\#231206](#231206) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Category selection problem with existing products](/forum/32-content-creation/882591-category-selection-problem-with-existing-products#231206 "SOLVED - This was a browser cache issue in Chrome. Clearing the cache resolved the problem.  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5  I'm having a strange problem with category selection. On an existing product, clicking in the Category field brings up a selection explorer that doesn't match the current structure of the categories. If I begin typing in the name of the desired category in the Category field, then and only then does it show up in the selection explorer. I have attached a graphic illustrating the issue. Center top in the image is an inset with the Category structure, the left side of the image shows the explorer I see when clicking in the Category field, right side shows the result of typing the name of the category. I've cleared cache, logged out and back in, rebuilt categories, and the behavior persists.")*

Hi,

I've never seen that.
If you don't have yet products configured, you can empty the hikashop_category table and the hikashop_product_category table via your phpmyadmin and then install the HikaShop package.
That will reset the categories to their default structure and you can then add the categories again. It should then hopefully work properly.

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

- **[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")**
- [![spoonbow's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6067.gif)](/forum/user/6067-spoonbow "View spoonbow's Profile") Topic Author
- [ Offline](/forum/user/6067-spoonbow)

Less More

- Posts: 42
- Thank you received: 2
-
-
-
-

10 years 9 months ago -  10 years 9 months ago [\#231286](#231286) by [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")  Replied by *[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")* on topic *[Category selection problem with existing products](/forum/32-content-creation/882591-category-selection-problem-with-existing-products#231286 "SOLVED - This was a browser cache issue in Chrome. Clearing the cache resolved the problem.  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5  I'm having a strange problem with category selection. On an existing product, clicking in the Category field brings up a selection explorer that doesn't match the current structure of the categories. If I begin typing in the name of the desired category in the Category field, then and only then does it show up in the selection explorer. I have attached a graphic illustrating the issue. Center top in the image is an inset with the Category structure, the left side of the image shows the explorer I see when clicking in the Category field, right side shows the result of typing the name of the category. I've cleared cache, logged out and back in, rebuilt categories, and the behavior persists.")*

Weird, right? The DB tables look good - No orphaned/dissociated entries. As a matter of fact, I don't even see the old "Beer" category in the categories table. Where does the data for the category explorer on the product edit screen come from? Is it possible it's cached somewhere? I don't have too many products entered yet, but I'd rather not repeat the exercise of entering them again if I don't have to.

Incidentally, the problem exists with new products as well. For whatever reason I was thinking that Categories were displaying properly for new products - I was mistaken...

Matt

---

It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

Last edit: 10 years 9 months ago by [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile"). Reason: Additional information

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

- **[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")**
- [![spoonbow's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6067.gif)](/forum/user/6067-spoonbow "View spoonbow's Profile") Topic Author
- [ Offline](/forum/user/6067-spoonbow)

Less More

- Posts: 42
- Thank you received: 2
-
-
-
-

10 years 9 months ago [\#231299](#231299) by [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")  Replied by *[spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")* on topic *[Category selection problem with existing products](/forum/32-content-creation/882591-category-selection-problem-with-existing-products#231299 "SOLVED - This was a browser cache issue in Chrome. Clearing the cache resolved the problem.  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5  I'm having a strange problem with category selection. On an existing product, clicking in the Category field brings up a selection explorer that doesn't match the current structure of the categories. If I begin typing in the name of the desired category in the Category field, then and only then does it show up in the selection explorer. I have attached a graphic illustrating the issue. Center top in the image is an inset with the Category structure, the left side of the image shows the explorer I see when clicking in the Category field, right side shows the result of typing the name of the category. I've cleared cache, logged out and back in, rebuilt categories, and the behavior persists.")*

OK, looks like Chrome cached the result of the ".../administrator/index.php?option=com_hikashop&amp;ctrl=category&amp;task=getTree&amp;category_id=2" call two days ago and has been using it for subsequent calls. Did a search of my cache and found the following, which shows the old "Beer" category. Accessed the edit product page with a clean browser cache and the proper categories showed up.

Matt

[ ![getTree&#95;cache.jpg](/forum/attachment/29764) ](/forum/attachment/29764 "getTree&#95;cache.jpg")

---

It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

- [ ![getTree&#95;cache.jpg](/forum/attachment/29764) ](/forum/attachment/29764 "getTree&#95;cache.jpg") [ ](/forum/attachment/29764?download=1 "getTree&#95;cache.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODgyNTkxLWNhdGVnb3J5LXNlbGVjdGlvbi1wcm9ibGVtLXdpdGgtZXhpc3RpbmctcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 9 months ago [\#231313](#231313) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Category selection problem with existing products](/forum/32-content-creation/882591-category-selection-problem-with-existing-products#231313 "SOLVED - This was a browser cache issue in Chrome. Clearing the cache resolved the problem.  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5  I'm having a strange problem with category selection. On an existing product, clicking in the Category field brings up a selection explorer that doesn't match the current structure of the categories. If I begin typing in the name of the desired category in the Category field, then and only then does it show up in the selection explorer. I have attached a graphic illustrating the issue. Center top in the image is an inset with the Category structure, the left side of the image shows the explorer I see when clicking in the Category field, right side shows the result of typing the name of the category. I've cleared cache, logged out and back in, rebuilt categories, and the behavior persists.")*

Hi,

Try to add the line:
hikashop_nocache();
after the line:
function getTree() {
in the file administrator/components/com_hikashop/controllers/category.php
That should force the browser to not cache the data for the category explorer and thus you should not have the problem anymore.

The following user(s) said Thank You: [spoonbow](/forum/user/6067-spoonbow "View spoonbow's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODgyNTkxLWNhdGVnb3J5LXNlbGVjdGlvbi1wcm9ibGVtLXdpdGgtZXhpc3RpbmctcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) 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.090 seconds

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