Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Test Chronopost's tracking number before update #31

Open
Klemart3D opened this issue Nov 30, 2015 · 0 comments
Open

Test Chronopost's tracking number before update #31

Klemart3D opened this issue Nov 30, 2015 · 0 comments

Comments

@Klemart3D
Copy link
Contributor

Hi,
Everybody knows it : Prestashop does not allow to change of carrier after order. And sometimes, Prestashop (or customer) don't choose right carrier. But it can't be changed.

In my case, Chronopost was selected in place of Colissimo. And to give at customer the good tracking number, I wrote "colissmo 8L93165536828", well. But tracking number isn't tested by chronopost module during update to see if it's a correct Chronopost's tracking number and give me a log full of errors (like joined file) !

Tracking number is recovered at line 35 in updateTracking.php in "$fb" variable. Is there a way to test if this variable contain a correct chronopost tracking number ? And if not (if contain a space character for exemple), don't try to parse it ?
log-chronopost-tracking-error.txt

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant