add tracking# in the order status

  • Posts: 76
  • Thank you received: 0
12 years 6 months ago #54993

Is there any way to add the tracking# when user click into their account to check their order status. I didn't see there is an option that I can add a column to the customer order view.

Thank you!

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
12 years 6 months ago #55046

You can create a custom field of the table "order" via the menu Display->custom fields in the business edition for that.
Make sure that you keep it unpublished in the front end so that the users don't see it during the checkout.
That will allow you to enter your tracking number for the order.

Then, you can edit the file "show" of the view "order" of the front end via the menu Display->Views and add such code in order to display it:
<?php echo 'Tracking number: '.$this->element->COLUMN_NAME; ?>

where COLUMN_NAME is the column name of your custom field.

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

  • Posts: 76
  • Thank you received: 0
12 years 6 months ago #55056

Nicolas,

Thanks for the instruction. I got the tracking number field at the back end now. But it's too much a manual process to type in the tracking number and get it linked to the freight company's website when sending this message to notify customer, so my questions:

1.Where can I modify the notification message template that is sent to customer on each step of the order status?

2.Is there a way to integrate the shipping status with shipping company(i am using truck freight broker),meaning when i book the shipment with the broker,the tracking number with the shipping status will automatically link back and appears in the order status and when I send the "shipped" status to customer,this tracking#(with link to the shipping status) is also automatically included in the message.

Please advise how can I do that? Thanks!

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
12 years 6 months ago #55106

1. You can edit the order status notification via the menu System->Emails.

2. If your broker had a web service for that, it would be possible to develop a plugin to do that. Otherwise, there is no solution for that.

The following user(s) said Thank You: odaio

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

  • Posts: 1
  • Thank you received: 0
10 years 10 months ago #142894

Is it not applicable for Starter edition ?

<?php echo 'Tracking number: '.$this->element->COLUMN_NAME; ?>

I created a custom field, and edited the show of the order. but I get only the text "Tracking number" but the custom field data is not shown.

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
10 years 10 months ago #142933

Hi,

You can create a custom field of the table "order" via the menu Display->custom fields in the business edition for that.

If you have the start edition, you can't create the custom field for the table order. So, it can't work, like Nicolas said in his message.

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.
Last edit: 10 years 10 months ago by Jerome.

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

  • Posts: 158
  • Thank you received: 5
6 years 1 month ago #300334

Sorry to drag this old thread up but I can't find anything more relevant.

I've added the back-end coding and it all works OK, but how do I get it to display on the front-end order control panel please.

Also, I have added this line to the order notifcation email ...
<p><?php echo 'Tracking number: '.$this->element->trackingnumber; ?></p>
but it only shows the text Tracking number: and not the actual number after it?

Thanks for your help.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
6 years 1 month ago #300339

Hi,

In the emails, you don't need any PHP. You can use a tag like that: {VAR:order.trackingnumber}

On the control panel's "your last orders" area, you can use such code:

<?php echo  'Tracking number: '.$order->trackingnumber; ?>
in the "cpanel_orders.php view file.

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

  • Posts: 158
  • Thank you received: 5
6 years 1 month ago #300356

Thanks Nicolas, I have added the email code ok but can't find the cpanel_orders file?

Attachments:

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
6 years 1 month ago #300357

Hello,

It should be because you're not up-to-date with HikaShop 4

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: 158
  • Thank you received: 5
6 years 1 month ago #300376

Ah, that would explain it. I can't upgrade yet as I'm migrating data over from an existing Hikashop site.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
6 years 1 month ago #300382

Hi,

Note that the listing of the orders on the control panel of the frontend is only available with HikaShop 4.
So since you're not using it, you don't have that interface. So I don't know what area you're talking about when you say that you want to add it to the "front-end order control panel".
Please provide a screenshot of the page so that we can have a better understanding of what you want and we can then answer you.

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

  • Posts: 158
  • Thank you received: 5
6 years 1 month ago #300406

This is the table I'm trying to add the tracking number coumn and data to.

Attachments:

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
6 years 1 month ago #300409

Hi,

This is the file "listing" of the view "order" and you want to use such code there:

<?php echo  'Tracking number: '.$row->trackingnumber; ?>

The following user(s) said Thank You: serbofleconcepts

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

  • Posts: 158
  • Thank you received: 5
6 years 1 month ago #300455

Thank you, it's now working ok.

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

  • Posts: 39
  • Thank you received: 2
  • Hikaserial Standard Hikashop Business
1 year 2 weeks ago #357354

Is there a way to get the tracking number listed as an option in the columns that are present on...

order / listing.php

...in the backend?

We are running version 5.0.2 of Hikashop.

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

  • Posts: 4764
  • Thank you received: 647
  • MODERATOR
1 year 2 weeks ago #357356

Hello,

We aren't sure to fully understand the context and your needs, can you precise :
- The origin of your Track Number? Coming from another plugin? From a custom field or something?
- Can you confirm that you have the columns dropdown just below the Filter and work as expected ?



Awaiting your elements to progress on your subject.
regards

Last edit: 1 year 2 weeks ago by Philip.

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

  • Posts: 39
  • Thank you received: 2
  • Hikaserial Standard Hikashop Business
1 year 1 week ago #357535

We have both the UPS and the USPS (United States Postal Service) shipping plugins installed and configured. We have a field that is in the "Additional Information" area of each order that has the label "tracking number". I believe the field is being automatically populated by the USPS shipping plugin.

That is the value that they want to display in the orders list view.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
1 year 1 week ago #357537

Hi,

The field is probably a custom field. Go in the menu Display>Custom fields and you should find it there.
Edit it and check the display settings. One of them is for the orders listing in the backend. activate it and that's it.

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

  • Posts: 39
  • Thank you received: 2
  • Hikaserial Standard Hikashop Business
11 months 2 weeks ago #358026

Hi Nicholas,

You are correct on everything. It is a custom field. I am able to toggle the display of a similar custom field in the order list view, but not the one for tracking number for some reason...

Attachments:

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

Time to create page: 0.121 seconds
Powered by Kunena Forum