fix items property

This commit is contained in:
iyzoer 2017-06-02 15:04:22 +03:00
parent 19ceeae2b0
commit 9146ebd2f6

View File

@ -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'],