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

#   Minor display bug in product backend

##

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

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 10 months ago [\#33368](#33368) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  *[Minor display bug in product backend](/forum/3-bug-report/33368-minor-display-bug-in-product-backend#33368 "Setup:  In Joomla backend, Hikashop / Product you'll need to have 2 different categories:  a) Category 1 with more than 20 products (using Display 20 products per page option).  b) Category 2 with less than 20 products in it.  Steps to replicate:  1. In Joomla backend, Hikashop / Product, display Page 2 of products in Category 1. 2. Navigate to the products in Category 2. 3. See that NO products are visible in Category 2 (although there are some in it).  Notes:  It looks to me that in step 2) Hikashop is trying to display Page 2 of the products in Category 2 - but such page obviously doesn't exist for this particular category.")* was created by *[karolko](/forum/user/3819-karolko "View karolko's Profile")*

Setup:

In Joomla backend, Hikashop / Product you'll need to have 2 different categories:

a) Category 1 with more than 20 products (using Display 20 products per page option).

b) Category 2 with less than 20 products in it.

Steps to replicate:

1. In Joomla backend, Hikashop / Product, display Page 2 of products in Category 1.
2. Navigate to the products in Category 2.
3. See that NO products are visible in Category 2 (although there are some in it).

Notes:

It looks to me that in step 2) Hikashop is trying to display Page 2 of the products in Category 2 - but such page obviously doesn't exist for this particular category.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzM2OC1taW5vci1kaXNwbGF5LWJ1Zy1pbi1wcm9kdWN0LWJhY2tlbmQ/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: 86555
- Thank you received: 14304
-
-

14 years 10 months ago [\#33414](#33414) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Minor display bug in product backend](/forum/3-bug-report/33368-minor-display-bug-in-product-backend#33414 "Setup:  In Joomla backend, Hikashop / Product you'll need to have 2 different categories:  a) Category 1 with more than 20 products (using Display 20 products per page option).  b) Category 2 with less than 20 products in it.  Steps to replicate:  1. In Joomla backend, Hikashop / Product, display Page 2 of products in Category 1. 2. Navigate to the products in Category 2. 3. See that NO products are visible in Category 2 (although there are some in it).  Notes:  It looks to me that in step 2) Hikashop is trying to display Page 2 of the products in Category 2 - but such page obviously doesn't exist for this particular category.")*

Hi,

Thank you for reporting that problem.

Please change the line:
if(JRequest::getVar('search')!=$app-&gt;getUserState($this-&gt;paramBase.".search")){
to:
if(JRequest::getVar('search')!=$app-&gt;getUserState($this-&gt;paramBase.".search")&#124;&#124;JRequest::getVar('filter_id')!=$app-&gt;getUserState($this-&gt;paramBase.".filter_id")){

in the file administrator/components/com_hikashop/views/product/view.html.php and that should fix the problem.

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

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

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 10 months ago [\#33632](#33632) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  Replied by *[karolko](/forum/user/3819-karolko "View karolko's Profile")* on topic *[Re: Minor display bug in product backend](/forum/3-bug-report/33368-minor-display-bug-in-product-backend#33632 "Setup:  In Joomla backend, Hikashop / Product you'll need to have 2 different categories:  a) Category 1 with more than 20 products (using Display 20 products per page option).  b) Category 2 with less than 20 products in it.  Steps to replicate:  1. In Joomla backend, Hikashop / Product, display Page 2 of products in Category 1. 2. Navigate to the products in Category 2. 3. See that NO products are visible in Category 2 (although there are some in it).  Notes:  It looks to me that in step 2) Hikashop is trying to display Page 2 of the products in Category 2 - but such page obviously doesn't exist for this particular category.")*

Fix worked for me. Thanks.

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

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

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 8 months ago [\#42775](#42775) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  Replied by *[karolko](/forum/user/3819-karolko "View karolko's Profile")* on topic *[Re: Minor display bug in product backend](/forum/3-bug-report/33368-minor-display-bug-in-product-backend#42775 "Setup:  In Joomla backend, Hikashop / Product you'll need to have 2 different categories:  a) Category 1 with more than 20 products (using Display 20 products per page option).  b) Category 2 with less than 20 products in it.  Steps to replicate:  1. In Joomla backend, Hikashop / Product, display Page 2 of products in Category 1. 2. Navigate to the products in Category 2. 3. See that NO products are visible in Category 2 (although there are some in it).  Notes:  It looks to me that in step 2) Hikashop is trying to display Page 2 of the products in Category 2 - but such page obviously doesn't exist for this particular category.")*

One thing we've discovered with this one, is that now we're always returned to the first page of the product list, even with scenarios such as:

1. Display list of products (20 per page).
2. Click on third page and pick a product from it.
3. Edit a product save or cancel --&gt; you're returned to first page and NOT a third page.

Is it a unintended consequence of the fix below or different problem?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzM2OC1taW5vci1kaXNwbGF5LWJ1Zy1pbi1wcm9kdWN0LWJhY2tlbmQ/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: 86555
- Thank you received: 14304
-
-

14 years 8 months ago [\#42785](#42785) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Minor display bug in product backend](/forum/3-bug-report/33368-minor-display-bug-in-product-backend#42785 "Setup:  In Joomla backend, Hikashop / Product you'll need to have 2 different categories:  a) Category 1 with more than 20 products (using Display 20 products per page option).  b) Category 2 with less than 20 products in it.  Steps to replicate:  1. In Joomla backend, Hikashop / Product, display Page 2 of products in Category 1. 2. Navigate to the products in Category 2. 3. See that NO products are visible in Category 2 (although there are some in it).  Notes:  It looks to me that in step 2) Hikashop is trying to display Page 2 of the products in Category 2 - but such page obviously doesn't exist for this particular category.")*

You can replace the code in my previous post by:

$newFilterId = JRequest::getVar('filter_id');
$newSearch = JRequest::getVar('search');
if((!empty($newSearch)&amp;&amp;$newSearch!=$app-&gt;getUserState($this-&gt;paramBase.".search"))&#124;&#124;(!empty($newFilterId) &amp;&amp; $newFilterId!=$app-&gt;getUserState($this-&gt;paramBase.".filter_id"))){

in order to fix that.

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

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

Less More

- Posts: 130
- Thank you received: 1
-
-

14 years 8 months ago [\#42790](#42790) by [karolko](/forum/user/3819-karolko "View karolko's Profile")  Replied by *[karolko](/forum/user/3819-karolko "View karolko's Profile")* on topic *[Re: Minor display bug in product backend](/forum/3-bug-report/33368-minor-display-bug-in-product-backend#42790 "Setup:  In Joomla backend, Hikashop / Product you'll need to have 2 different categories:  a) Category 1 with more than 20 products (using Display 20 products per page option).  b) Category 2 with less than 20 products in it.  Steps to replicate:  1. In Joomla backend, Hikashop / Product, display Page 2 of products in Category 1. 2. Navigate to the products in Category 2. 3. See that NO products are visible in Category 2 (although there are some in it).  Notes:  It looks to me that in step 2) Hikashop is trying to display Page 2 of the products in Category 2 - but such page obviously doesn't exist for this particular category.")*

Thanks Nicolas, working like charm.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzM2OC1taW5vci1kaXNwbGF5LWJ1Zy1pbi1wcm9kdWN0LWJhY2tlbmQ/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.068 seconds

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