FYI help will be needed

Been years since I did any php script. So please forgive me for approaching my needs small steps at a time.
Need to sort of “build a pizza” script. working with mysql. I like to build code using the simplest example.
Example is selection of two sizes pizza followed up with selection of up to 3 toppings subtotal price of each pizza needed and total order price is displayed. Drop down topping with price for each topping?
Pizza hut online ordering gave me the idea with left/right/whole additions. Of course I need to build a electronic product with options. I will be posting bit by bit but I am posting now to see if I can generate interest to help me. Thanks for any interest.

Well, since you posted in the “beginners” section, I will give you a quick recap of things you will need.
When you start getting your code together, please create new posts that pertain to what your problem is.
(So, if you have problems with drop-down “select” tags, use a subject such as “need help with drop-downs”.
This will get members with experience in that code item to get you an answer faster…)

So, first, you will need a the HTML layout that will include your drop-down select tags. These are usually
“loaded” using MySQL database data. You would create a database that contains tables that include items
such as “Toppings” and “SideDishes” or whatever. Then, all of the toppings would be loaded into the select’s
“Option” tags. In this manner, if you add a topping, you change the database and the site would add the new
topping automatically without any website changes. You would create a page to allow changing, adding and
deleting toppings. This would become your ADMIN page and would require a userid and password.

You could do this without using MySQL and just hard-code the site and drop-down’s. But, I find it easier with
a database. (Depends if you are planning on selling this code or putting it into a business.)

There are many many ways to allow the toppings to be selected. For a simple (simple meaning USEFUL!),
you can use check-boxes instead of dropdowns. A list of check-boxes down one side with all of the possible
toppings is a nice way to go. Once the selections are made, the “Add Pizza to Order” button would post out
to a second PHP file that would read all of the check-boxes or drop-downs and process them by adding them
including the prices to the sales “cart”. Of course, with an option to add further items.

Now, if this project is planned for a business or if you are planning on selling it in the further, there are tons of
templates already on the internet for pizza shops. Most have all of the things you would want already in place.
One that you might like to look at is “Prestashop”. It is free in it’s basic version. It is customizable and has
all of the payment options such as Paypal. I am not suggesting you stop programming and use this, but, I did
find this product very interest. You can also do a Google search for “html free pizza template” and you will
locate many that are ready to go. Just change the graphics and text for your use.

Well, just a few starting ideas… Ask away once you get some code working… We can help… Good luck.

Sponsor our Newsletter | Privacy Policy | Terms of Service