- Posts: 57
- Thank you received: 1
Vendor order status email translation
11 years 11 months ago #178848
by 888
Vendor order status email translation was created by 888
-- HikaShop version -- : 2.3.4
-- HikaMarket version -- : 1.5.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.14-1
hi
ORDER_STATUS_CHANGED_TO="The status of your order No. %s has been changed to %s."
(the last %s is always in English)
Emails to the customer are o.k.
Vendor emails have this problem
-- HikaMarket version -- : 1.5.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.14-1
hi
ORDER_STATUS_CHANGED_TO="The status of your order No. %s has been changed to %s."
(the last %s is always in English)
Emails to the customer are o.k.
Vendor emails have this problem
Please Log in or Create an account to join the conversation.
11 years 11 months ago #178864
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Vendor order status email translation
Hi,
I guess that is link with the language loader in HikaMarket.
In the file "administrator/components/com_hikamarket/classes/mail.php" please replace
By
And also
By
It will translate the order status before the reset of the language.
Regards,
I guess that is link with the language loader in HikaMarket.
In the file "administrator/components/com_hikamarket/classes/mail.php" please replace
Code:
$mail = $shopMailClass->get('order_status_notification', $order);
$mail->hikamarket = true;
$this->loadLocale(false, $locale);
Code:
$mail = $shopMailClass->get('order_status_notification', $order);
$mail->hikamarket = true;
$mail_order_status = hikamarket::orderStatus($order->mail_status);
$this->loadLocale(false, $locale);
And also
Code:
$mail->subject = JText::sprintf($mail->subject, $order->order_number, hikamarket::orderStatus($order->mail_status), HIKASHOP_LIVE);
$ret = $shopMailClass->sendMail($mail);
Code:
$mail->subject = JText::sprintf($mail->subject, $order->order_number, $mail_order_status, HIKASHOP_LIVE);
$ret = $shopMailClass->sendMail($mail);
It will translate the order status before the reset of the language.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.092 seconds