Zen Cart | Send Order Email to Email Address Associated to the Zip Code?!?

Hello,
I am trying to set up my zen cart to send a order email to a certain email address that I choose for the associated zip code. I have found the Orders.php file and the send_order_email() function but I’m not sure how to make the code work the way I want. Any help is much appreciated.

Thank you.

I’m not familiar with Zen Cart, I know it’s based of Os-commence. On the orders page, I’m assuming you have a list of customers who bought something and their email address and zip codes listed and you can sort by those column on the orders screen.

If it’s like OsCommerce, you can click on the order then click on edit order status and then send the customer an email and you won’t have to modify anything.

Hello,
What I am trying to do is have Zen Cart send my driver an email based on the zip code of the delivery address. So for an example we get an order for 92627, the driver has an email [email protected]. When he receives the email he can deliver. Then lets say 92626 has driver [email protected], once we receive an order for that zip code him and the main email ([email protected] for records) account will receive the order so he can deliver as soon as possible.

Thank you

Oh that sounds pretty cool, so as soon as an order is placed for a specific zip code, you want to fire off an email to the driver responsible for that zip code.

It sounds like you’re going to need a custom screen to store Driver Emails and the Zipcode(s) they deliver to and on the orders processing screen to automatically send that email.

I think the easiest spot for you to inject your additional code will be right after it sends the customer the email for the order that was place. Then add your logic to send an email to the driver based on the zip-code.

I’m basing this off my experience in osCommerence. I just to go here http://addons.oscommerce.com/ and pick a similar mod I was looking for and enhance it for my needs.

Sponsor our Newsletter | Privacy Policy | Terms of Service