mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 21:26:08 +03:00
fix items property
This commit is contained in:
parent
19ceeae2b0
commit
9146ebd2f6
@ -114,7 +114,7 @@ class ModelExtensionRetailcrmOrder extends Model {
|
|||||||
$productOptions = $this->model_catalog_product->getProductOptions($product['product_id']);
|
$productOptions = $this->model_catalog_product->getProductOptions($product['product_id']);
|
||||||
|
|
||||||
foreach($product['option'] as $option) {
|
foreach($product['option'] as $option) {
|
||||||
if ($option['type'] == 'select' || $option['type'] == 'radio' || $option['type'] == 'checkbox') {
|
if ($option['type'] == 'checkbox') {
|
||||||
$properties[] = array(
|
$properties[] = array(
|
||||||
'code' => $option['product_option_value_id'],
|
'code' => $option['product_option_value_id'],
|
||||||
'name' => $option['name'],
|
'name' => $option['name'],
|
||||||
@ -255,7 +255,7 @@ class ModelExtensionRetailcrmOrder extends Model {
|
|||||||
$productOptions = $this->model_catalog_product->getProductOptions($product['product_id']);
|
$productOptions = $this->model_catalog_product->getProductOptions($product['product_id']);
|
||||||
|
|
||||||
foreach($product['option'] as $option) {
|
foreach($product['option'] as $option) {
|
||||||
if ($option['type'] == 'select' || $option['type'] == 'radio' || $option['type'] == 'checkbox') {
|
if ($option['type'] == 'checkbox') {
|
||||||
$properties[] = array(
|
$properties[] = array(
|
||||||
'code' => $option['product_option_value_id'],
|
'code' => $option['product_option_value_id'],
|
||||||
'name' => $option['name'],
|
'name' => $option['name'],
|
||||||
|
Loading…
Reference in New Issue
Block a user