public function getStoreCategoriesAjax()
    {
        if (!$this->access('category')) {
            return array('error' => $this->text('No access'));
        }

        $options = array(
            'store_id' => $this->getPosted('store_id', $this->store->getDefault())
        );

        return $this->getCategoryOptionsByStore($this->category, $this->category_group, $options);
    }
public function getStoreCategoriesAjax()
    {
        if (!$this->access('category')) {
            return array('error' => $this->text('No access'));
        }

        $options = array(
            'store_id' => $this->getPosted('store_id', $this->store->getDefault())
        );

        return $this->getCategoryOptionsByStore($this->category, $this->category_group, $options);
    }
public function getStoreCategoriesAjax ( ) { if ( ! $ this -> access ( 'category' ) ) { return array ( 'error' => $ this -> text ( 'No access' ) ) ; } $ options = array ( 'store_id' => $ this -> getPosted ( 'store_id' , $ this -> store -> getDefault ( ) ) ) ; return $ this -> getCategoryOptionsByStore ( $ this -> category , $ this -> category_group , $ options ) ; }
Returns an array of store categories
@return array
Returns an array of store categories