Re: How would I show an Item's SKU in Cart on Dawn Theme?

How would I show an Item's SKU in Cart on Dawn Theme?

JDandCompany
Visitor
2 0 0

How would I show an Item's SKU in Cart on Dawn Theme? It seems that I can only find this for the Debut template.

Replies 3 (3)

NomtechSolution
Astronaut
1245 113 153
  1. In the "Sections" folder, locate the cart-template.liquid file. This file controls the layout and display of the cart page.
  2. Open the cart-template.liquid file and search for the section or code responsible for rendering the individual items in the cart. It may look like {% for item in cart.items %} or similar.
  3. Within the loop that iterates over the cart items, you'll need to add code to display the SKU. Locate the code that renders the item's name or title, and add the following code below it to display the SKU:

 

{% if item.variant.sku %}
  <p>SKU: {{ item.variant.sku }}</p>
{% endif %}
​

 

JDandCompany
Visitor
2 0 0

Thanks for the info.  However, there is not a file cart-template.liquid in the sections folder.  

Jdloy
Visitor
1 0 0

same problem here: there is not a file cart-template.liquid in the sections folder