Skip to content

Commit 05f71ee

Browse files
committed
Updates to display new shipping methods when requesting all elements
1 parent 9e4cac8 commit 05f71ee

File tree

4 files changed

+34
-14
lines changed

4 files changed

+34
-14
lines changed

app/code/Magento/Usps/Helper/Data.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ class Data extends AbstractHelper
2020
protected $availableShippingMethods = [
2121
'usps_0_FCLE', // First-Class Mail Large Envelope
2222
'usps_1', // Priority Mail
23-
'usps_2', // Priority Mail Express Hold For Pickup
24-
'usps_3', // USPS Ground Advantage (up to 15.999 oz)
25-
'usps_6', // USPS Ground Advantage LIVES, Offshore
26-
'usps_9', // USPS Ground Advantage (1 to 70lbs)
23+
'usps_2', // Priority Mail Express Hold For Pickup
24+
'usps_3', // Priority Mail Express
25+
'usps_4', // Retail Ground
26+
'usps_6', // Media Mail
2727
'usps_INT_1', // Priority Mail Express International
2828
'usps_INT_2', // Priority Mail International
2929
'usps_INT_4', // Global Express Guaranteed (GXG)
@@ -36,6 +36,7 @@ class Data extends AbstractHelper
3636
'usps_INT_14', // First-Class Mail International Large Envelope
3737
'usps_INT_16', // Priority Mail International Small Flat Rate Box
3838
'usps_INT_20', // Priority Mail International Small Flat Rate Envelope
39+
'usps_9', // USPS Ground Adventage
3940
];
4041

4142
/**

app/code/Magento/Usps/Model/Carrier.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,17 @@ public function getCode($type, $code = '')
815815
'INT_24' => __('Priority Mail International DVD Flat Rate priced box'),
816816
'INT_25' => __('Priority Mail International Large Video Flat Rate priced box'),
817817
'INT_27' => __('Priority Mail Express International Padded Flat Rate Envelope'),
818+
'1058' => __('Ground Advantage #8482'),
819+
'2058' => __('Ground Advantage #8482 Hold for pickup'),
820+
'4058' => __('Ground Advantage #8482 HAZMAT'),
821+
'6058' => __('Ground Advantage #8482 Parcel locker'),
822+
'1058' => __('Ground Advantage #8482'),
823+
'2058' => __('Gound Advantage #8482 Hold for pickup'),
824+
'4058' => __('Ground Advantage #8482 HAZMAT'),
825+
'4096' => __('Ground Advantage #8482 Cubic HAZMAT'),
826+
'1096' => __('Ground Advantage #8482 Cubic'),
827+
'2096' => __('Ground Advantage #8482 Cubic Hold for pickup'),
828+
'6096' => __('Ground Advantage #8482 Cubic Parcel locker')
818829
],
819830
'service_to_code' => [
820831
'0_FCLE' => 'First Class',

app/code/Magento/Usps/Setup/Patch/Data/UpdateAllowedMethods.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1212

1313
/**
14-
* Patch for updating allowed shipping methods for USPS carrier.
14+
* Class UpdateAllowedMethods
15+
* @package Magento\Usps\Setup\Patch
1516
*/
1617
class UpdateAllowedMethods implements DataPatchInterface, PatchVersionInterface
1718
{
@@ -57,10 +58,10 @@ public function apply()
5758
'First-Class Mail Package' => '0_FCP',
5859
'First-Class Package Service - Retail' => '0_FCP',
5960
'Parcel Post' => '4',
60-
'Retail Ground' => '4',
61-
'USPS Ground Advantage (up to 15.999 oz)' => '3',
62-
'USPS Ground Advantage LIVES, Offshore' => '6',
63-
'USPS Ground Advantage (1 to 70lbs)' => '9',
61+
'Retail Ground' => '4',
62+
'Media Mail' => '6',
63+
'Library Mail' => '7',
64+
'Express Mail' => '3',
6465
'Express Mail PO to PO' => '3',
6566
'Express Mail Flat Rate Envelope' => '13',
6667
'Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee' => '25',
@@ -134,7 +135,7 @@ public static function getDependencies()
134135
*/
135136
public static function getVersion()
136137
{
137-
return '2.1.1';
138+
return '2.0.1';
138139
}
139140

140141
/**

app/code/Magento/Usps/i18n/en_US.csv

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
"Retail Ground","Retail Ground"
99
"Media Mail","Media Mail"
1010
"Library Mail","Library Mail"
11-
"USPS Ground Advantage (up to 15.999 oz)","USPS Ground Advantage (up to 15.999 oz)"
12-
"USPS Ground Advantage LIVES, Offshore","USPS Ground Advantage LIVES, Offshore"
13-
"USPS Ground Advantage (up to 15.999 oz)","USPS Ground Advantage (up to 15.999 oz)"
14-
"USPS Ground Advantage (1 to 70lbs)","USPS Ground Advantage (1 to 70lbs)"
1511
"Priority Mail Express Flat Rate Envelope","Priority Mail Express Flat Rate Envelope"
1612
"First-Class Mail Large Postcards","First-Class Mail Large Postcards"
1713
"Priority Mail Flat Rate Envelope","Priority Mail Flat Rate Envelope"
@@ -76,6 +72,17 @@
7672
"Priority Mail International DVD Flat Rate priced box","Priority Mail International DVD Flat Rate priced box"
7773
"Priority Mail International Large Video Flat Rate priced box","Priority Mail International Large Video Flat Rate priced box"
7874
"Priority Mail Express International Padded Flat Rate Envelope","Priority Mail Express International Padded Flat Rate Envelope"
75+
"Ground Advantage #8482","Ground Advantage #8482"
76+
"Ground Advantage #8482 Hold for pickup","Ground Advantage #8482 Hold for pickup"
77+
"Ground Advantage #8482 HAZMAT","Ground Advantage #8482 HAZMAT"
78+
"Ground Advantage #8482 Parcel locker","Ground Advantage #8482 Parcel locker"
79+
"Ground Advantage #8482","Ground Advantage #8482"
80+
"Ground Advantage #8482 Hold for pickup","Ground Advantage #8482 Hold for pickup"
81+
"Ground Advantage #8482 HAZMAT","Ground Advantage #8482 HAZMAT"
82+
"Ground Advantage #8482 Cubic HAZMAT","Ground Advantage #8482 Cubic HAZMAT"
83+
"Ground Advantage #8482 Cubic","Ground Advantage #8482 Cubic"
84+
"Ground Advantage #8482 Cubic Hold for pickup","Ground Advantage #8482 Cubic Hold for pickup"
85+
"Ground Advantage #8482 Cubic Parcel locker","Ground Advantage #8482 Cubic Parcel locker"
7986
Letter,Letter
8087
Flat,Flat
8188
Parcel,Parcel

0 commit comments

Comments
 (0)