eriksilver
3/25/2016 - 8:31 PM

Using Liquid Split filter to parse on a character

  Note: .first uses Liquid to show the first element of the array
  
  {% assign showSKU = product.variants.first.sku | split: '-' %}
  <li>SKU: {{ showSKU.first }}</li>
EVEN CLEANER::

Use this to access first part of string as well:
{{ 'Just Test' | split: ' ' | first }}