Filter is not working, when I clicked on it, it returned to home page.

  • Posts: 34
  • Thank you received: 2
5 years 11 months ago #291620

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 5.6.35

Hi, I have problems on filter the product.

When I clicked on filter, It revert to home page ( *homepage tab but show something totally different from homapage.)

Filter set on "Submit on Click" > YES and "Deletable filter" >YES.

When click on any of the filter categories, it return to www.sample.com/index.php/en/component/hikashop/?Itemid=150

What is the problem?

Filter Setting



Custom Field


Product custom field

Attachments:

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
5 years 11 months ago #291638

Hello,

You are using a module to display your filters, right ?
So you should take a look at that module configuration to check what is the targeted menu.
If the menu is not valid ; Joomla will redirect the user to the homepage.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 34
  • Thank you received: 2
5 years 11 months ago #291907

Hi, yes. Im using hikashop filtering module.
I tried to check on the module but I don't see any option for targeted menu.
Attached screenshot for filter module configuration.
When I clicked at any option on filter, It still lead me to home page (showing products categories).



Attachments:

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

  • Posts: 34
  • Thank you received: 2
5 years 11 months ago #291913

Hi Jerome,

I solved the problem now! Thank you for guiding me.

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

  • Posts: 34
  • Thank you received: 2
5 years 11 months ago #292205

Hi Jerome.

I have another problem now.

I realized for every option in filter, The first values are not filtering any products.



The red arrow, when I clicked on it, all products is showed. The rest of the values working correctly.
Only the first value of every field.

May I know what I missed out?

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
5 years 11 months ago #292217

Hi,

Can you provide a screenshot of the settings of one of these filters with a screenshot of the settings of the corresponding custom field ?

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

  • Posts: 34
  • Thank you received: 2
5 years 11 months ago #292271

Hi Nicolas.

This is the screenshot of the custom field.




This is filter.

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
5 years 11 months ago #292280

Hi,

I suppose that the issue is because you use "0" as the value of the first element of your custom field.
0 is loosely interpreted by PHP and sometimes it causes behaviors that are not expected.
I would recommend to not use 0 as value in your custom fields and it will probably prevent that problem.

The following user(s) said Thank You: Jern

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

Time to create page: 0.119 seconds
Powered by Kunena Forum