Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-23-2011, 03:18 PM   PM User | #1
Buffmin
Regular Coder

 
Join Date: Aug 2011
Posts: 192
Thanks: 112
Thanked 0 Times in 0 Posts
Buffmin is an unknown quantity at this point
Ordering Pizza Online.....

(I know there have been a few postings regarding this topic). A local pizzeria wants me to create them a website where people can order online. Do you think would be the best way to contact them when an order is placed would be by sending them an email? In which case they would would have to keep checking their email. Or maybe Outlook has an option of proving a "pop-up". Just looking for any ideas. Thanks, Buffmin.
Buffmin is offline   Reply With Quote
Old 11-23-2011, 04:40 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,503
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
I wouldn't go with an email as that relies on them to check it.

Instead, give them a live order page which uses AJAX to update itself (or if you're not familiar with ajax use a meta refresh).

Use a flash animation or background music tag to play an alert sound and you've got the job done. It will poll the site/database for new orders say every 10 seconds and give them an audible warning of a new order.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Users who have thanked tangoforce for this post:
Buffmin (11-23-2011)
Old 11-23-2011, 04:47 PM   PM User | #3
Buffmin
Regular Coder

 
Join Date: Aug 2011
Posts: 192
Thanks: 112
Thanked 0 Times in 0 Posts
Buffmin is an unknown quantity at this point
Ahh. Thanks Tangoforce. Excellent idea! I have touched on ajax, so it will be a good learning experience. Sincerely, Buffmin Perfect!
Buffmin is offline   Reply With Quote
Old 11-23-2011, 05:36 PM   PM User | #4
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
I'll take a large pepperoni please.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 11-23-2011, 06:28 PM   PM User | #5
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,503
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Chicken & bacon is far superior!
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 11-23-2011, 07:10 PM   PM User | #6
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
In addition to the AJAX page you can have your script send an email to an SMS gateway(most carriers support this; something like 1234567890@somedomain.com) that will send them a text message to let them know an order has arrive.
Inigoesdr is offline   Reply With Quote
Users who have thanked Inigoesdr for this post:
Buffmin (11-23-2011)
Old 11-23-2011, 09:53 PM   PM User | #7
devinmaking
Regular Coder

 
Join Date: Oct 2011
Posts: 236
Thanks: 11
Thanked 5 Times in 5 Posts
devinmaking has a little shameless behaviour in the past
Quote:
Originally Posted by Buffmin View Post
(I know there have been a few postings regarding this topic). A local pizzeria wants me to create them a website where people can order online. Do you think would be the best way to contact them when an order is placed would be by sending them an email? In which case they would would have to keep checking their email. Or maybe Outlook has an option of proving a "pop-up". Just looking for any ideas. Thanks, Buffmin.
Ive just built a system similar to this for my local indian which i did for free for experience.

I made it send an email which is sent to their pager which buzzes in their pocket when an order is placed.

I also did a order page which refreshed through javascript every 120 seconds.

I didnt do a sound which now thinking about it would have been a good idea
devinmaking is offline   Reply With Quote
Users who have thanked devinmaking for this post:
Buffmin (11-23-2011)
Old 11-23-2011, 10:19 PM   PM User | #8
Buffmin
Regular Coder

 
Join Date: Aug 2011
Posts: 192
Thanks: 112
Thanked 0 Times in 0 Posts
Buffmin is an unknown quantity at this point
Thanks all. You guys are amazing! Great ideas! I will have to get to work!
Buffmin is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:59 PM.


Advertisement
Log in to turn off these ads.