Can't find a code line. Modify "free monogram" option

Can't find a code line. Modify "free monogram" option

Golden_Pigs
Tourist
13 0 0

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

Replies 4 (4)

Kyle_Poieo-Dev
Shopify Partner
43 4 8

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?

-

Need a Shopify developer? Send me an Email


- CEO & Lead Developer at Poieo Dev
- Shopify Design Changes | Shopify Custom Coding | Custom Modifications | SEO | E-Commerce Management
Poieo Dev
Golden_Pigs
Tourist
13 0 0

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. 

BSSCommerce-TC
Shopify Expert
165 36 36

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


BSS Commerce - Full-service eCommerce Agency
Golden_Pigs
Tourist
13 0 0

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.