Filter type on vendor control panel

  • Posts: 152
  • Thank you received: 11
3 years 2 months ago #335462

-- url of the page with the problem -- : demo.hikashop.com
-- HikaShop version -- : 4.4.3
-- HikaMarket version -- : 4.0.0
-- Joomla version -- : 3.10
-- PHP version -- : 7.4.14
-- Browser(s) name and version -- : Chrome



What do I need to change to have the default > All sub elements ??



Thanks

Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
3 years 2 months ago #335471

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: 152
  • Thank you received: 11
3 years 2 months ago #335474

I read the other post OK.

But with the update the database configuration remains unchanged or do I have to update it again?

Thanks

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
3 years 2 months ago #335489

Hello,

Adding the entry in the HikaMarket configuration table will change the default value for the filter.
But if you do have the filter value stored in the user session ; you won't see the difference. You'll need to logout and clean your cookies.

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: 152
  • Thank you received: 11
3 years 2 months ago #335589

I tried to update HikaMarket.
The "default_filter_type_product_listing" record retains the value 1
Thanks

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
3 years 2 months ago #335597

Hello,

You don't need to update HikaMarket ; you need to logout and re-login to have a new session with the new default value.
Please provide screenshot of the "default_filter_type_product_listing" entry you add in the HikaMarket config table.

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: 152
  • Thank you received: 11
3 years 2 months ago #335607
Attachments:

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
3 years 2 months ago #335629

Hello,

You can see the content of the file "components/com_hikamarket/views/productmarket/view.html.php".
You'll find the line

   'type' => (int)$config->get('default_filter_type_product_listing', 0),
Which store in the pagefilters the default value for the "type" (direct sub elements / all sub elements) filter.
That variable is passed to the getPageInfo function which will read the value sent by the user or stored in its session.
Then you will find the line
$pageInfo->selectedType = $pageInfo->filter->type;
Which retrieve the value from the pageInfo object and copy it into "selectedType". That variable will be used afterwards to alter the SQL query (to look in one category or all the sub categories).

If you have the HikaMarket configure "default_filter_type_product_listing" set to "1", then the default value will be "1" (instead of 0) and if your session is clean, you will have "all sub elements" selected by default.

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.
The following user(s) said Thank You: daedalusteks

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

  • Posts: 152
  • Thank you received: 11
3 years 2 months ago #335631

I am more and more convinced that the Hikashop / Hikamarket staff is the number one for professionalism ;-)

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

Moderators: Obsidev
Time to create page: 0.087 seconds
Powered by Kunena Forum