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.
- From your Shopify admin, go to Online Store > Themes.
- On your current theme, click the
...
button (Actions) and select Edit code. - In the theme file search bar, type
cart
and look for a file namedmain-cart-items.liquid
,cart-template.liquid
, or simplycart.liquid
. The exact file name can vary by theme. - Open the file and use the search function (
Ctrl+F
orCmd+F
) to find the termitem.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.
- 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. - The original code may use a short variable like
p
. The corrected code might use a more descriptive variable likeproperty
for clarity (e.g.,{% for property in item.properties %}
). - The logic within the loop, often an
{% if ... %}
statement, also needs to be corrected to properly hide or display the desired properties. - Replace the entire original code block (from
{% for ... %}
to{% endfor %}
) with the corrected code snippet provided to you. - 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
Thank you!