Display option selections in the cart page

Follow the steps below to display the options selections on the cart page.

Before proceeding, it's a good idea to test whether or not your options are already appearing on the cart page. Some themes support this by default, so you may not need to add additional code.

1. From your Shopify admin, click  Online Store to arrive at the Themes page.

2. Find the theme you want to edit, click the Actions ▼ button, then click Edit code.

3. On the left side, under the Templates heading, click on the cart.liquid file.

If your theme's cart.liquid file doesn't contain much code, it may be pointing to a different file. In most cases, the code will be located under the Sections header within the cart-template.liquid file.

4. Locate the product's title by searching for either item.title or item.product.title.

5. Copy and paste the following code snippet below your product title or variants.

{% for p in item.properties %}
  {% if p.first contains '_io_' %}
    {% continue %}
  {% endif %}
  {% unless p.last == blank %}
    <br />{{p.first}}: {{ p.last }}
  {% endunless %}
{% endfor %}

Product variants tend to appear below the product title. They can be found by looking for {{ item.variant.title }}.

6. Save your changes.

Below is in example. Placement will vary depending on your theme. 

Still need help? Contact Us Contact Us