This feature is available only with WPC Pro. If you need this feature please consider upgrading to Pro by clicking here -> https://altoswebsolutions.com/cms-plugins/woopricecalculator.
Through this, you can show or hide WPC fields based on the other field values. If you want to enable the conditional logic:
- Create the fields you need in your calculator (instructions by clicking here -> https://altoswebsolutions.com/manual/woo-price-calculator/how-to-create-fields)
- Create your Excel calculator (instructions by clicking here -> https://altoswebsolutions.com/manual/woo-price-calculator/creating-a-calculator-from-a-spreadsheet-file-pro) or your Formula Calculator (instructions by clicking here -> https://altoswebsolutions.com/manual/woo-price-calculator/creating-a-calculator-from-a-mathematical-formula)
- Click on the “Conditional logic” button:
- Enabled: If you want to enable the conditional logic, set it to “Yes”
- Show or Hide fields: In the left box, add the fields you want to show on the product page. In the right box, add the fields that you want to hide on the product page.
- Rules: Select the field you want to show/hide by clicking on “Edit”. In the modal box you can insert the rules that defined the behavior: If the field is shown/hidden and the rule is met, the field will be hidden/shown respectively. You can create complex rules by using this system.
Conditional logic will set “0” on mapped cells when input fields are hidden. This means you need to provide your Excel file a formula to manage it.
Starting from WPC 2.3.6 Conditional Logic supports Output Fields as well. You can now hide/show Output Fields based on the values of Input Fields or you can also hide/show Input Fields based on Output Fields. You can use the same instructions as above to use Output Fields in Conditional Logic.
Video Example: How to use Conditional Logic
Last Updated 20/11/20