All things Shopify and commerce
Solved! Go to the solution
This is an accepted solution.
{% assign metafield_1 = page.metafields.page_info.short_desc %}
{% for i in metafield_1 %}
<p>{{ page.metafields.page_info.short_desc[forloop.index0] }}</p>
{% endfor %}
Using the above code, I got the below output.
This is an accepted solution.
{% assign metafield_1 = page.metafields.page_info.short_desc %}
{% for i in metafield_1 %}
<p>{{ page.metafields.page_info.short_desc[forloop.index0] }}</p>
{% endfor %}
Using the above code, I got the below output.
<div class="row">
{% assign table_title = product.metafields.page_info.table_title %}
{% for i in table_title %}
<div class="col-md-4">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th colspan="2">
<span>{{ product.metafields.page_info.table_title[forloop.index0] }}</span>
</th>
</tr>
</thead>
<tbody>
{% assign cell1 = product.metafields.product_info.cell1 %}
{% assign cell2 = product.metafields.product_info.cell2 %}
{% for j in table_title %}
<tr>
<th>
<span>{{ product.metafields.page_info.cell1[forloop.index0] }}</span>
</th>
<td>
<span>{{ product.metafields.page_info.cell2[forloop.index0] }}</span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endfor %}
</div>
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025