How to edit the checkout or cart page properties in Kite app using line item property

This guide explains how to fix issues with how line item properties are displayed on your cart page by editing your Shopify theme's code.

Disclaimer: This process involves editing your theme’s code. Before proceeding, always create a backup of your theme by selecting Actions > Duplicate.


Step 1: Locate the Relevant Theme Code


First, you need to find the code responsible for displaying cart item properties. You can do this locally for investigation or directly in the Shopify theme editor.

  1. From your Shopify admin, go to Online Store > Themes.
  2. On your current theme, click the ... button (Actions) and select Edit code.
  3. In the theme file search bar, type cart and look for a file named main-cart-items.liquid, cart-template.liquid, or simply cart.liquid. The exact file name can vary by theme.
  4. Open the file and use the search function (Ctrl+F or Cmd+F) to find the term item.properties.


Step 2: Edit the Code


You will likely find a block of code that loops through the properties. It will look something like this:

{% for p in item.properties %} ... some code ... {% endfor %}

The fix involves replacing this entire block with a corrected code snippet.

  1. Carefully identify the code block that starts with the {% for ... %} loop and ends with {% endfor %}. The line number mentioned in the video (e.g., line 83) is just an example and will be different in your theme.
  2. The original code may use a short variable like p. The corrected code might use a more descriptive variable like property for clarity (e.g., {% for property in item.properties %}).
  3. The logic within the loop, often an {% if ... %} statement, also needs to be corrected to properly hide or display the desired properties.
  4. Replace the entire original code block (from {% for ... %} to {% endfor %}) with the corrected code snippet provided to you.
  5. Click Save.


Step 3: Verify the Fix


After saving the changes, go to your online store and navigate to the cart page. Refresh the page to confirm that the properties are now displayed correctly or have been removed as intended.


Updated on: 11/08/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!