Fixes for render AJAX HTMLRender objects
This commit is contained in:
@@ -44,6 +44,13 @@ class Model_Product extends ORM_OSB {
|
||||
'price_group',
|
||||
);
|
||||
|
||||
/**
|
||||
* Which categories is this product available in
|
||||
*/
|
||||
public function categories() {
|
||||
return $this->avail_category;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the translated description for a category.
|
||||
*/
|
||||
|
@@ -24,6 +24,10 @@ class Model_Product_Category extends ORM_OSB {
|
||||
'subcategories'=>array('model'=>'product_category','foreign_key'=>'parent_id','far_key'=>'id'),
|
||||
);
|
||||
|
||||
protected $_sorting = array(
|
||||
'position'=>'ASC',
|
||||
);
|
||||
|
||||
/**
|
||||
* Return the translated description for a category.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user