Email Calculation after Calculation

Hi BrickForge Community,

I’m trying to create an instant quote for my new website. Potential clients answer a few questions and recieve and instant estimate of how much their site may costs - and are encouraged to request a detailed quote with some more information!

The Dev form is here:
https://dev.intcultcom.com?password=communityview (click there first)
Website Design Instant Quote - Korea's Google Experts: ICC

Feel free to take it on a test run!

My questions are:

  1. Can you make a calculation of calculations? Here’s my email forumla:
Hi {{given_name}},

I'm Steve, and I'm here to help you choose the best website option for your business. 

Please keep in mind that this is an estimate for a custom-built website for a small or medium sized business. If you are interested in a cheaper option, please ask us about our template website. 

Here is your basic website estimate:

<h3>Base Website Build Cost:</h3> $2,500

<h3>Custom Designed Pages:</h3> ${{designs_calc}} 
({{designs}} custom designed pages at $390 each)

<h3>Custom Post Types:</h3> ${{cpt_price}} 
({{cpts}} CPTs at $490 each)

<h3>Required Functionality:</h3> {{81d360}}

<h2>Your total cost is ${{total_calc}}</h2>

And here’s the formula for the total cost:

2500 + {cpt_price} + {designs_calc} + {woo}

But I’m getting a zero on the total cost. Is that because you can’t calculate using calculation field results? How could I get that done?

  1. How do I make calculations on Checkbox values?

I put in a “Checkbox Wrapper” element and then I added a “Checkbox” element and put the values as so:
image

How do I make it so that when someone checks the “eCommerce (WooCommerce)” box, that is automatically given a numerical value (price) and then it is added into the email calculations?

Hope that’s clear enough. Let me know if it’s not!

Thank you!

Okay, so I solved Question 2. I was trying to add individual Checkbox values, but all I had to do was put the Checkbox Wrapper value and BOOM, the calculated value for each individual item checked was added to provide the total value of all checked (check)boxes.

So now my only issue is with the Total, which does not seem to be calculated. My forumla is now:

{cpt_calc} + {designs_calc} + {functionality_calc} + 2500

Which results in a number that makes no sense.

I’ve added the calcuations so that they display on the final step, so anyone can see the calculation results without entering their email and clicking submit on the final step.

Is it impossible to do a calcuation using calculations inside the same pro form?

Okay, at this point, I’m wondering if I should change this from a “How to” to a “Bug”:

Website Design Instant Quote - Korea’s Google Experts: ICC — Mozilla Firefox
Watch Video

That is indeed strange. Unfortunately, I have not been able to reproduce this in many tests. You seem to have a negative value creeping into the calculation somewhere.

Could you try to reproduce this in a new, simplified form and tell me the steps to do so?

1 Like

Hi Daniele,

I reproduced it in a new, simplified form. No steps, no design, no actions.

Now the total is worse, as when totaled up they all turn from thousands to singles.

This is the formula:

{functionality__calc}+{cust-pages__calc}+{cpt-pages__calc}

It seems to all work ~ until you cross the 1,000 mark - but sometimes it still works then:
Form Test Page - Korea’s Google Experts: ICC
Watch Video

I sent via a ticket already. Anyone can test the form out here:
https://dev.intcultcom.com/form-test-page/

After clicking here of course:
https://dev.intcultcom.com?password=communityview

… just sent you a new build via DM. Please let me know if that solve the issue :slight_smile:

You fixed it!

Thank you once again @Daniele. I hope this ticket helped improve Bricksforge 3.0.0.

I’ll think I’ll be able to just take this site live with the Beta version for now but I really look forward to the final release of 3.0.0!

1 Like

Nice to hear! You’ve definitely helped to get an important bug fixed! Especially as I couldn’t really reproduce it myself. The problem was due to the “Currency Format” setting depending on the locale set in WordPress.

I’m glad that this was discovered :slight_smile:

PS: I will deploy the final 3.0 later today!

1 Like