- Posts: 76
- Thank you received: 0
add tracking# in the order status
- zoeatdemetra
-
Topic Author
- Offline
Thank you!
Please Log in or Create an account to join the conversation.
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.
- zoeatdemetra
-
Topic Author
- Offline
- Posts: 76
- Thank you received: 0
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.
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.
Please Log in or Create an account to join the conversation.
- Posts: 1
- Thank you received: 0
<?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.
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.You can create a custom field of the table "order" via the menu Display->custom fields in the business edition for that.
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
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.
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:
Please Log in or Create an account to join the conversation.
- Posts: 158
- Thank you received: 5
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
This is the file "listing" of the view "order" and you want to use such code there:
Please Log in or Create an account to join the conversation.
- Posts: 158
- Thank you received: 5
Please Log in or Create an account to join the conversation.
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.
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
Please Log in or Create an account to join the conversation.
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.
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.
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...
Please Log in or Create an account to join the conversation.