ginboomerang Posted December 11, 2011 Share Posted December 11, 2011 Hi, Got a new shop running and changed an order status to 'Dispatched' expecting an email to be sent to the customer to inform them. Checked in Back Office > Tools>Logs and saw this. Error - The following e-mail template is missing: /home/catrunor/public_html/mails/en/dispatched.txt So I downloaded Prestashop again hoping to replace the missing file (s) but looking in Mails > en Folder there is no 'Dispatched' file there. What am I missing or doing wrong ? Thanks for your help. Mark Link to comment Share on other sites More sharing options...
doekia Posted December 11, 2011 Share Posted December 11, 2011 Hi, I don't seen the "dispatched" status in the standard Prestashop (unless I'm blind ..), this is certainly a status created by you or the shop owner. Whatever the problem is if you need a mail to be sent when the order status is delivered, just create the 2 files, delived.txt and delivered.html (use any other file as example). Best, (d)oekia Link to comment Share on other sites More sharing options...
ginboomerang Posted December 11, 2011 Author Share Posted December 11, 2011 Hi doekia, Thankyou for your reply. Now I'm puzzled, I own and created the shop. I'll do as you say and report back. Mark Link to comment Share on other sites More sharing options...
ginboomerang Posted December 11, 2011 Author Share Posted December 11, 2011 Okay, I didn't add the 2 files as suggested. Checking the order status 'Dispatched' there is a truck icon showing also which tells me I didn't create the 'Dispatched' status, also the order status has changed colour. I've checked my mail templates against a fresh download of Prestashop and the Mail > en templates are identical. Is 'Dispatched' a standard order status ? Why is my email template missing and not getting sent to the customer ? Thank, Mark Link to comment Share on other sites More sharing options...
doekia Posted December 11, 2011 Share Posted December 11, 2011 I've just double check on all available version of Prestashop. dispatched does no exists. Did you rename a regular status as "dispatched"? if that is the case, rename the according files in emails. Regular status are as follow: (1, 1, 'Awaiting cheque payment', 'cheque'), (2, 1, 'Payment accepted', 'payment'), (3, 1, 'Preparation in progress', 'preparation'), (4, 1, 'Shipped', 'shipped'), (5, 1, 'Delivered', ''), (6, 1, 'Canceled', 'order_canceled'), (7, 1, 'Refund', 'refund'), (8, 1, 'Payment error', 'payment_error'), (9, 1, 'On backorder', 'outofstock'), (10, 1, 'Awaiting bank wire payment', 'bankwire'), (11, 1, 'Awaiting PayPal payment', ''), (12, 1, 'Payment remotely accepted', ''), My guess is you have renamed shipped in dispatched. BTW, the 3rd colum in this table is the status name, the 4th is the mail template name. Hope this helps Best, (d)oekia Link to comment Share on other sites More sharing options...
ginboomerang Posted December 12, 2011 Author Share Posted December 12, 2011 I have 'in-transit' files, it could be these that are showing as 'dispatched' on order status, my guess is that I have to change something to make order status show as 'in-transit' to send the email templates in_transit ? Where do I change as the files in my root directory are already called in-transit, is it a translation thing ? Thanks Mark Link to comment Share on other sites More sharing options...
doekia Posted December 12, 2011 Share Posted December 12, 2011 In transit does not exist per say in Prestashop, I am guessing now that you have some carrier module that just add this to your Prestashop. My question is more why do you want to send a message to the customer for this extra status? Let me explain: When the order get created customer receive a message When the order get paid, customer receive a message When the order is ready (shipped) customer receive a message When you populate the tracking number, customer receive a message Those are standard Prestashop behaviour. Are you sure you want yet another message when the carrier is transiting the parcel? If yes just verify what is specified as template for this new status and create appropriate file (.txt & .html) within your mail folder. Regards, (d)oekia Link to comment Share on other sites More sharing options...
ginboomerang Posted December 12, 2011 Author Share Posted December 12, 2011 Thankyou for your reply. The in transit files are standard in Prestashop, I was thinking that this was the template that had to be used to add the parcel tracking number, and the procedure was Shipping then In Transit (with tracking number)? Maybe not but thank you for your time and help, it's appreciated. Link to comment Share on other sites More sharing options...
doekia Posted December 12, 2011 Share Posted December 12, 2011 Sorry, let me rephrase, I was confusing .... in_transit exists as a template, but not as a visible status. It is invoked internaly by the tab AdminOrders. Other (what I call regular) statuses are hold into the tables ps_order_state and ps_order_state_lang. They can be manipulated in term of name and template thru the BO. Order > Statuses, , edit, use the combo to set which template it belong to, color, name, .... If this list exhibit the "Dispatched" mentionned in your question it is certainly attached to a new status - ie: not from the off-the-shelf Prestashop. If it is not in this list, I suggest you do a recursive search for /'dispatched'/ within you installation. Do not search for the slashes, but do search for the quotes, either single or double. You'll then find which code try to run the missing template. It may well be that it point to a module that for permission reason was not able to create the template during its installation process (or a bug or god knows what... ). Best, (d)oekia Link to comment Share on other sites More sharing options...
ginboomerang Posted December 15, 2011 Author Share Posted December 15, 2011 doekia, Thankyou for your help, all is clear to me now, when you explained that In_Transit is invoked by AdminOrders things fell into place. I'm happy so I supposed this is Solved. Mark Link to comment Share on other sites More sharing options...
doekia Posted December 15, 2011 Share Posted December 15, 2011 I'm happy so I supposed this is Solved. Mark it with [solved] by editing the title of the first entry in the topic Best, Link to comment Share on other sites More sharing options...
Recommended Posts