Hello,
Thank you for reaching out
- Assigning Values to Dropdown Options: When you create your dropdown list for the aggregate types, you can assign a unique density value to each option. This value will be used in the calculation to determine the volume to tonnage conversion.
- Calculating the Volume: Once the user inputs the area they wish to fill, you can calculate the cubic meters required by using the dimensions provided by the user. This part seems straightforward in your description.
- Converting Volume to Tonnage: Use the density value assigned to the selected aggregate type from the dropdown list to convert the calculated volume (in cubic meters) to tonnage. This could be done using a formula like:Tonnage=Volume×Density ValueTonnage=Volume×Density Value
- Calculating the Price Based on Selection: To calculate the price based on the selected aggregate type, you can use conditional logic (like the IF statement you mentioned). Each aggregate type will have a specific price per ton, which you can define in your calculator’s logic. For example:
- If option 1 is selected, multiply the tonnage by price X.
- If option 2 is selected, multiply the tonnage by price Y.
This can be set up in the calculator settings where you define the logic and actions based on the selected dropdown option.
- Implementing Conditional Logic: Depending on the cost calculator builder plugin you’re using, you should be able to set up this conditional logic directly within the plugin’s interface. Look for features or sections in the plugin where you can define “Conditional Logic” or “Calculations” based on form inputs. Here, you can set up different scenarios based on the dropdown selection and define specific actions (like multiplying the tonnage by a certain amount) for each scenario.
Kindly note all these recommendations go to the Cost Calculator Builder PRO version (which is why only conditional logic and custom formulas are available for the Cost Calculator Pro version) and if you purchased the?Cost Calculator PRO plugin, then DO NOT create support topics in these forums. You are eligible to get premium support through our Ticket System on our support website.
Please note that no author is allowed to support commercial products in www.ads-software.com forums.
https://www.ads-software.com/support/guidelines/#do-not-post-about-commercial-products
To contact us, simply use the Create a Ticket button in the Cost Calculator > Contact Us from the WordPress dashboard menu (when the PRO plugin is active). Or you can use this direct link.
If you have difficulties with activating your license, we have a step-by-step guide on?How to activate plugin support.
I hope this helps you set up your aggregate calculator as intended! If you have any more questions or need further assistance with specific steps or features of our plugin, please don’t hesitate to create a support ticket on our platform
Best regards,
Jacob, Support Team