Field for Delivery Tracking Code

  • Posts: 137
  • Thank you received: 2
13 years 1 week ago #29986

Hi, I would like to automatically include a tracking code in my e-mails that I can send thru hikashop (I have the business version), when I change the status to delivered. I guess I would need to define a new custom field and include it first into the backend order panel and in the e-mail that is sent out, when the I change the order status. The easy part is to create a custom field. Waht table would I need to specifiy? The order table? I am not sure how to include in the backend view but if you can tell me the correct view, I can try to include it somehow in the view. Most difficult is integrating it into the e-mail, as this would be a conditional integration (only if status is changed to deliverd).

Any help and thoughts are appreciated. I hardly believe that I am the only one who wants to include trackign information into the backend and e-mails.

thanks in advance!!!

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30005

Hi,

Indeed, you should create a custom field of the table "order". It will then be included in the shipped confirmation email if you fill it before changing the status and sending the notification to the user. If the field is empty, it won't appear on the notification email. So basically, a custom field is all you need to do.
Note that if you activate it for the front end display so that our users can see it on their order details on the front end, you will see it on the checkout too. But you can easily hide there it with just one line of CSS.

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

  • Posts: 137
  • Thank you received: 2
13 years 1 week ago #30070

nicolas wrote:

Hi,

Indeed, you should create a custom field of the table "order".

This was quite simple to do

It will then be included in the shipped confirmation email if you fill it before changing the status and sending the notification to the user. If the field is empty, it won't appear on the notification email. So basically, a custom field is all you need to do.

This was not working, but I included a variable named as the field name and it showed up quite nicely. Now I will extend with a condition that a whole sentence with the code appears is the variable is not empty.

What I do not like is that I can't input the tracking code right away in the backend view Sales (but that I have ot go into the individual order and then click on edit and then a pop-up opens. It would be great to just have a input field in the table view like the drop-down list for stats changes (but in this case the drop down would not work). Second best solution would be to have a pop-up appearing for the Sales view.

There is one very strange thing I have to mention: for the status change notification e-mail it is not possible to change the translation for the fields in the overwrite section (lower part) of the translation file. Those are not recognized inthe e-mail, only if I overwrite directly in the upper part of the screen, which will be cleared with the next language update.

Last edit: 13 years 1 week ago by nicolas.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30085

Yes, unfortunately, due to some changes in joomla 1.6 and 1.7 in the language file cannot be overridden in the emails sent from the back end.
As you say, you will loose your changes when you update as you have to modify directly the language file.

In that case (and supposing that you don't need to support several languages), you could edit the email via the menu System->Emails and directly change the translation key by your text.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum