Vendor order status email translation

  • Posts: 57
  • Thank you received: 1
9 years 5 months ago #178848

-- 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.

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
9 years 5 months ago #178864

Hi,

I guess that is link with the language loader in HikaMarket.
In the file "administrator/components/com_hikamarket/classes/mail.php" please replace

	$mail = $shopMailClass->get('order_status_notification', $order);
	$mail->hikamarket = true;

	$this->loadLocale(false, $locale);
By
	$mail = $shopMailClass->get('order_status_notification', $order);
	$mail->hikamarket = true;

	$mail_order_status = hikamarket::orderStatus($order->mail_status);

	$this->loadLocale(false, $locale);

And also
	$mail->subject = JText::sprintf($mail->subject, $order->order_number, hikamarket::orderStatus($order->mail_status), HIKASHOP_LIVE);
	$ret = $shopMailClass->sendMail($mail);
By
	$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.060 seconds
Powered by Kunena Forum