How do I get the product options showing in cart page?

Most themes come with some code like this, which will display any product options the user selected in our app. Here are instructions on adding the code if our options don’t show in the cart.

Look for your cart template (usually called cart.liquid) and try and find similar code.

If there isn’t much in cart.liquid, you’ll need to figure out what other templates are used for your cart page.

Try these:

  • Sections/cart-template.liquid
  • cart-static.liquid
  • Snippets/cart-template.liquid

Inside this template, try and find some code that starts and ends with:

{% for p in line.properties %}
...
{% endfor %}

Next replace the code with the following:

{% for p in line.properties %}
{% unless p.last == blank %}
<div class="bcpo-property" style="font-size: 14px;">{{ p.first }}:
{% if p.last contains '/uploads/' %}
<a href="{{ p.last }}"><img style="max-width: 20px; max-height: 20px;" src="{{ p.last }}" /></a>
{% else %}
{{ p.last }}
{% endif %}</div>
{% endunless %}
{% endfor %}
Was this article helpful?
Dislike 2

Pin It on Pinterest