product attribute checkbox value no is not displaying on cart page.

Abbyxia
Tourist
14 0 2

Hi There,

We've added a product line item property to product template.

        <p class="line-item-property__field">
  <input type="hidden" name="properties[Add 10% for cuttings]" value="No">
  <input id="add-10-for-cuttings" type="checkbox" name="properties[Add 10% for cuttings]" value="Yes">
  <label for="add-10-for-cuttings">Add 10% for cuttings</label>
</p>

But the value always displaying "yes" when the product added to the cart.

How can we pass the Value "No" to the cart?

Thanks

Abby

 

0 Likes
KetanKumar
Shopify Partner
14549 1675 5226

@Abbyxia 

Thanks for post

can you please try again new code this 

https://ui-elements-generator.myshopify.com/pages/line-item-property

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Abbyxia
Tourist
14 0 2

Hi Ketan,

Thanks for replying. I regenerated the code, but still can't pass the No value to the cart page. No matter I checked or not, the value is displaying Yes on the cart page. Any idea?

thanks

Abby

<p class="line-item-property__field">
  <input type="hidden" name="properties[Add 10% for cuttings]" value="No">
  <input id="add-10-for-cuttings" type="checkbox" name="properties[Add 10% for cuttings]" value="Yes">
  <label for="add-10-for-cuttings">Add 10% for cuttings</label>
</p>

  

0 Likes
KetanKumar
Shopify Partner
14549 1675 5226

@Abbyxia 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Abbyxia
Tourist
14 0 2

Thanks Ketan,

Here is our site URL: https://tilehaus.co.nz/

Thanks

Abby

0 Likes
KetanKumar
Shopify Partner
14549 1675 5226

@Abbyxia 

Thanks sorry but i can't see checkbox give me product url if you have this this code 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
KetanKumar
Shopify Partner
14549 1675 5226

@Abbyxia 

KetanKumar_0-1613544771835.png

KetanKumar_1-1613544779903.png

 

it's working 

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Abbyxia
Tourist
14 0 2

the attribute always displaying YES. But if we are not checked the box (toggle), it should be Value No.

The No is not working.

0 Likes
KetanKumar
Shopify Partner
14549 1675 5226

@Abbyxia 

can you please default value first use check box normal after you have design 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes