Currently when a shopper select a variant they can make checkout without filling the text field. What I want is shoppers after selecting a variant they must fill the field as well before proceeding for checkout.
My code:
{% if product.title contains ‘Copy of ميدالية أرقام سيارات’ %}
Thanks for the post, I’ll do my best to help you out! Just so I understand correctly, are you struggling to make that code work? Or are you looking for an alternative?
It would be helpful to know the name of your theme. If it’s Shopify Supported, you may be eligible for Design Time where a Shopify developer can potentially apply these changes for you. We also have this specific tutorial available for Shopify Supported themes.
Otherwise, you’ll need to reach out to your third-party theme developer, a Shopify Expert or try your luck with a product options app. I’ve listed some options below:
Required Cart Page Fields: this allows you to create a custom field that the customer is required to input before moving onto the checkout page.
Variant Product Options: Gives you the ability to produces any kind of product variants you wish as well as make them a required field.
What do you think of those options? Would love to know your thoughts!