|
@@ 115-121 (lines=7) @@
|
| 112 |
|
$connectUnits = $this->getSdkLocalizedUnits(); |
| 113 |
|
|
| 114 |
|
// search for same label in Shopware units |
| 115 |
|
if ($connectUnits[$connectUnit]) { |
| 116 |
|
$unitModel = $repository->findOneBy(['name' => $connectUnits[$connectUnit]]); |
| 117 |
|
|
| 118 |
|
if ($unitModel) { |
| 119 |
|
return $unitModel->getUnit(); |
| 120 |
|
} |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
// search for same label in "de" Shopware units |
| 124 |
|
$deConnectUnits = $this->getSdkLocalizedUnits('de'); |
|
@@ 125-131 (lines=7) @@
|
| 122 |
|
|
| 123 |
|
// search for same label in "de" Shopware units |
| 124 |
|
$deConnectUnits = $this->getSdkLocalizedUnits('de'); |
| 125 |
|
if ($deConnectUnits[$connectUnit]) { |
| 126 |
|
$unitModel = $repository->findOneBy(['name' => $deConnectUnits[$connectUnit]]); |
| 127 |
|
|
| 128 |
|
if ($unitModel) { |
| 129 |
|
return $unitModel->getUnit(); |
| 130 |
|
} |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
if ($this->configComponent->getConfig('createUnitsAutomatically', false) == true) { |
| 134 |
|
// only german units for now |