Fixes for render AJAX HTMLRender objects

This commit is contained in:
Deon George
2013-06-17 18:01:47 +10:00
parent 609a72425b
commit 98a36554ae
6 changed files with 16 additions and 3 deletions

View File

@@ -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.
*/

View File

@@ -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.
*/