Skip to content

Commit

Permalink
Add Tracking link function
Browse files Browse the repository at this point in the history
  • Loading branch information
julescournut committed Dec 9, 2021
1 parent fc08f6f commit 833f6a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ColissimoHomeDelivery.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use Thelia\Model\Message;
use Thelia\Model\MessageQuery;
use Thelia\Model\ModuleQuery;
use Thelia\Model\Order;
use Thelia\Module\AbstractDeliveryModule;
use Thelia\Module\Exception\DeliveryException;

Expand Down Expand Up @@ -350,4 +351,9 @@ public function getDeliveryMode()
{
return "delivery";
}

public static function getTrackingLink(Order $order)
{
return "https://www.laposte.fr/outils/suivre-vos-envois?code=". $order->getDeliveryRef();
}
}
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.0.5</version>
<version>1.0.6</version>
<authors>
<author>
<name>Thelia</name>
Expand Down

0 comments on commit 833f6a9

Please sign in to comment.