Last active
November 22, 2017 18:49
-
-
Save boldsupport/f862080f6da0839ea2ffb24f9f3c600c to your computer and use it in GitHub Desktop.
Linked from: https://support.boldcommerce.com/hc/en-us/articles/210227183-Product-Comparison-Install-Instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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