Customizable Fields in Cart-Page

New Member
28 0 0

Hello!

 

I have customizable form fields in my product page where customers can customize the product with their name and mobile number. 

But after they add to cart, I want them to be able to edit:

Product 1 in Cart - Name + Phone 

Product 2 in Cart - Name + Phone (with different name + telephone number)

Product 3 in Cart - Name + Phone (with different name + telephone number)

 

If they buy the same variation 3 times.

 

Can anybody help me please?

 

I thank you in advance.

if.png

0 Likes
Shopify Expert
2461 414 519

Hi @Peakmart 

If you want to show line item property next to product title then you need liquid code knowledge, you can do this on Section->cart.liquid file.

Find {{item.title}} (thats your product title) and with this you have to put current product line item Name field so you have to make loop just above this and get it in variants and show it.

You can see line item loop like this on page ({% for p in item.properties %})

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Shopify Partner
1125 90 137

hi,

try this 

 

{%- assign property_size = item.properties | size -%}
{% if property_size > 0 %}
<div class="cart__meta-text">
{% for p in item.properties %}
{% unless p.last == blank %}
{{ p.first }}:

{% comment %}
Check if there was an uploaded file associated
{% endcomment %}
{% if p.last contains '/uploads/' %}
<a href="{{ p.last }}">{{ p.last | split: '/' | last }}</a>
{% else %}
{{ p.last }}
{% endif %}
{% endunless %}
{% endfor %}
</div>
{% endif %}

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes
New Member
28 0 0

Where should I put this code?

 

{%- assign property_size = item.properties | size -%}
{% if property_size > 0 %}
<div class="cart__meta-text">
{% for p in item.properties %}
{% unless p.last == blank %}
{{ p.first }}:

{% comment %}
Check if there was an uploaded file associated
{% endcomment %}
{% if p.last contains '/uploads/' %}
<a href="{{ p.last }}">{{ p.last | split: '/' | last }}</a>
{% else %}
{{ p.last }}
{% endif %}
{% endunless %}
{% endfor %}
</div>
{% endif %}
0 Likes
Shopify Partner
1125 90 137

 

cart page template 

below  {{item.title}}

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes
New Member
28 0 0

It doesn't work

0 Likes