Okay
  Public Ticket #1662900
form set up
Closed

Comments

  • Lauren Edvalson started the conversation

    We are struggling with how to make this work.

    The way we bid jobs is based on square feet of the home. So if a client says their home is 1,300 square feet we charge .12 per sq ft. We got that part set up just fine. The next thing we want the to do is be able to choose add on services. Example, a deep clean on the refrigerator interior would be an additional cost. So we want them to be able to choose YES or no for this service. If they choose YES, it will auto add one cent per square foot to the estimate. We don't want the customer to see that the cost is calculated by the square foot on the front end. We just want them to see yes or no and have the service increase the total. 

  •  656
    Support Agent replied

    Hi Lauren,

    Thanks for reaching out to us.

    In order to have this calculation, you'd need to use Cost Calculator group element and define it with pseudo code.

    Once you drag elements to the group, the pseudo code would look something like this:

    square_feet = $1;
    deep_clean = $2;
    if ((square_feet == 1300) && (deep_clean == 1)) final = (square_feet * 12) + (deep_clean * square_feet);
    return final;

    Please note that this is just an example, and you need to further customize the code according to your needs.

    You can find additional info on Cost Calculator group in our online documentation.

    Let us know if you need additional help.

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!

  • Lauren Edvalson replied

    Question, Is there one code that will cover all variations, like if the square feet ranges from 800 to 4,000 square feet do I need to write a code for every variation? 

  •  656
    Support Agent replied

    Hi Lauren,

    Yes, it is possible to include a specific range that will then have total calculated in the same way. For example:

    square_feet = $1;
    deep_clean = $2;
    if ((square_feet >= 800) && (square_feet <= 4000) && (deep_clean == 1)) final = (square_feet * 12) + (deep_clean * square_feet);
    return final;
    

    Let us know if you need additional help.

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!

  • Lauren Edvalson replied

    Can I just hire someone from your company to set this up for me? 

  •  656
    Support Agent replied

    Hi Lauren,

    Unfortunately neither we nor our external associates are available for custom work. Other than that we do not have a recommendation. Maybe you can try Envato Studio: https://studio.envato.com/.

    Thank you for understanding.

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!