Home > Shopify Development > Liquid tablerow: Generates an HTML table

Liquid tablerow: Generates an HTML table in Shopify

Sam Nguyen
Sam Updated: May 23, 2024

Share:

Drive 20-40% of your revenue with Avada
avada email marketing

Many Shopify store owners find it challenging to display data neatly in tables. The Liquid tablerow tag is a powerful tool that can simplify this process, but it’s not always easy to use without guidance. In this guide, we’ll show you exactly how to use the Liquid tablerow tag to create clean and functional HTML tables in Shopify, making your data presentation both professional and effortless.

How to generate an HTML table in Shopify

About HTML table

HTML Tags or Hypertext Markup Language term has been known on the Internet with the detail description since late 1991. Today it has been innovated with 18 elements comprising the initial, from which to create the online document structure such as headings, paragraphs, lists, links, quotes, etc. Besides, the HTML Tags has a strong influence on web applications despite a simple design.

Another definition is about HTML table which consists of the <table> element and at least one of these elements <tr>, <th>, and <td> allows Shopify store owners to arrange data. Therefore, HTML table can solve all the data into rows and columns of cells such as text, images, links, other tables, etc. The required form of a HTML table is wrapped in opening <table> and closing </table>. Through this article How to generate an HTML table in Shopify, the users are brought with simple steps to create the HTML table in Shopify easily.

The way generate an HTML table in Shopify

Step 1: Input

To create an HTML table, firstly, the Shopify store owners have to log in the admin’s dashboard and then put this input.

Input


<table>
{% tablerow product in collection.products %}
  {{ product.title }}
{% endtablerow %}
</table>

Step 2: Output

After entering the input, the Shopify users will have the output: Output

<table>
  <tr class="row1">
    <td class="col1">
      Cool Shirt
    </td>
    <td class="col2">
      Alien Poster
    </td>
    <td class="col3">
      Batman Poster
    </td>
    <td class="col4">
      Bullseye Shirt
    </td>
    <td class="col5">
      Another Classic Vinyl
    </td>
    <td class="col6">
      Awesome Jeans
    </td>
  </tr>
</table>

Conclusion

From this article How to generate an HTML table in Shopify, it is possible for online sellers to contribute a link and connect the data in different cells and rows by themselves.

There are many other articles that help online merchants have more understandings about the Shopify as well as the Liquid-like the following list:


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.

Stay in the know

Get special offers on the latest news from AVADA.