Filter displayed twice if there is no products found

  • Posts: 2293
  • Thank you received: 315
5 years 8 months ago #304661

-- url of the page with the problem -- : watchmoscow.ru/kupit-chasy
-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.4
-- PHP version -- : 7.2

If I filter products it works ok.
But if I choose manufacture that there is not have any products I got filter twice on the page:



to replicate this error try to choose VACHERON CONSTANTIN

As this is production site I need to hide second filter with
h1 + .hikashop_filter_main_div {
    display: none;
}
rule in css, but you can find it in the html code:


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Attachments:
Last edit: 5 years 8 months ago by progreccor.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
5 years 8 months ago #304679

Hello,

I just had a look on your website, and was able to see your issue, but so far unfortunately I wasn't able to get the root issue...
Can you try to process a test while using a default template (like ProtoStar) to see if the issue is still there...

If it disappear, 2 possibilities :
- You have an override that leads to this, maybe since you update to the 4.0.3 ?...
- Your template leads to this, by editing the html ?...

Awaiting news from you to move forward on your subject.
Regards

Last edit: 5 years 8 months ago by Philip.

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

  • Posts: 2293
  • Thank you received: 315
5 years 8 months ago #304709

there is no this bug in protostar.
so this is bug in my overrides.
I'll try to find it


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Last edit: 5 years 8 months ago by progreccor.

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

  • Posts: 2293
  • Thank you received: 315
5 years 8 months ago #304806

I found the wrong override.
And so another one question - if there is no products found buy filter I get this icon:



Is there a way to override this message?


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Attachments:
Last edit: 5 years 8 months ago by progreccor.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 8 months ago #304823

Hi,

This is done with the code:

echo '<div class="hk-well hika_no_products"><i class="fa fa-search"></i> ' . JText::_('HIKASHOP_NO_RESULT') . '</div>';
in the file "listing" of the view "product" that you can edit via the menu Display>Views.
As you can see, you should already have a message "no results found" there.
If you don't, it's either that this line was changed on your end, or that you have a translation override on that translation key.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum