[Skip to main content](#vessel-content)

#   Question on table switcher

##

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

5 years 9 months ago [\#330022](#330022) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  *[Question on table switcher](/forum/32-content-creation/902019-question-on-table-switcher#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 &gt; div &gt;table switcher &gt; 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.")* was created by *[ronron](/forum/user/40399-ronron "View ronron's Profile")*

-- 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 &gt; div &gt;table switcher &gt; 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.

[ ![MenusEditItem-AffordableCondosinManila-Administration2021-02-2512-58-05.jpg](/forum/attachment/52064) ](/forum/attachment/52064 "...2512-58-05.jpg")

[ ![Women2021-02-2513-01-32.jpg](/forum/attachment/52065) ](/forum/attachment/52065 "...2513-01-32.jpg")

- [ ![MenusEditItem-AffordableCondosinManila-Administration2021-02-2512-58-05.jpg](/forum/attachment/52064) ](/forum/attachment/52064 "...2512-58-05.jpg") [ ](/forum/attachment/52064?download=1 "...2512-58-05.jpg")
- [ ![Women2021-02-2513-01-32.jpg](/forum/attachment/52065) ](/forum/attachment/52065 "...2513-01-32.jpg") [ ](/forum/attachment/52065?download=1 "...2513-01-32.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAyMDE5LXF1ZXN0aW9uLW9uLXRhYmxlLXN3aXRjaGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 9 months ago -  5 years 9 months ago [\#330053](#330053) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Question on table switcher](/forum/32-content-creation/902019-question-on-table-switcher#330053 "-- 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 &gt; div &gt;table switcher &gt; 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.")*

Hello,

**1.** Go to Views in order to create an override view of the product/listing_div, around line 70, you have this code :
[ ![alt](https://i.postimg.cc/MKHWH5hG/code-grid.png) ](https://i.postimg.cc/MKHWH5hG/code-grid.png "alt")

**=&gt;** 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 : Code:

.hikashop_switcher_btn_class {display: none;}

Hope this will meet your expectations.
Regards

Last edit: 5 years 9 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

The following user(s) said Thank You: [ronron](/forum/user/40399-ronron "View ronron's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAyMDE5LXF1ZXN0aW9uLW9uLXRhYmxlLXN3aXRjaGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

5 years 8 months ago [\#330144](#330144) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[Question on table switcher](/forum/32-content-creation/902019-question-on-table-switcher#330144 "-- 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 &gt; div &gt;table switcher &gt; 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.")*

thanks Philip

great response

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAyMDE5LXF1ZXN0aW9uLW9uLXRhYmxlLXN3aXRjaGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
