client side validation will not work with an add to cart button that is set to look up the item from a recordset.
client validation will only work with a static add to cart button.
the problem with an add to cart button that is set to lookup the item from a recordset is that the form name is dynamic.
if you view source of your page in the browser, the form element code looks like:
<form action="/factory-spa-covers-detail-shape2-step.php?ItemsID=1&ItemColor=9&shapeID=2&ItemCatID=19" method="POST" name="eCart1_1_ATC_1" onsubmit="WAValidateRQ(document.eCart1_1_ATC_.eCart1_1_MeasureB_Add,'-Measurement B is required',document.eCart1_1_ATC_.eCart1_1_MeasureB_Add,0,false,'text');WAValidateRQ(document.eCart1_1_ATC_.eCart1_1_MeasureA_Add,'-Measurement A is required',document.eCart1_1_ATC_.eCart1_1_MeasureA_Add,0,false,'text');WAValidateRQ(document.eCart1_1_ATC_.eCart1_1_Skirt_Add,'-Skirt Length is required',document.eCart1_1_ATC_.eCart1_1_Skirt_Add,0,false,'text');WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,false);return document.MM_returnValue">
the code that looks for the element name:
document.eCart1_1_ATC_.eCart1_1_MeasureB_Add
has the form name wrong. the name is:
name="eCart1_1_ATC_1"
so that code needs to be adjusted to:
document.eCart1_1_ATC_1.eCart1_1_MeasureB_Add