Values in Custom Filed Dose not Reflects in Cart Page

Topic summary

A user is attempting to add two custom input fields (plate number and code) to a product page in a Shopify store using the Shells theme. The fields appear on the product page, but the entered values are not displaying on the cart page as expected.

Proposed Solutions:

  • One responder provided code to be added within the cart items loop in various cart template files (cart.liquid, main-cart.liquid, etc.) to display custom properties
  • The code snippet uses Liquid templating to iterate through item properties and display non-blank values

Alternative Approach:

  • Another user suggested using the Easify Product Options app as a no-code solution for adding custom text fields, with visual examples provided

Current Status:

  • The original poster reported the suggested code is not working
  • A follow-up offer was made to directly access the theme editor to help implement the solution properly
  • The issue remains unresolved and requires further troubleshooting
Summarized with AI on November 12. AI used: claude-sonnet-4-5-20250929.

Hello

Below code will add two filed to a product page. once shopper enter value in these two filled these two values must reflect in cart page which is not happening. could anyone help. im using shells theme.

Hello @amazezones

Please add below code within the {%- for item in cart.items -%} loop in cart.liquid or main-cart.liquid or cart-template.liquid or main-cart-items.liquid file.

{%- for property in item.properties -%}
                            {%- assign property_first_char = property.first | slice: 0 -%}
                            {%- if property.last != blank and property_first_char != '_' -%}
                              
                                <dt>{{ property.first }}:</dt>
                                <dd>
                                  {%- if property.last contains '/uploads/' -%}
                                    
                                      {{ property.last | split: '/' | last }}
                                    
                                  {%- else -%}
                                    {{ property.last }}
                                  {%- endif -%}
                                </dd>
                              

                            {%- endif -%}
                          {%- endfor -%}

If you have any issue with adding code raise an email.

Thanks

Hi @amazezones ,

You should check out the free Easify Product Options app to easily add custom text fields to your product pages – no coding required :hugs: .Below is an example:

  • Storefront:

or:

  • Simple settings:

hey, thx sweet_savior_3 for reply, but the code is not working

Hello @amazezones

Is it possible to check the code from my end? Can you provide me the access for code editor? If yes do let me know in personal or via mail. So i can help you adding the code.

Thanks