Update product category view to include default price_display configured by category

This commit is contained in:
Deon George
2013-01-11 13:33:57 +11:00
parent f08215717c
commit 3fa1ca3665
6 changed files with 88 additions and 53 deletions

View File

@@ -39,7 +39,7 @@ class Controller_Admin_Product extends Controller_TemplateDefault_Admin {
*/
public function action_list() {
if ($this->request->param('id'))
$prods = ORM::factory('Product')->list_category($this->request->param('id'),FALSE);
$prods = ORM::factory('Product_Category',$this->request->param('id'))->products();
else
$prods = ORM::factory('Product')->order_by('status DESC,prod_plugin_file')->find_all();