Skip to content

Commit 3716190

Browse files
Changes to rebound country code.
1 parent 786175c commit 3716190

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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

Service/OrderExport/Generator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
"SoftCommerce\\Rebound\\": ""
2424
}
2525
},
26-
"version": "1.0.5"
26+
"version": "1.0.6"
2727
}

0 commit comments

Comments
 (0)