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.
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:
Alternative Approach:
Current Status:
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
.Below is an example:
or:
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