emails towards vendor

  • Posts: 96
  • Thank you received: 1
7 years 10 months ago #259817

-- url of the page with the problem -- : netweb3d.com/mauritiusproducts/fr/catego...-bois-cheri-the-noir
-- HikaShop version -- : 2.6.4

Hi,

About the notification emails, I have a strange issue with the emails send towards vendor : a mix of french and english words, and order number not displayed (see attached files).

Can you see what is the problem, please ?

You'll can test with the link netweb3d.com/mauritiusproducts/fr/catego...-bois-cheri-the-noir , and the user = This email address is being protected from spambots. You need JavaScript enabled to view it., password = 'password' and the payment method ePay.

The vendor is St Aubin, and his email is now This email address is being protected from spambots. You need JavaScript enabled to view it.

I provide you the backend access via www.hikashop.com/support/contact-us.html

Best regards.

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 10 months ago #259832

Hi,

This must happen because I suppose that you're changing the status of the order while being logged in English on your website backend.
I've done a test while being logged in French and I don't have the problem:
monosnap.com/file/pFpzY36BqP1uQQXK8XkhDkQkVt9D5F

We've actually added a fix to HikaShop 3.0.0 in order to avoid that.
You need to change the code:

				$user = JFactory::getUser();
				$locale = $user->getParam('language');
				if(empty($locale)) {
					$params   = JComponentHelper::getParams('com_languages');
					$locale = $params->get('site', 'en-GB');
				}
to:
$lang = JFactory::getLanguage();
				$locale = $lang->getTag();
in the file administrator/components/com_hikashop/classes/order.php and that should fix the order status translation in the emails even when your current language is different than the language of the customer.

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

  • Posts: 96
  • Thank you received: 1
7 years 10 months ago #259880

Hi,

It seems that I was not rather clear about the problem : the issues are on emails towards vendor.
In this case, the vendor is ST Aubin, and his email is This email address is being protected from spambots. You need JavaScript enabled to view it. (see attached files).
The problem remains in your tests.

I wanted to change the code as you said, but I haven't exactly the same code in order.php :

if(!empty($order->customer->user_cms_id)) {

$user = JFactory::getUser($order->customer->user_cms_id);

$locale = $user->getParam('language');

if(empty($locale)) {

$locale = $user->getParam('admin_language');

}

}

if(empty($locale)) {

$params = JComponentHelper::getParams('com_languages');

$locale = $params->get('site', 'en-GB');

}

How can I fix this, please ?

Thank's

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #259881

Hi,

Please describe your issue with more details.
I'm afraid that regarding your message and the screenshot, we are not able to understand what you're talking about.
So please be more specific and precise.

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.

  • Posts: 96
  • Thank you received: 1
7 years 10 months ago #259939

In the "creaded" notification, there is a mix french/english.

More important, in the "confirmed" notification, there isn't the order number (see attached files).

Best regards.

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #259941

Hi,

In the file "administrator/components/com_hikamarket/classes/mail.php", please replace

$order->mail_status = @$order->order_status;
By
$order->mail_status = hikamarket::orderStatus(@$order->order_status);
And it will perform the translation of the order status in the mail content.

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.

  • Posts: 96
  • Thank you received: 1
7 years 10 months ago #259970

Hi,

I replaced the code as you said, and the "created" mail is ok, but not the "confirmed" mail.

And the error message "could not instantiate mail function" appears now (see attached file).

So, I don't receive anymore the vendor notifications.

Regards.

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #259972

Hi,

I don't see why the confirmed is not handle ; I'll perform some checks.

About the error on the mall function ; I'm afraid that's not related to HikaMarket or HikaShop.
I let you perform some search in that forum and in Internet search engine for more details.

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.

  • Posts: 96
  • Thank you received: 1
7 years 10 months ago #259993

Hi,

I can give access to the cpanel if you need to do some changes on code and tests.

Thank's for your help.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #260051

Hi,

Thanks but it wouldn't necessary.
We highly prefer to work on our local test websites.
Just after the line you modified previously

$order->mail_status = hikamarket::orderStatus(@$order->order_status);
Please add that content :
		else
			$order->mail_status = hikamarket::orderStatus($order->mail_status);
And it should translate the mail_status variable that some HikaShop plugin could set.

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.

  • Posts: 96
  • Thank you received: 1
7 years 10 months ago #260076

Hi,

I added the lines in mail.php, but same result unfortunately (see attached files).

Regards.

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #260088

Hi,

As you can see in your email, you right have "confirmée" and not "confirmed", right ?!

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.

  • Posts: 96
  • Thank you received: 1
7 years 10 months ago #260181

Hi,

In the "confirmed" email, the order number is always missing.

That is the issue, only on the notification towards Vendor, strangely.

Regards.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #260192

Hi,

It looks like we already have that patch in our side.
In the same file, please modify

		$mail_subject = JText::sprintf($mail->subject, $order->order_number, $order->mail_status, HIKASHOP_LIVE);
to
		$order_number = isset($order->order_number) ? $order->order_number : @$order->old->order_number;
		$mail_subject = JText::sprintf($mail->subject, $order_number, $order->mail_status, HIKASHOP_LIVE);
We are currently working on HikaMarket 1.8.0, we hope to release it soon.
So all recent patches we made will be available.

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.

  • Posts: 96
  • Thank you received: 1
7 years 10 months ago #260249

Hi,

It's better ! The order number appears now in Email subject.

It don't appears in email body, but it's ok for me now.

I let you fix this in the next release.

I thank you very much for your help.

Best regards.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 10 months ago #260251

Hi,

We will fix that for the next release.

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.

Time to create page: 0.090 seconds
Powered by Kunena Forum