Jump to content

tracking number on order


Recommended Posts

I think you're not missing anything, PrestaShop is ;-)

As far is I know it is not possible to at a Track&Trace;number, only as a comment to the order.


no it should be possible, I have seen the Add tracking number button on one or two test orders.. but it dosn't show up on all orders.. there must be some kind of flag for showing this or not somewhere..
Link to comment
Share on other sites

The Tracking # input field only show up AFTER you set the order as "Shipped" status. :P

This has been mentioned before here. Seems like a better way would be to add the Tracking # at the same time as setting the "Shipped" status so that the customer can get a notice about shipping with a tracking # too. As it is now, the only way a customer can find the tracking # is to go to his account and poke around and look for it. Or else you have to send him a note manually with the details. Either way, definitely not the best way to handle this IMO.

Link to comment
Share on other sites

The funny thing is that if you add the Trackinnumber and then just click the button next to the Shipping statusmessage again it resends the Shipping e-mail inlcuding the Trackinnumber! :smirk:

How strange is that?

The only thing else is that the link to the track&trace;site goes no-where :-S

Link to comment
Share on other sites

I've been trying to add another Order-status but I cannot get it to behave like the Shipping one.
To me it looks like there is something hardcoded in PS that "opens" the option to add the Trackingnumber once the Shipped status is set.

Is there anyone from the Team who can comment on that please?

Link to comment
Share on other sites

I've been trying to add another Order-status but I cannot get it to behave like the Shipping one.
To me it looks like there is something hardcoded in PS that "opens" the option to add the Trackingnumber once the Shipped status is set.

Is there anyone from the Team who can comment on that please?


No-one has a clue?
Link to comment
Share on other sites

BUMP!

And a workarround :cheese:

Thanks to the member toysstore on PrestaShop Forums Nederland.

Goto tabs/adminorders.php

Arround 405 find:

if ($carrier->url AND $currentState->id == _PS_OS_SHIPPING_)



Change:

if ($carrier->url AND $currentState->id == _PS_OS_PREPARATION_)



Now you can enter the Trackingnumber when the order gets the status Preparation.

When the order gets the status Shipped the trackingnumber gets send.

Link to comment
Share on other sites

This sounds great! Will try it now...

EDIT: It works, but after the order status is changed to Shipped the tracking # can no longer be edited. I would recommend this fix instead:

if ($carrier->url AND ($currentState->id == _PS_OS_PREPARATION_ || $currentState->id == _PS_OS_SHIPPING_))



This code will allow editing of the tracking # before shipping AND after shipping.

Can someone make sure that a fix gets patched into the SVN codebase?? I don't want this to break next time I upgrade, because I'm sure I'll forget how I fixed it by then.

Link to comment
Share on other sites

  • 2 weeks later...

If you want to tracking number field be displayed on orders before you add tracking URL, go to the database (table prefix_carrier) and paste your tracking url into column called "tracking_number" or somehow like that and line with your previously used carrier without tracking url. After that, you will be able to set tracking number on orders, which hadn't this option before.

Link to comment
Share on other sites

  • 1 month later...
  • 11 months later...

heya im using 1.2.5 final and this code dosent seem to be the same as what i have in my /admin/tabs/AdminOrders.php
any suggestions? i do want the tracking number to show up during the preperation step. idealy id like to select shipping and have field open for tracking number, then i can click change and it will email the tracking link with the shipping email.. insted of one for traking number and one for shipping. and if there is no tracking number then the field can be blank to click change for shipping.

Link to comment
Share on other sites

  • 8 months later...
  • 2 months later...

If you want to enalbe editing shipping number, you can edit in Adminorders.php aournd line 582

if ($carrier->url && $order->hasBeenShipped())



to

// if ($carrier->url && $order->hasBeenShipped())



and also around line 69

// if (!$order->hasBeenShipped())
   //        die(Tools::displayError('The shipping number can only be set once the order has been shipped!'));



It is not a clean solution, but i do not have time now to make it better. When you will set the shipping number, then prestashop will send the email, that it is shipped (with shipping number) , but the state remains unchanged.

Also remember to set the carrier URL in the shipping tab.

Link to comment
Share on other sites

  • 3 months later...
If you want to enalbe editing shipping number, you can edit in Adminorders.php aournd line 582

if ($carrier->url && $order->hasBeenShipped())



to

// if ($carrier->url && $order->hasBeenShipped())



and also around line 69

// if (!$order->hasBeenShipped())
   //        die(Tools::displayError('The shipping number can only be set once the order has been shipped!'));



It is not a clean solution, but i do not have time now to make it better. When you will set the shipping number, then prestashop will send the email, that it is shipped (with shipping number) , but the state remains unchanged.

Also remember to set the carrier URL in the shipping tab.



I used this solution for enabling editing shipping number in PS 1.4, entered a shipping number in shipping tab and changed status to shipped and then test it if it works but I receive 'Invalid order' error in FO if I use guest-tracking.php link. I'm using 'YMDnum OrderID numbering' module for order numbering. Is it possible to check tracking information of an order of registered user via guest-tracking.php (if this user is not logged in)? Or where in FO is possible to find a link to tracking information of a registered user??
Link to comment
Share on other sites

  • 4 years later...
×
×
  • Create New...