Arkadaşlar opencart apisindeki hatayı bulamıyorum sizce ne olabilir çok uğraştım ama çözemedim.

ücretiyle yardım etmek isteyen insanlarad ulaşabilir.
    public function getAllOptionsOfProduct($productId)
        {
            $this->load->model('catalog/product');
            $options = $this->model_catalog_product->getProductOptions($productId);
            $attributes = array();
            foreach($options as $option) {
                if ( $option['required'] != 1 || ($option['type'] != 'radio' && $option['type'] != 'select')) {
                    continue;
                }
                $attribute['id'] = (int) $option['option_id'];
                $attribute['name'] = $option['name'];
                $attribute['type'] = 'dropdown';
                $attribute['variation'] = false;
                $attribute['visible'] = true;
                $attribute['options'] = array();
                if(is_array($option['product_option_value']) && !empty($option['product_option_value'])) {
                    foreach($option['product_option_value'] as $valueOptions) {
                        $attribute['options'][] = array(
                            'name' => $valueOptions['name'],
                            'value' => $valueOptions['name'],
                        );
                    }
                }
                if($option['required'] == 1) {
                    $attribute['variation'] = true;
                }
                $attributes[] = $attribute;
            }
            return $attributes;
        }