add tracking# in the order status

  • Posts: 76
  • Thank you received: 0
10 years 11 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: 78762
  • Thank you received: 12468
  • MODERATOR
10 years 11 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
10 years 11 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: 78762
  • Thank you received: 12468
  • MODERATOR
10 years 11 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
9 years 3 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: 25767
  • Thank you received: 3977
  • MODERATOR
9 years 3 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: 9 years 3 months ago by Jerome.

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

  • Posts: 158
  • Thank you received: 5
4 years 6 months 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: 78762
  • Thank you received: 12468
  • MODERATOR
4 years 6 months 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
4 years 6 months 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: 25767
  • Thank you received: 3977
  • MODERATOR
4 years 6 months 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
4 years 6 months 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: 78762
  • Thank you received: 12468
  • MODERATOR
4 years 6 months 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
4 years 6 months 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: 78762
  • Thank you received: 12468
  • MODERATOR
4 years 6 months 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
4 years 6 months ago #300455

Thank you, it's now working ok.

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

Time to create page: 0.109 seconds
Powered by Kunena Forum