Skip to content

Commit

Permalink
Merge pull request #2 from webshopapps/SHQ16-1443
Browse files Browse the repository at this point in the history
SHQ16-1443 Tidied up
  • Loading branch information
Karen Baker authored Aug 15, 2016
2 parents 4c2729d + 90b46af commit ca9d6d1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 59 deletions.
36 changes: 18 additions & 18 deletions src/Model/Carrier/AbstractCarrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,36 +191,36 @@ public function getCode($type, $code = '')
),

'tracking_url' => array(
'ddt' => __('http://www.DDT.com/portal/pw/track?trackNumber=#TRACKNUM#'),
'post_danmark' => __('http://www.postdanmark.dk/tracktrace/TrackTrace.do?i_stregkode=#TRACKNUM#&i;_lang=IND'),
'tnt' => __('https://securepostplaza.tntpost.nl/TPGApps/tracktrace/findByBarcodeServlet?BARCODE=#TRACKNUM#&ZIPCODE=#POSTCODE#'),
'dpd_de' => __('http://extranet.dpd.de/cgi-bin/delistrack?pknr=#TRACKNUM#&typ=1&lang=de'),
'dhl_de' => __('http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=#TRACKNUM#'),
'gls' => __('http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/DE03/DE/5001.htm?txtAction=71000&txtQuery=#TRACKNUM#&x=0&y=0'),
'apc' => __('https://emea.netdespatch.com/mba/9116x0/track/?type=1&ref=#TRACKNUM#'),
'dpd_uk' => __('http://www.dpd.co.uk/tracking/trackingSearch.do?search.searchType=0&search.parcelNumber=#TRACKNUM#'),
'dhl_uk' => __('http://www.dhl.co.uk/content/gb/en/express/tracking.shtml?brand=DHL&AWB=#TRACKNUM#'),
'fedex' => __('http://www.fedexuk.net/accounts/QuickTrack.aspx?consignment=#TRACKNUM#'),
'fedex_us' => __('http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=#TRACKNUM#'),
'parcelforce' => __('http://www.parcelforce.com/portal/pw/track?trackNumber=#TRACKNUM#'),
'royal_mail' => __('http://www.royalmail.com/track-trace/?trackNumber=#TRACKNUM#'),
'uk_mail' => __('http://www.business-post.com/scripts/wsisa.dll/ws_quickpod.html?lc_SearchValue=#TRACKNUM#'),
'tnt_uk' => __('http://www.kiosk.tnt.com/webshipper/doTrack.asp?C=#TRACKNUM#&L=EN'),
'usps_usa' => __('https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=#TRACKNUM#'),
'ddt' => 'http://www.DDT.com/portal/pw/track?trackNumber=#TRACKNUM#',
'post_danmark' => 'http://www.postdanmark.dk/tracktrace/TrackTrace.do?i_stregkode=#TRACKNUM#&i;_lang=IND',
'tnt' => 'https://securepostplaza.tntpost.nl/TPGApps/tracktrace/findByBarcodeServlet?BARCODE=#TRACKNUM#&ZIPCODE=#POSTCODE#',
'dpd_de' => 'http://extranet.dpd.de/cgi-bin/delistrack?pknr=#TRACKNUM#&typ=1&lang=de',
'dhl_de' => 'http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=#TRACKNUM#',
'gls' => 'http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/DE03/DE/5001.htm?txtAction=71000&txtQuery=#TRACKNUM#&x=0&y=0',
'apc' => 'https://emea.netdespatch.com/mba/9116x0/track/?type=1&ref=#TRACKNUM#',
'dpd_uk' => 'http://www.dpd.co.uk/tracking/trackingSearch.do?search.searchType=0&search.parcelNumber=#TRACKNUM#',
'dhl_uk' => 'http://www.dhl.co.uk/content/gb/en/express/tracking.shtml?brand=DHL&AWB=#TRACKNUM#',
'fedex' => 'http://www.fedexuk.net/accounts/QuickTrack.aspx?consignment=#TRACKNUM#',
'fedex_us' => 'http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=#TRACKNUM#',
'parcelforce' => 'http://www.parcelforce.com/portal/pw/track?trackNumber=#TRACKNUM#',
'royal_mail' => 'http://www.royalmail.com/track-trace/?trackNumber=#TRACKNUM#',
'uk_mail' => 'http://www.business-post.com/scripts/wsisa.dll/ws_quickpod.html?lc_SearchValue=#TRACKNUM#',
'tnt_uk' => 'http://www.kiosk.tnt.com/webshipper/doTrack.asp?C=#TRACKNUM#&L=EN',
'usps_usa' => 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=#TRACKNUM#',
),

);

if (!isset($codes[$type])) {
throw Mage::exception('Mage_Shipping', __('Invalid Tracking code type: %s', $type));
throw new LocalizedException(__('Invalid Tracking code type: %1.', $type));
}

if ('' === $code) {
return $codes[$type];
}

if (!isset($codes[$type][$code])) {
throw Mage::exception('Mage_Shipping', __('Invalid Tracking code for type %s: %s', $type, $code));
throw new LocalizedException(__('Invalid Tracking code for type %1: %2.', $type, $code));
}

return $codes[$type][$code];
Expand Down
26 changes: 0 additions & 26 deletions src/i18n/en_US.csv
Original file line number Diff line number Diff line change
@@ -1,26 +0,0 @@
Country,Country
"Region/State","Region/State"
"Zip/Postal Code","Zip/Postal Code"
City,City
"Shipping Price","Shipping Price"
"Shipping Method","Shipping Method"
"Export CSV","Export CSV"
"Weight vs. Destination","Weight vs. Destination"
"Order Subtotal vs. Destination","Order Subtotal vs. Destination"
"# of Items vs. Destination","# of Items vs. Destination"
Weight,Weight
"Order Subtotal","Order Subtotal"
"# of Items","# of Items"
"Please correct Matrix Rate code type: %1.","Please correct Matrix Rate code type: %1."
"Please correct Matrix Rate code for type %1: %2.","Please correct Matrix Rate code for type %1: %2."
"Please correct Matrix Rates File Format.","Please correct Matrix Rates File Format."
"Something went wrong while importing matrix rates.","Something went wrong while importing matrix rates."
"We couldn\'t import this file because of these errors: %1","We couldn\'t import this file because of these errors: %1"
"Please correct Matrix Rates format in Row #%1. Invalid Number of Rows","Please correct Matrix Rates format in Row #%1. Invalid Number of Rows"
"Please correct Country "%1" in Row #%2.","Please correct Country "%1" in Row #%2."
"Please correct Region/State "%1" in Row #%2.","Please correct Region/State "%1" in Row #%2."
"Please correct %1 From "%2" in Row #%3.","Please correct %1 From "%2" in Row #%3."
"Please correct %1 To "%2" in Row #%3.","Please correct %1 To "%2" in Row #%3."
"Please correct Shipping Price "%1" in Row #%2.","Please correct Shipping Price "%1" in Row #%2."
"Please correct Shipping Method "%1" in Row #%2.","Please correct Shipping Method "%1" in Row #%2."
"Duplicate Row #%1 (Country "%2", Region/State "%3", City "%4", Zip from "%5", Zip to "%6", From Value "%7", To Value "%8", and Shipping Method "%9")","Duplicate Row #%1 (Country "%2", Region/State "%3", City "%4", Zip from "%5", Zip to "%6", From Value "%7", To Value "%8", and Shipping Method "%9")"
15 changes: 0 additions & 15 deletions src/view/frontend/layout/adminhtml_order_shipment_view.xml

This file was deleted.

0 comments on commit ca9d6d1

Please sign in to comment.