Hello,
I am building basically this: You go to a URL, there’s a menu for a Mexican restaurant around the corner. You check off what food you want and as you check the boxes your “shopping cart” fills up in the lower right hand corner with a running total underneath it. When you’re done, you click ‘order’ and it sends a fax to the machine by the cash register with the order.
OK so my very general question is: What’s the best way to do this?
Here’s the more specific question in depth:
Initially I started using jCart for this project. This is very close to what I’m trying to do. One slight difference is that there are going to be extras (i.e. sour cream, avocado) to add to an item so I’ll have subitems. Also I prefer togglable check boxes to submit buttons.
My plan now is to put the menu in an XML file (which I’ve done) so it’s easy to edit items and pricing. The event handling will be done with jQuery (which I have started). I’ve been looking around and I can’t find a lot about rendering XML in CodeIgniter. I also noticed that jCart appears to submit a form every time you add an item, and I don’t see why everything prior to checkout can’t be done strictly with javascript. I don’t even know where to start with the fax part but I suppose I’ll cross that bridge when I get there.
So my main questions are: 1) Am I going about this the right way? 2) Is there a decent resource for using simple XML with CodeIgniter? 3) Do you know of anyone who’s already built a plugin or plugins to help with what I’m trying to do, or any element of it (i.e. real-time total calculator w. tax)? 4) Any tips on the fax thing? I’m thinking just sending the order through smtp through an email-to-fax program.
Thanks a million if you can point me in the right direction with regards to any of these questions.
