Contributions
Multiple Order Status Change Emails
The standard order status change notification in OSC2.2 sends always the same email and just changes a few fields. This is not flexible enough in many cases as some particular statuses might need completely different email text. For example a status "waiting for bank transfer" might need an email indicating all the bank account details.
This module provides exactly that additional functionality.
Now in the order status configuration in admin, it is possible to assign an email format file to each order status. The email format file will contain the HTML to send. This file can also contain PHP variables so the mail can have "live" data. You can also have different email formats for different languages.
Additionally, if no format file is defined the standard OSC email for status change is used.
The package contains the needed changes needed to the standard OSC files and a sample email format file. The format files should be created on adminincludeslanguages<your_language>
I hope you enjoy it!
Jorge Mirat
Expand All / Collapse All
I add here a modification to make the contribution compatible with the Purchase Without Account contribution which modifies also the same area about sending emails to customers (admin/orders.php)
The file added is a preliminar version until gets tested by people that have the pwa contribution installed (I don't have it)
I have created a support forum on:
http://forums.oscommerce.com/index.php?showtopic=184898
The attached file is the same as the previous post.
Due to public demand I have updated the installation instructions to use the format of "Search for x replace with y".
I have also added a sample email format file for english as well as spanish including the file structure (->admin->includes->languages->english)
I hope it is easier now.
If you do not like the method used in the instructions to make the installation, I have added to the package a small file giving some clarifications.
In any case, I'll prepare better documentation when I have some spare time...
(The package is the same as before but just with on more instructions file)
In my previous package I missed the sql to create the required new field on table order_status, so I'm adding it now.
The standard order status change notification in OSC2.2 sends always the same email and just changes a few fields. This is not flexible enough in many cases as some particular statuses might need completely different email text. For example a status "waiting for bank transfer" might need an email indicating all the bank account details.
This module provides exactly that additional functionality.
Now in the order status configuration in admin, it is possible to assign an email format file to each order status. The email format file will contain the HTML to send. This file can also contain PHP variables so the mail can have "live" data. You can also have different email formats for different languages.
Additionally, if no format file is defined the standard OSC email for status change is used.
The package contains the needed changes needed to the standard OSC files and a sample email format file. The format files should be created on adminincludeslanguages<your_language>
I hope you enjoy it!
Jorge Mirat
Note: Contributions are used at own risk.