protected function setSkuCombinationProduct(array &$product)
    {
        if (!empty($product['combination'])) {
            foreach ($product['combination'] as &$combination) {

                $combination['path'] = $combination['thumb'] = '';

                if (!empty($product['images'][$combination['file_id']])) {
                    $combination['path'] = $product['images'][$combination['file_id']]['path'];
                    $this->setItemThumb($combination, $this->image);
                }

                $combination['price'] = $this->price->decimal($combination['price'], $product['currency']);
            }
        }
    }
protected function setSkuCombinationProduct(array &$product)
    {
        if (!empty($product['combination'])) {
            foreach ($product['combination'] as &$combination) {

                $combination['path'] = $combination['thumb'] = '';

                if (!empty($product['images'][$combination['file_id']])) {
                    $combination['path'] = $product['images'][$combination['file_id']]['path'];
                    $this->setItemThumb($combination, $this->image);
                }

                $combination['price'] = $this->price->decimal($combination['price'], $product['currency']);
            }
        }
    }
protected function setSkuCombinationProduct ( array & $ product ) { if ( ! empty ( $ product [ 'combination' ] ) ) { foreach ( $ product [ 'combination' ] as & $ combination ) { $ combination [ 'path' ] = $ combination [ 'thumb' ] = '' ; if ( ! empty ( $ product [ 'images' ] [ $ combination [ 'file_id' ] ] ) ) { $ combination [ 'path' ] = $ product [ 'images' ] [ $ combination [ 'file_id' ] ] [ 'path' ] ; $ this -> setItemThumb ( $ combination , $ this -> image ) ; } $ combination [ 'price' ] = $ this -> price -> decimal ( $ combination [ 'price' ] , $ product [ 'currency' ] ) ; } } }
Sets product SKU combinations data
@param array $product
Sets product SKU combinations data