Explore the advanced validation rules
You can use two different ways to check field errors using PHP (For example you can add validation to check if Field1 < 100 and Field2 < 100)- Using WooCommerce Hooks, please read the article by clicking here -> https://altoswebsolutions.com/blog/more-validation-using-wooprice-calculator-woocommerce
- Using WPC Hook (Described in this article)
- $params[‘priceRaw‘]: The result price without formatting
- $params[‘product’]: The product
- $params[‘calculator’]: The calculator
- $params[‘data’]: The user data (Some values could contain ID instead of real user values)
- $params[‘userData‘]: The user data without any transformation
- $params[‘outputResults‘]: The output fields