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
Thanks for post
can you please try again new code this
https://ui-elements-generator.myshopify.com/pages/line-item-property
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>
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.
Thanks sorry but i can't see checkbox give me product url if you have this this code
it's working
can you please default value first use check box normal after you have design
User | Count |
---|---|
399 | |
202 | |
146 | |
42 | |
40 |