'sku','label'=>'Link / SKU','sortable' =>'true','width' =>125,'type'=>'text'), array('code'=>'special_price','label'=>'Special Price','sortable' =>'true','width' =>100,'type'=>'float'), array('code'=>'addtocart','type'=>'text'), array('code'=>'short_description', 'type'=>'text'), array('code'=>'url_path', 'type'=>'text'), array('code'=>'image', 'type'=>'text'), array('code'=>'name', 'type'=>'text'), array('code'=>'order', 'type'=>'int'), array('code'=>'productId', 'type'=>'int') ); //Fields if (!function_exists('_setExtField')) { function _setExtField() { global $attribute_code; $field_array = array(); foreach ( $attribute_code as $item =>$value ) { $field_array[] = "{name: '".$value['code']."', type: '".$value['type']."'}"; } return implode(',', $field_array); } } //PageSize $pageSize = 25; //Get Current Product $_product = $this->getProduct(); //$current_product_setId = $_product->getAttributeSetId(); $current_product_catIds = $_product->getCategoryIds(); //print_r($current_product_catIds); $ids = $current_product_catIds[1]; ?>