VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: carbon on November 04, 2011, 02:38:20 am

Title: [Fixed]Order Status Change Email
Post by: carbon on November 04, 2011, 02:38:20 am
The Order Status Change Email to the customer and the store Admin uses the Order id not the order number (it calls it Order No) - this is confusing for the customer. How can I change it? Example below is for Order number eba214b2

Hi, Shop Customer
the Status of your Order No. 2 has been changed.

New Status is
____________________________________________________________
Confirmed

Also could the "Add Comment" comment be included in this email. We want to send tracking numbers when products are shipped.
Title: Re: Order Status Change Email
Post by: MobiVM on November 04, 2011, 13:22:15 pm
Hello,

You need to change in below file.

administrator/components/com_virtuemart/views/orders/tmpl/mail_raw_uploader.php

Best Regards,
Trivedi kartik.
Title: Re: Order Status Change Email
Post by: carbon on November 08, 2011, 05:09:36 am
Thanks for the reply. Since I'm not a coder could someone please indicate the change that needs to be made. I've had a few goes with no success.
I would like it to show the Order Number, not the Order ID and the comments that were added in the admin.
Title: Re: Order Status Change Email
Post by: MobiVM on November 08, 2011, 07:09:35 am
Hello,

You need to change in below file.

administrator/components/com_virtuemart/views/orders/tmpl/mail_raw_updorder.php

find below code:-

Quote
echo JText::sprintf('COM_VIRTUEMART_ORDER_STATUS_CHANGE_SEND_MSG_1', $this->order->virtuemart_order_id) . "\n"  . "\n";

and replace with

Quote
echo JText::sprintf('COM_VIRTUEMART_ORDER_STATUS_CHANGE_SEND_MSG_1', $this->orderdata['details']['BT']->order_number) . "\n"  . "\n";

Best Regards,
Trivedi kartik.
Title: Re: Order Status Change Email
Post by: alatak on November 08, 2011, 18:10:38 pm
Hi,

Fixed in revision 4617.
Txs for reporting