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

Shopify is used globally with millions of users, so this marketplace becomes one the most popular and attractive market for online sellers. Known as the last-updated marketplace, Shopify provides online sellers with multiple effective functionalities and support from the experts. It is easy for them to open and manage a Shopify shop to earn lucrative revenue. Especially, with the Liquid-a flexible and safe language, online merchants can build up a professional website.

With the latest version of Liquid, the Shopify store owners can use a significant number of data to have a beautiful front store. In addition, the Liquid codes’ combination including objects, tags, and filters will help the users to display dynamic data. Moreover, the Liquid objects allows the online sellers to configure their website according to their preferences. Besides, Liquid filters can change the results of this output in objects. Thank the valuable asset as Liquid, the Shopify users enable having a professional store website including a beautiful appearance.

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.