• Resolved ericsw777

    (@ericsw777)


    I am building an aggregate calculator. Basically users will select an aggregate from a dropdown list. I assign a value to each option but this value is a density value used in a later calculation. The users inserts the area they wish to fill with aggregate and the calculator calculates the cubic meters.

    The calculator then uses the value assigned in the dropdown list to calculate the tonnage needed. How can I use the options from the dropdown list in a separate calculation to calculate a price. Some like IF option 1 were selected multiply the tonnage with x amount.

    Thank you in advance for any help provided

Viewing 1 replies (of 1 total)
  • jacobstylemixthemes

    (@jacobstylemixthemes)

    Hello,

    Thank you for reaching out

    1. 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.
    2. 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.
    3. 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
    4. 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.
    5. 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

Viewing 1 replies (of 1 total)
  • The topic ‘Using dropdown options in calculations’ is closed to new replies.