Skip to main content

Vendor order status email translation

More
11 years 10 months ago #178848 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

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #178864 by Jerome
Hi,

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);
By
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);
By
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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.203 seconds
Powered by Kunena Forum