BlindingLight Posted February 12, 2008 Posted February 12, 2008 Hello Everybody, I am familiar with OsCommerce, however, I have a dilemma. I need to set up a Fast Food website for this Restaurant chain. They have about 4 Restaurants. The website will have everything they have on their menu. The visitor would have to go online, pick their neighborhood restaurant and place the order. The problem is that since there are 4 restaurants, how can I send the order to the correct Restaurant. Each restaurant would have a different e-mail address. Does somebody have any idea how to do this? :blink: Another question... this is easier. Some items in their menu consist of a meat along with three side choices. How would you set this up? As a product attribute? Thank you very much for your attention, Mr. Blinding Light :P
♥GLWalker Posted February 12, 2008 Posted February 12, 2008 Hello Everybody, I am familiar with OsCommerce, however, I have a dilemma. I need to set up a Fast Food website for this Restaurant chain. They have about 4 Restaurants. The website will have everything they have on their menu. The visitor would have to go online, pick their neighborhood restaurant and place the order. The problem is that since there are 4 restaurants, how can I send the order to the correct Restaurant. Each restaurant would have a different e-mail address. Does somebody have any idea how to do this? :blink: Another question... this is easier. Some items in their menu consist of a meat along with three side choices. How would you set this up? As a product attribute? Thank you very much for your attention, Mr. Blinding Light :P Why dont you link the location to a seperate site made for each individial location? Each one would probally need there own admin to check out the orders anyway, and try using product option type features for the choices. Follow the community build: BS3 to osCommerce Responsive from the Get Go! Check out the new construction: Admin Gone to Total BS!
BlindingLight Posted February 13, 2008 Author Posted February 13, 2008 Why dont you link the location to a seperate site made for each individial location? Each one would probally need there own admin to check out the orders anyway, and try using product option type features for the choices. Thanks for the reply! I actually thought about that but then the site will end up being very messy. We would need 4 domain names and 4 hosting plans. This also means a change menu will imply tracking 4 different but identical sites.
Mav666 Posted February 13, 2008 Posted February 13, 2008 I have the same thing working for a bakery chain right now - I changed the Flat Shipping module to reflect each individual store and modified it to send an extra confirmation to the individual email address that goes with the store. If you do it that way and figure out how to specify a pickup time and date, let me know since I'm stuck on that one ... Even at a Mensa convention someone is the dumbest person in the room.
BlindingLight Posted February 13, 2008 Author Posted February 13, 2008 I have the same thing working for a bakery chain right now - I changed the Flat Shipping module to reflect each individual store and modified it to send an extra confirmation to the individual email address that goes with the store. If you do it that way and figure out how to specify a pickup time and date, let me know since I'm stuck on that one ... Hello, It sounds interesting. I think what you are saying is that you are kind of rigging the Shipping Method by making it a selection for Pickup Location. Am I correct? I would have to go to the Shipping settings to try to figure out what you are saying. I also wonder if you have actually done this so far or you are just brainstorming... I'll keep in mind about the time and date once I figure out the "Flat Shipping" change first. I am still trying to figure out how I can I make OSCommerce decide which location to e-mail the order once the User has made a location selection. Thanks for replying!
♥FWR Media Posted February 13, 2008 Posted February 13, 2008 Hello Everybody, I am familiar with OsCommerce, however, I have a dilemma. I need to set up a Fast Food website for this Restaurant chain. They have about 4 Restaurants. The website will have everything they have on their menu. The visitor would have to go online, pick their neighborhood restaurant and place the order. The problem is that since there are 4 restaurants, how can I send the order to the correct Restaurant. Each restaurant would have a different e-mail address. Does somebody have any idea how to do this? :blink: Another question... this is easier. Some items in their menu consist of a meat along with three side choices. How would you set this up? As a product attribute? Thank you very much for your attention, Mr. Blinding Light :P Why not have a obligatory restaurant dropdown following clicking checkout which sets the restaurant_id in $_SESSION. Then in checkout success where you find .. tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Something like $restaurant_email = array ( '1' => '[email protected]', '2' => '[email protected]', '3' => '[email protected]', '4' => '[email protected]'); if ( tep_session_is registered('restaurant_id') ) tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, $restaurant_email[$_SESSION['restaurant_id']]); else tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Mav666 Posted February 13, 2008 Posted February 13, 2008 Hello,It sounds interesting. I think what you are saying is that you are kind of rigging the Shipping Method by making it a selection for Pickup Location. Am I correct? I would have to go to the Shipping settings to try to figure out what you are saying. I also wonder if you have actually done this so far or you are just brainstorming... I'll keep in mind about the time and date once I figure out the "Flat Shipping" change first. I am still trying to figure out how I can I make OSCommerce decide which location to e-mail the order once the User has made a location selection. Thanks for replying! Yes, I have a mod working with 4 pickup locations - again, my problem is the date and time more than anything else. You essentially duplicating the same module 4 times, but at the time I couldn't think of anything better, especially since 4 options under the same Pickup module kept defaulting to the first option - I have more gray hair from that one ... never mind ... Even at a Mensa convention someone is the dumbest person in the room.
BlindingLight Posted February 13, 2008 Author Posted February 13, 2008 Interesting I will definitely try this. Why not have a obligatory restaurant dropdown following clicking checkout which sets the restaurant_id in $_SESSION. Then in checkout success where you find .. tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Something like $restaurant_email = array ( '1' => '[email protected]', '2' => '[email protected]', '3' => '[email protected]', '4' => '[email protected]'); if ( tep_session_is registered('restaurant_id') ) tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, $restaurant_email[$_SESSION['restaurant_id']]); else tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
BlindingLight Posted February 18, 2008 Author Posted February 18, 2008 Hello, I am not a hardcore coder >_< but I made my attempt to make this code work. I opened up checkout_process.php and replaced the following code with the one provided: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Parse error: syntax error, unexpected T_STRING in /home/.hoover/edmista/edmista.com/catalog/checkout_process.php on line 278
♥FWR Media Posted February 18, 2008 Posted February 18, 2008 Hello,I am not a hardcore coder >_< but I made my attempt to make this code work. I opened up checkout_process.php and replaced the following code with the one provided: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Parse error: syntax error, unexpected T_STRING in /home/.hoover/edmista/edmista.com/catalog/checkout_process.php on line 278 This was for guidance and suggestion only, I try to help but this does not stretch to writing bespoke full scripts, sorry. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
BlindingLight Posted February 19, 2008 Author Posted February 19, 2008 This was for guidance and suggestion only, I try to help but this does not stretch to writing bespoke full scripts, sorry. :lol: That's okay! I think you did point to the right direction! I will try to get someone more knowledgeable in PHP to look at this and I'll post it back here. Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.