Skip to content

Instantly share code, notes, and snippets.

@boldsupport
Last active November 22, 2017 18:49
Show Gist options
  • Save boldsupport/f862080f6da0839ea2ffb24f9f3c600c to your computer and use it in GitHub Desktop.
Save boldsupport/f862080f6da0839ea2ffb24f9f3c600c to your computer and use it in GitHub Desktop.
{% assign bold_product = bold-compare-specs %}
{% assign bold_metafield = bold_product.metafields.bold_spec %}
{% assign bold_meta_size = bold_metafield | size %}
{% if bold_meta_size > 0 %}
<div class="bold_specs" style="display:none;">
<table class="bold_spec_grid">
<thead>
<tr>
<th><script>document.write(BOLD.Compare.language.spec_title);</script></th>
<th><script>document.write(BOLD.Compare.language.spec_detail);</script></th>
</tr>
</thead>
<tbody>
{% assign bold_metafield = bold_product.metafields.bold_spec %}
{% for bold_spec in bold_metafield %}
<tr>
<td>{{bold_spec.first}}</td>
<td>{{bold_spec.last}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment