Missing Field for SHipment Tracking Code

  • Posts: 137
  • Thank you received: 2
8 years 6 months ago #256356

I do not understand why Hikashop is not providing a field to track the shipping code and to include it in the standard customer e-mails. It is business as usual for any webshop to provide tracking IDs when delivering items via a carrier like UPS, DHL, or others.

Hikashop is not providing any standard solution to this very common issue and frankly I do not understand why.

Mods: Sorry... put it into the wrong category... pls move to Shipping methods

Last edit: 8 years 6 months ago by 1fcb.

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 6 months ago #256397

Hi,

You can easily add one by creating a custom field of the table "order" and of the type "text" via the menu Display>Custom fields.

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

  • Posts: 137
  • Thank you received: 2
8 years 6 months ago #256456

Hi Nicolas, yes. I have defined this field quite a while ago. However I can't include it automatically into status change e-mails. So the customer field is of little use, if I can't display it automatically in my e-mails. This is the core of my issue. A less severe issue is that in the Orders view, this custom field is not displayed.

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 6 months ago #256495

Hi,

The field content is displayed automatically in the email notifications unless:
- You deactivated the corresponding display setting of the custom field
- You've an old version of the code of the email which doesn't include the display of custom order fields. You can check that via the menu System>Emails.
- There is no value for it in the order

The last point can happen because of a bug. Unfortunately, you didn't provide a link to the website nor the version of HikaShop so I can confirm if it could come from that. Make sure that you have the latest version, check that you have the display setting turned on and save the settings of the custom field. Then the value will be in the order.

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

  • Posts: 137
  • Thank you received: 2
8 years 6 months ago #256953

Thank you very much Nicolas. It's working now. I still have one problem though: My order status in the SUBJECT-line auf the e-mails is not translated. It stays in English while all other information is being translated to German. I am using the 2.6. Business Version and it did not help to upgrade to the latest release.

Would you mind to take a look into this as well?

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 6 months ago #256957

Hi,

Go in the menu System>Emails and check the subject of your email. Normally it should be a translation key that you can find in the different translation files of HikaShop that you can edit as explained on this page:
www.hikashop.com/download/languages.html

If you only see the english version of the subject, maybe the translation in the german translation file is in english. Or maybe you've put your text directly in the subject of the email instead of using the translation system.

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

  • Posts: 137
  • Thank you received: 2
8 years 5 months ago #257437

It seems everything is right and all is translated except the subject line:

Override Tranlations read:
ORDER_STATUS_NOTIFICATION_SUBJECT="Der Status Ihrer Bestellung Nr. %s wurde geändert in: %s"
ORDER_STATUS_CHANGED_TO="Der Status Ihrer Bestellung Nr. %s wurde geändert in: %s"
SHIPPED="versandt"
results in:
Der Status Ihrer Bestellung Nr. B5B5A2 wurde geändert in: shipped
or:
Der Status Ihrer Bestellung Nr. B5B5A2 wurde geändert in: confirmed

Funny enough, the order creation e-mail has the subject translated correctly :
ORDER_CREATION_NOTIFICATION_SUBJECT="Ihre Bestellung Nr. %s ist nun %s bei %s"
results in:
Der Status Ihrer Bestellung Nr. B5B5A2 wurde geändert in: bestätigt (bestätigt is the german translation of confirmed)
and:
hre Bestellung Nr. B5B5A2 ist nun Offen bei die-besten-weine-der-welt.de/

So the order status notification email must be the issue. It is on level 2.6.4 and has no modifications by myself. Very strange. And what really confuses me: even when deleting ALL my override translations, still the error occurs and the shipment status is not translated.

Last edit: 8 years 5 months ago by 1fcb.

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 5 months ago #257450

Hi,

We're not able to reproduce the problem.
Please provide a backend access, a FTP access and the instructions to reproduce the issue on your website so that we can investigate, along with a link to this thread:
www.hikashop.com/support/contact-us.html

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

  • Posts: 137
  • Thank you received: 2
8 years 5 months ago #257496

Hi, will do but need an e-mail to assign you the back-end access.

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 5 months ago #257503

Hi,

You can use contact AT hikashop DOT com.

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 5 months ago #257623

Hi,

I've done a test on your website and when I changed the status of my order, the status was correct in the backend and in the email I received:
take.ms/C0JWH
take.ms/ewB4j
I didn't get any English.

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

  • Posts: 137
  • Thank you received: 2
8 years 5 months ago #257671

Hi, I think I know the issue. Which actually is not yet solved but can be circumvented.

My backend default language was English. So the status messages were desiplayed in english and included in the mail in english. After switching my default backend language to German, eveything went fine.

Still, there seems to be the issue that the status information is wrong as soon as I switch my backend language to English again. However it should not have any influence in the translation, right?

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 5 months ago #257712

Hi,

Indeed, you should still see the order status in the language of the rest of the email regardless of your language in the backend.

I wanted to have a look at that issue on your website backend but I'm not able to login there anymore.

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

  • Posts: 137
  • Thank you received: 2
8 years 5 months ago #257734

Hi Nicolas, I re-established the back-end and ftp login.

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

  • Posts: 83930
  • Thank you received: 13586
  • MODERATOR
8 years 5 months ago #258031

Thanks. I was able to find the issue and fix it by changing 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

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

  • Posts: 137
  • Thank you received: 2
8 years 5 months ago #258033

Thanks. Will I need to rewrite the code after each update?

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

  • Posts: 26249
  • Thank you received: 4039
  • MODERATOR
8 years 5 months ago #258034

Hi,

Because Nicolas talked about an "issue" and a "fix" ; it also means that the fix will be include in 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.180 seconds
Powered by Kunena Forum