Hi,
I am currently helping to create a script for a restaurant's online delivery service.
The restaurant has a minimum order of £10 and i want to incorporate this into the script
e.g. a customer's order comes up at £8 and clicks submit, a message box displays "Minimum order is £10 please increase your order". and the order will not go through.
But once order is £10 or above, the order will go through.
However, my colleague and I cannot figure out how to put this in.
Please make answer as simple as possible and some examples
Please help,
Desperate Coder.
(can upload code if required)
I am confused why you make client side validation. It can be skipped too simple and incorrect data will be submitted to server. May be read my article about validation issue. it is PHP based but I use the same in .Net applications as well. Described way can be implemented with any language because it is based on programming patterns.
Menu
Categories
>
Pasta
>
Extras
>
Salads
>
Desserts
Fayrouz Preston Mediterranean Lebanese Restaurant
134 Church Street, Preston, PR1
Opening Times: Tue-Sun: 5:00pm - 10:30pm
You can now have top quality, healthy food delivered to your door
£10.00 Min order
Vine Leaves
(Vine leaves stuffed with rice, onions, parsley, topped with lemon juice, olive oil, served with pitta bread (6pce))
£2.90
Jaweneh
(Chicken wings marinated in lemon juice, garlic, spices, grilled on charcoal, served with
pita bread (4pcs))
£3.00
Stuffed Garlic Mushrooms
(Breaded stuffed garlic mushrooms)
£3.20
Garlic Mushrooms With Cheese
(Mushrooms in garlic butter, covered with melted cheese)
£3.20
Kibeh Makli
(Crushed wheat moistened and shaped, stuffed with
minced lamb, onions, spices, and deep fried (3pcs))
£4.00
Lahembajeen
(11" Bread base, topped with minced lamb, onions,
pomegranate sauce, pine kernels, oven baked)
£4.90
Homous Shawarma
(Homous dip topped with slices of grilled lamb, garnished with parsley, and pine kernels served with
pita bread)
£4.90
Pate Della Casa
(A homemade pate served with
pita bread)
£4.95
Falafel
(Fried spheres of chickpeas and herb mix served with
pita bread and dips)
£3.95
Homous
(Chickpea dip, served with olive oil and
pita bread)
£2.95
BabaGannooj
(Aubergine and
tahineh dip served with olive oil and pita bread)
£2.95
Mixed Olives
(Mixed olives marinated with herbs, served with olive oil and
pita bread)
£2.95
Torpedo Prawns
(Breaded king prawns, served with a sweet
chilli dip)
£4.95
Prawn Platter
(With marie rose sauce)
£4.95
Focaccia Garlic Bread
(Garlic bread with tomato)
£2.95
Mexican Garlic Bread
(With tomato, onion &
chillies)
£3.50
Plain Garlic Bread
£2.50
Garlic Bread With Cheese
£3.50
Main Courses
Chicken Kebab
(Chunks of chicken breast, marinated in white sauce, garlic, herbs, grilled over charcoal, layered on fresh onions and summak, served with sauces)
£5.90
Shish Kebab
(Chunks of tender lamb marinated in spices, grilled over charcoal, layered on fresh onions & summak, seved with chilli sauce)
£5.90
Kofta Bil Sanieh
(Minced lamb with onion, parsley,
pomegranate juice and herbs, served with salad,, lemon and hot bread)
£5.90
Kofta
(Minced lamb, mixed with onions, parsley, and spices, skewered and grilled, over charcoal, layered on fresh onions and summak, served with chilli sauce)
£4.90
Half Chicken
(Charcoal grilled, garlic, lemon and herb marinated chicken, served with side salad and
pita bread)
£5.90
Full Chicken
£7.90
Mixed Grill Kebab
(Lamb chop, diced lamb and diced chicken on a skewer and kofta kebab, served with a garnish and chipped potatoes)
£8.90
Beef Shawarma
(Slices of meat marinated with spices & special sauce, grilled on an upright skewer, layered on fresh onions and summak served with tahineh sauce)
£5.90
Chicken Shawarma
(Slices of meat marinated with spices & special sauce, grilled on an upright skewer, layered on fresh onions and summak served with tahineh sauce)
£5.90
Fasoulieh
(Fresh runner beans cooked with chunks of tender lamb and onions in tomato sauce, garlic, and spices, served with rice)
£5.90
Cous Cous
(Moroccan spiced lamb and vegetables cooked in tomato sauce)
£5.90
Mediterranean Spinach
(Whole leaves of fresh spinach with onion, coriander, garlic and herbs, cooked with lamb mice balls, served with rice & fresh lemon juice)
£6.90
Beef Stroganoff
(Strips of fillet steak in a sauce of
French mustard, onions, mushrooms, and cream, served either on a bed of rice)
£6.90
Chicken Stroganoff
(Strips chicken in a sauce of
French mustard, onions, mushrooms, and cream, served either on a bed of rice)
£6.90
Mushroom Stroganoff
(Mushrooms in a sauce of
French mustard, onions, mushrooms, and cream, served either on a bed of rice)
£6.90
Chicken Fajitas
(Strips of cajun spiced chicken, peppers and onion, served on a sizzling hot skillet accompanied with flour tortillas and salsa)
£5.90
Chicken Kabbsa
(Seasoned rice topped with pines nuts and almonds, served with salad and tzikki dip.)
£5.90
Lamb Kabbsa
(Seasoned rice topped with pines nuts and almonds, served with salad and tzikki dip.)
£5.90
Beef Kabbsa
(Seasoned rice topped with pines nuts and almonds, served with salad and tzikki dip.)
£5.90
Prawn Kabbsa
(Seasoned rice topped with pines nuts and almonds, served with salad and tzikki dip.)
£5.90
Pizza 11"
Meat Feast Pizza
£6.95
Margheritta Pizza
(mozzarella cheese, herbs & tomato)
£4.95
Roma Pizza
(Tuna, anchovies, olives and garlic)
£6.75
Pepperoni Pizza
(Spicy
Italian sausage)
£6.75
Vegetarian Pizza
£6.25
Pescatora Pizza
(Seafood)
£6.95
Chefs Special
£6.95
Chicken Chilli Pizza
(Nice & spicy)
£6.95
Pasta
Spaghetti Bolognese
£4.95
Tortellini
(Spinach and ricotta filled pasta & mushrooms in a light parmesan cheese sauce)
£4.95
Spaghetti and Meatballs
£4.95
Lasagne
£5.95
Childrens Menu
Children's Spaghetti Bolognese
£3.95
Children's Spaghetti and Meatballs
£3.95
Children's Popcorn Chicken And Fries
£3.95
Children's Chicken Nuggets And Fries
£3.95
Children's Falafel and Fries
£3.95
Extras
French Fries
£1.49
Potato Wedges
£1.95
Onion Rings
£1.95
Garlic Sauce
£0.95
Chilli Sauce
£0.95
Mint Sauce
£0.95
Tzikki Dip
£0.95
Bread
£0.50
Salads
Fatoosh
(Mediterranean salad with crispy bread and
pomegranate sauce)
£3.95
Feta Salad
(Greek salad with
feta cheese)
£3.95
Tabooli
(Finely chopped parsley, onion and tomato with
bulgur wheat and seasoned with lemon)
£3.95
Spinach Salad
£3.95
Desserts
Ice Cream
Blackberry £2.50
Tuti Fruiti £2.50
Chocolate £2.50
Chocolate Fudge Cake
£2.50
Tiramisu
£2.50
ORDER TOTAL
£
Delivery Details
Name
Address
Area
Full Postcode
Mobile
Email
Any requests that
the
kitchen should know about?
Info regarding pizza toppings,
kebabs, etc go here