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

Test Chronopost's tracking number before update #31

@Klemart3D

Description

@Klemart3D

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions