Page 1 of 1

Order Form Calculation

Posted: Thu Apr 18, 2019 4:21 pm
by GPK5050
Hi...

I'm trying to alter an already existing (and working) order form, but I'm having some issues. The page in question is:

www.carpenters50th/swag2.php

I would like the form to calculate the items ordered. I was able to get the price into the total boxes, but I can't get it to add up in the grand total box. The postage amount appears, but it does not change when the other items are selected.

My format placed in the first total box is:

Condition
Event: Change
Action: Calculate
Target: grandtotal
Expression: Number([polocalc])+Number([tshirtcalc])+Number([capcalc])+Number([programcalc])+Number([ornamentcalc])+Number([coincalc])+Number([postagecalc])

I would also like it to adjust the amount in the box when more than one quantity is selected.

Thank you!

Greg

Re: Order Form Calculation

Posted: Thu Apr 18, 2019 5:16 pm
by Pablo
To be able to help you I need a (stripped) copy of the project file.
Note however that usually for me it will also take a lot of time to figure out what you have done.

Re: Order Form Calculation

Posted: Thu Apr 18, 2019 5:46 pm
by GPK5050
Thank you...

Here is a link to access the file for that page alone:

ftp://us9wt2v7nthz@107.180.47.61/public ... 0Order.wbs

Greg

Re: Order Form Calculation

Posted: Thu Apr 18, 2019 6:22 pm
by Pablo
I'm sorry, I was not able to load the project because of missing extensins.
Can you please make sure the project does not use extensions and remove all non-relevant pages?

Also, I need to know exactly where to look.
I am happy to help you but I cannot spent hours on this.

Re: Order Form Calculation

Posted: Thu Apr 18, 2019 6:36 pm
by GPK5050
Hi...

I cleaned up the file. It should be just one page now...

Let me know...

Thank you!

Greg

ftp://us9wt2v7nthz@107.180.47.61/public ... 0Order.wbs

Re: Order Form Calculation

Posted: Thu Apr 18, 2019 8:25 pm
by Pablo
If you use a checkbox to change the value on an edit box then the browser will not automatically detect that the value has changed.
You will need to trigger a change event:
in the checkbox add a new condition: action -> trigger change, with the target set to the same field as the other conditions of that checkbox.

Re: Order Form Calculation

Posted: Thu Apr 18, 2019 8:37 pm
by GPK5050
Hi Pablo...

That worked! Thank you.

Now, last thing... is there a way for it to change the value based on the quantity chosen in the field?

Thank you so much!

Greg

Re: Order Form Calculation

Posted: Fri Apr 19, 2019 6:27 am
by Pablo
The combobox also supports conditions.

See example 4:
http://wysiwygwebbuilder.com/conditions.html