Filter show products variants that are disabled

  • Posts: 198
  • Thank you received: 7
6 years 2 months ago #298106

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.2

Hi,

Even when a product variant is disabled the filter shows these products. I think this is a bug.

Regards René Mulder

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #298112

Hi,

Did you activate the "dynamic display" setting of your filter ?
If not, the filter will display all the possible values of the characteristic. Only if you have that option activated it will check with the values used in the variants to not display the ones that aren't used.

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

  • Posts: 198
  • Thank you received: 7
6 years 2 months ago #298152

Hi Nicolas,

I activated the dynamic display setting but this does not solve the problem.

Kind regards René Mulder

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #298153

Hi,

Can you provide a link to the page with the filter and a screenshot of the settings of the filter so that we can have a look at the situation ? Can you also tell us which value shouldn't be here ?

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

  • Posts: 198
  • Thank you received: 7
6 years 2 months ago #298158

Hi NIcolas,

I made a screen recording so you can see it for yourself.

take.ms/mNq0S

Also attached the Inhoud setting for the filter.



Kind regards René Mulder

Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
6 years 2 months ago #298162

Hello,

Can you add your product variant listing screenshot like this :



And can you as asked by Nicolas provide an Url link with filter in order to process some tests by ourself ?
Awaiting news from you.

Regards

Last edit: 6 years 2 months ago by Philip.

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

  • Posts: 198
  • Thank you received: 7
6 years 2 months ago #298193

Hi,

This is the link to the side: verfgoedkoper.nl/

On the left sidebar select the filter: Inhoud 5 liter.

After filtering klick on the option for the product: DE PAREL VERFIJN STEIGERHOUTBEITS
Than you can't select the 5 Liter option. (it makes sense because it's disabled.

The product variation shows these values:



The 5 Liter values is disabled.

You can see the dynamic filter option is turned on for the inhoud filter.

Kind regards René Mulder

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #298194

Hi,

Try changing the line:

$query .= ' WHERE product_parent_id IN ('.implode(',',$option_pid).')';
to:
$query .= ' WHERE product_parent_id IN ('.implode(',',$option_pid).') AND product_published > 0';
in the file administrator/components/com_hikashop/classes/filter.php and that should help.

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

  • Posts: 198
  • Thank you received: 7
6 years 2 months ago #298215

Hi, I changed the line but no difference.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 1 month ago #298265

Hi,

Then please provide a backend access, a FTP access and a link the page with the filter so that we can reproduce the problem.
You can send that along with a link to this thread via our contact form here:
www.hikashop.com/support/contact-us.html

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

  • Posts: 12953
  • Thank you received: 1778
6 years 1 month ago #298336

Hello,

Thank you for your FTP access, we just released a new patch regarding that issue and directly applied it on your website. Can you test it again on your website and see if it fixed your issue ? Thank you !

Kind regards,
Mohamed Thelji.

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

  • Posts: 198
  • Thank you received: 7
6 years 1 month ago #298339

Hi Mohamed,

This fix looks promising, thanks in advance.

Regards René

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

Time to create page: 0.093 seconds
Powered by Kunena Forum