Tag Archives: description

Split product.description in liquid, shopify

Shopify provides only description to be associated with product.  However on UI we need to show information under different sections and different places.

How to achieve this:

  1. Insert delimiter word between different contents.
  2. Use below code to split description based on delimiter in liquid file                                {% assign ProductContent = product.description | split: ‘delimiterWord’ %}
  3. Use ProductWordsArray to display different sections on UI  {{ ProductContent[2] }}