Responsive options for Shopify product tables
Our Barn2 Product Table Shopify app has several options for controlling how your product tables look on smaller screens, such as mobiles and tablets.
When a table has more columns than can fit on the screen, the app hides some of them. A + icon then appears at the start of each row, and customers can click it to see the hidden data. You can use the options below to control which columns are hidden, and how the hidden data appears.
Responsive display
This option is on the Settings page (Barn2 Product Table → Settings). It applies to all your tables, and controls how customers see the data from the hidden columns:
- Click a plus icon to display a child row (the default) - Clicking the + icon opens an extra row underneath the product, containing the hidden data.
- Expand all child rows automatically - The extra rows are open when the table first loads, so customers can see all the data without clicking anything.
- Click a plus icon to open a modal window - Clicking the + icon opens the hidden data in a popup window.
Responsive visibility
This option is available for each column of each table. To find it, edit the table and click a column to open its settings. Use it to choose which screen sizes the column appears on:
- Default - The app hides the column when it doesn't fit, using the responsive priority if you've set one.
- Mobile only - The column appears on mobiles and is hidden on larger screens.
- Tablet only - The column appears on tablets and is hidden on mobiles and desktops.
- Desktop only - The column appears on desktops and is hidden on mobiles and tablets.
- Not desktop - The column appears on mobiles and tablets, but is hidden on desktops.
- Not mobile - The column appears on tablets and desktops, but is hidden on mobiles.
- Not tablet - The column appears on mobiles and desktops, but is hidden on tablets.
- Tablet and above - The column appears on tablets and desktops, but is hidden on mobiles.
- Always visible - The column appears on every screen size where it fits.
- Always hidden - The column never appears in the main table. Customers can only see its data by clicking the + icon.
A hidden column's data still appears in the child row or modal window, so customers can see it when they click the + icon.
The table can only display the columns that fit on the screen. For example, if you set ten columns to 'Always visible', then some of them will still be hidden on a mobile. This stops the table from looking broken on small screens.
Responsive priority
This option is also available for each column, underneath Responsive visibility. It lets you choose which columns to hide first when there are too many to fit on the screen.
Enter a number for each column. The lower the number, the higher the priority, so a column with a priority of 1 is hidden last. For example, you might give the Title and Add to Cart columns a priority of 1, so customers on mobiles can always see what they're buying and add it to the cart. Then give less important columns, such as Tags or Date Published, a higher number.
If you leave the field blank, then the app chooses the order for that column.
You can use Responsive visibility and Responsive priority together. However, a column's Responsive visibility setting overrides its priority unless you leave the visibility on 'Default'. As a result, I recommend using one or the other for each column.