How to have cart notes be required to checkout only when purchasing a specific variant?

New Member
1 0 0

I'm selling 1 product, but this product has a variant. Right now I have my cart notes set to be required when the customer checks out by implementing these changes to the cart file:


<textarea name="note" id="CartSpecialInstructions" class="cart-note__input" required>{{ cart.note }}</textarea>


<form action="/cart" method="post" class="cart">

I want this requirement to only be present when the customer has the variant in their cart. If they're just buying the standard product then the cart notes shouldn't be mandatory to proceed.

Shopify Partner
1125 90 137

Hey @LognBlock,


Could you please share your website URL in order to test the same?

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Skype: infoperennialsolution