mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 05:06:07 +03:00
Option identifier for ICML (#203)
This commit is contained in:
parent
c2abd5acd8
commit
fb7290f865
@ -140,7 +140,8 @@ class ModelExtensionRetailcrmIcml extends Model
|
|||||||
$options[$optionIds[0]] = array(
|
$options[$optionIds[0]] = array(
|
||||||
'name' => $optionData['optionName'],
|
'name' => $optionData['optionName'],
|
||||||
'value' => $optionData['optionValue'],
|
'value' => $optionData['optionValue'],
|
||||||
'value_id' => $option[1]
|
'value_id' => $option[1],
|
||||||
|
'option_id' => $optionIds[1]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -296,7 +297,7 @@ class ModelExtensionRetailcrmIcml extends Model
|
|||||||
if (!empty($options)) {
|
if (!empty($options)) {
|
||||||
foreach($options as $optionKey => $optionData) {
|
foreach($options as $optionKey => $optionData) {
|
||||||
$param = $this->dd->createElement('param');
|
$param = $this->dd->createElement('param');
|
||||||
$param->setAttribute('code', $optionKey);
|
$param->setAttribute('code', $optionData['option_id']);
|
||||||
$param->setAttribute('name', $optionData['name']);
|
$param->setAttribute('name', $optionData['name']);
|
||||||
$param->appendChild($this->dd->createTextNode($optionData['value']));
|
$param->appendChild($this->dd->createTextNode($optionData['value']));
|
||||||
$e->appendChild($param);
|
$e->appendChild($param);
|
||||||
|
Loading…
Reference in New Issue
Block a user