Question on table switcher

  • Posts: 490
  • Thank you received: 2
3 years 1 month ago #330022

-- HikaShop version -- : 4.3
-- Joomla version -- : 3.8
-- PHP version -- : 7.2
-- Error-message(debug-mod must be tuned on) -- : none

hi

1.how do i make the default display for the table switcher list view and not the grid view?

2. if i were to replicate product listing > div >table switcher > list view on a new menu, which should i choose on the menu settings? table or list?
i tried table and list but cant replicate the list view generated by the table swithcer

thanks.


Attachments:

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

  • Posts: 4491
  • Thank you received: 609
  • MODERATOR
3 years 1 month ago #330053

Hello,

1. Go to Views in order to create an override view of the product/listing_div, around line 70, you have this code :



=> Modify the value of the variable : $cookie_value = 'display_grid'; for $cookie_value = 'display_list';
This will make the list display type by default.

2.
Here, the tricky points, the list create by the display switcher is different because of the html that allow just with command css to switch from div display to list display.
And so, this is therefore necessarily a different display.

If you want replicate this listing type, the first answer (about list display by default) will help you to reproduce for all item menu to have by default the switcher list view (and if the table switcher is enable).
Maybe if you want, you can hide via custom css the switcher button, (see this documentation to see how to proceed) and add this kind of pseudo css command :
.hikashop_switcher_btn_class {display: none;}

Hope this will meet your expectations.
Regards

Last edit: 3 years 1 month ago by Philip.
The following user(s) said Thank You: ronron

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

  • Posts: 490
  • Thank you received: 2
3 years 4 weeks ago #330144

thanks Philip

great response

The following user(s) said Thank You: Philip

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

Time to create page: 0.071 seconds
Powered by Kunena Forum