Skip to content

Commit

Permalink
Merge pull request #8 from signifyd/MAG-578
Browse files Browse the repository at this point in the history
MAG-578: Fix to improve fulfillment compatibility
  • Loading branch information
ebanolopes authored Sep 2, 2020
2 parents c690a6d + 9234ab4 commit 4572648
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1377,10 +1377,10 @@ public function getTrackingNumbers(Mage_Sales_Model_Order_Shipment $shipment)

/** @var Mage_Sales_Model_Order_Shipment_Track $tracking */
foreach ($trackingCollection->getItems() as $tracking) {
$number = trim($tracking->getNumber());
$number = trim((string) $tracking->getNumber());

if (empty($number) == false) {
$trackingNumbers[] = $tracking->getNumber();
$trackingNumbers[] = $number;
}
}

Expand Down
19 changes: 10 additions & 9 deletions www/magento/app/code/community/Signifyd/Connect/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@
</signifyd_connect>
</observers>
</order_cancel_after>

<!-- Fulfilment events -->
<sales_order_shipment_track_save_commit_after>
<observers>
<signifyd_connect>
<model>signifyd_connect/observer</model>
<method>salesOrderShipmentTrackSaveCommitAfter</method>
</signifyd_connect>
</observers>
</sales_order_shipment_track_save_commit_after>
</events>
</global>
<crontab>
Expand Down Expand Up @@ -294,15 +304,6 @@
</signifyd_connect>
</observers>
</core_block_abstract_to_html_before>
<!-- Fulfilment events -->
<sales_order_shipment_track_save_commit_after>
<observers>
<signifyd_connect>
<model>signifyd_connect/observer</model>
<method>salesOrderShipmentTrackSaveCommitAfter</method>
</signifyd_connect>
</observers>
</sales_order_shipment_track_save_commit_after>
</events>
</adminhtml>
<default>
Expand Down

0 comments on commit 4572648

Please sign in to comment.