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.


Hey @LognBlock,


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

Thanks & Regards
Perennial Solution

Would like to add new functionality or customize an existing one, please hire us.
If helpful then please Like and Accept Solution .
Skype: infoperennialsolution