@@ -89,7 +89,7 @@ public function prepareDataSource(array $dataSource)
89
89
'hidden ' => ! $ orderManagementActivated ,
90
90
];
91
91
} else {
92
- $ item [$ this ->getData ('name ' )]['action-download_package_label ' ] = [
92
+ $ item [$ this ->getData ('name ' )]['action-download_package_label ' ] = [
93
93
'href ' => $ this ->urlBuilder ->getUrl (
94
94
'myparcel/order/CreateAndPrintMyParcelTrack ' ,
95
95
[
@@ -101,6 +101,18 @@ public function prepareDataSource(array $dataSource)
101
101
'label ' => __ ('Download package label ' ),
102
102
'hidden ' => $ orderManagementActivated ,
103
103
];
104
+ $ item [$ this ->getData ('name ' )]['action-download_small_package_label ' ] = [
105
+ 'href ' => $ this ->urlBuilder ->getUrl (
106
+ 'myparcel/order/CreateAndPrintMyParcelTrack ' ,
107
+ [
108
+ 'selected_ids ' => $ item ['entity_id ' ],
109
+ 'mypa_package_type ' => 6 ,
110
+ 'mypa_request_type ' => 'download ' ,
111
+ ]
112
+ ),
113
+ 'label ' => __ ('Download small package label ' ),
114
+ 'hidden ' => $ orderManagementActivated ,
115
+ ];
104
116
$ item [$ this ->getData ('name ' )]['action-download_digital_stamp_label ' ] = [
105
117
'href ' => $ this ->urlBuilder ->getUrl (
106
118
'myparcel/order/CreateAndPrintMyParcelTrack ' ,
@@ -113,7 +125,7 @@ public function prepareDataSource(array $dataSource)
113
125
'label ' => __ ('Download digital stamp label ' ),
114
126
'hidden ' => $ orderManagementActivated ,
115
127
];
116
- $ item [$ this ->getData ('name ' )]['action-download_mailbox_label ' ] = [
128
+ $ item [$ this ->getData ('name ' )]['action-download_mailbox_label ' ] = [
117
129
'href ' => $ this ->urlBuilder ->getUrl (
118
130
'myparcel/order/CreateAndPrintMyParcelTrack ' ,
119
131
[
@@ -125,7 +137,7 @@ public function prepareDataSource(array $dataSource)
125
137
'label ' => __ ('Download mailbox label ' ),
126
138
'hidden ' => $ orderManagementActivated ,
127
139
];
128
- $ item [$ this ->getData ('name ' )]['action-download_letter_label ' ] = [
140
+ $ item [$ this ->getData ('name ' )]['action-download_letter_label ' ] = [
129
141
'href ' => $ this ->urlBuilder ->getUrl (
130
142
'myparcel/order/CreateAndPrintMyParcelTrack ' ,
131
143
[
@@ -137,7 +149,7 @@ public function prepareDataSource(array $dataSource)
137
149
'label ' => __ ('Download letter label ' ),
138
150
'hidden ' => $ orderManagementActivated ,
139
151
];
140
- $ item [$ this ->getData ('name ' )]['action-create_concept ' ] = [
152
+ $ item [$ this ->getData ('name ' )]['action-create_concept ' ] = [
141
153
'href ' => $ this ->urlBuilder ->getUrl (
142
154
'myparcel/order/CreateAndPrintMyParcelTrack ' ,
143
155
[
@@ -148,7 +160,7 @@ public function prepareDataSource(array $dataSource)
148
160
'label ' => __ ('Create new concept ' ),
149
161
'hidden ' => $ orderManagementActivated ,
150
162
];
151
- $ item [$ this ->getData ('name ' )]['action-ship_direct ' ] = [
163
+ $ item [$ this ->getData ('name ' )]['action-ship_direct ' ] = [
152
164
'href ' => $ this ->urlBuilder ->getUrl (
153
165
'adminhtml/order_shipment/start ' ,
154
166
[
@@ -162,7 +174,7 @@ public function prepareDataSource(array $dataSource)
162
174
}
163
175
164
176
if (isset ($ item [ShippingStatus::NAME ])) {
165
- $ item [$ this ->getData ('name ' )]['action-create_concept ' ] = [
177
+ $ item [$ this ->getData ('name ' )]['action-create_concept ' ] = [
166
178
'href ' => $ this ->urlBuilder ->getUrl (
167
179
'myparcel/order/CreateAndPrintMyParcelTrack ' ,
168
180
[
@@ -173,7 +185,7 @@ public function prepareDataSource(array $dataSource)
173
185
'label ' => __ ('Already exported ' ),
174
186
'hidden ' => ! $ orderManagementActivated ,
175
187
];
176
- $ item [$ this ->getData ('name ' )]['action-download_package_label ' ] = [
188
+ $ item [$ this ->getData ('name ' )]['action-download_package_label ' ] = [
177
189
'href ' => $ this ->urlBuilder ->getUrl (
178
190
'myparcel/order/CreateAndPrintMyParcelTrack ' ,
179
191
[
0 commit comments