Where to put coding a validation script for store?

I am pretty new using WordPress and was asked to validate the number of items in the cart for an eCommerce site that lets you “make a pack” in which you have several steps, step 1 is a page in which you select the box, this doesn’t need validation but the next 4 steps do, each step is a new page and each has a different amount of the item that you need to select, what I need is to either disable the hyperlink that says “Next step” until you select the correct amount of items for each step or just display a message when you click with the incorrect amount

Now my question is not code itself but where to put it in WordPress, I checked everything in the WordPress admin part of the site and on the hosting site but can’t find where I am supposed to code the validation for each page.

Read more here:: Where to put coding a validation script for store?

Leave a Reply

Your email address will not be published. Required fields are marked *