File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11## Changelog
22
3+ ### Version 1.0.6
4+ - ** Fix** : Added a fix to country of manufacture parameter within item request to use ISO 3166-1 alpha-2 code instead.
5+
36### Version 1.0.5
47- ** Improvement** : Added manual order export schedule from within order grid.
58
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Generator extends AbstractService implements ProcessorInterface
3737 /**
3838 * @var ImageFactory
3939 */
40- protected ImageFactory $ productImageFactory ;
40+ private ImageFactory $ productImageFactory ;
4141
4242 /**
4343 * Generator constructor.
@@ -148,6 +148,7 @@ private function buildItemData()
148148 if (!$ product = $ this ->getProduct ($ item )) {
149149 throw new LocalizedException (__ ('Could not find product SKU: %1 ' , $ item ->getSku ()));
150150 }
151+
151152 $ request [] = [
152153 ClientOrderInterface::SKU_CODE => $ item ->getSku (),
153154 ClientOrderInterface::SKU_DESC => $ item ->getName (),
@@ -159,7 +160,7 @@ private function buildItemData()
159160 ClientOrderInterface::HEIGHT => $ item ->getHeight (),
160161 ClientOrderInterface::DIMENSIONS_UOM => 'mm ' ,
161162 ClientOrderInterface::HS_CODE => $ product ->getData ('commodity_code ' ),
162- ClientOrderInterface::COUNTRY_CODE => $ product ->getAttributeText ('country_of_manufacture ' ),
163+ ClientOrderInterface::COUNTRY_CODE => $ product ->getData ('country_of_manufacture ' ),
163164 ClientOrderInterface::DANGEROUS_GOODS => 'No ' ,
164165 ClientOrderInterface::EXPORT_DATE => $ this ->dateTime ->gmtDate (),
165166 ClientOrderInterface::DAYS_FOR_RETURN => 365 ,
Original file line number Diff line number Diff line change 2323 "SoftCommerce\\ Rebound\\ " : " "
2424 }
2525 },
26- "version" : " 1.0.5 "
26+ "version" : " 1.0.6 "
2727}
You can’t perform that action at this time.
0 commit comments