Shopify themes, liquid, logos, and UX
Hello,
I have this "Free monogram" option for my products.
https://www.golden-pigs.com/products/handmade-ceramic-blackboard-piggy-bank
Now it's mandatory...
The code used is this:
<input required="" id="monogram" style="width:120px; max-width:100%;" type="text" name="properties[Monogram]" data-gtm-form-interact-field-id="0">
BUT it was moved from <!-- /templates/product.liquid --> to Sections <!-- /templates/product.liquid --> and there ... it's missing.
Help pls! I want to remove the "required" because it's stopping the add to cart if it's not filled.
AND if it's not too much a way to have this only for some products? Not mandatory. 🙂
Looking forward for your answers!
Kind regards,
Cristi
Remove Required="" from the code. This is making the input field be required for the form it's in. Is your code editor not letting you remove required?
hello,
I know... but I can't find the code line...
It was moved from <!-- /templates/product.liquid --> to Sections <!-- /templates/product.liquid --> and there ... it's missing.
Hi @Golden_Pigs ,
You need to remove attribute require, it would be like that
<input id="monogram" style="width:120px; max-width:100%;" type="text" name="properties[Monogram]" data-gtm-form-interact-field-id="0">
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
hello,
I know... but I can't find the code line...
It was moved from <!-- /templates/product.liquid --> to Sections <!-- /templates/product.liquid --> and there ... it's missing.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025