We are trying to get the “minimum order quantity” working again via metafields2 app. We used this before in our old theme version. When a customer is on the product page the quantity selector should default to whatever the moq value is and nothing less. I wrote the code, but for some reason it is not working. Same code that currently works on old theme version. I will attach the code that I updated with for your review. Right now the updated code has been removed.
I know we can use the metafields that are native on our theme under settings - custom data - product metafields, but we would have touch every product again to input the moq value. We have already set all these up under the Metafields2 App. So, we just need to make the code is reading properly.
Can someone please assist by looking at the code?