Forums

Calculations in Pre-Order form

quenda 12 Jul, 2011
Hallo!
Sorry for this "stupid" question…😶

I would like to create a simple "Pre-Order" form with a list of articles, about 30 in total.
The Client should be able to select one or more article using checkboxes (next to the article's name) and insert a number in the "quantity" field (each for every article).

Finally at the bottom of the form will be displayed the total cost for the order.

How can do that?

Thank-you!!

ettore
GreyHead 17 Jul, 2011
Hi ettore,

You can create a list of articles in several ways - where is the information kept?

To calculate the total cost you will need to create a little JavaScript; there are several examples here.

Bob
quenda 19 Jul, 2011
Thank you for your answer.
In detail I have 33 products and of course I have the price for each product.
Unfortunately I don't know where to insert all these prices.....🤨 🤨 😟 🤨 🤨

ettore
GreyHead 19 Jul, 2011
Hi ettore,

I would build a little form to let you create and edit product items in a database table. The use ChronoConnectivity in CFv3 (or the DB Multi-record loader in CFv4) with PHP to create a series of checkboxes for display.

Bob
This topic is locked and no more replies can be posted.