Removed the need for price_base/price_setup in products table
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
* @license http://dev.leenooks.net/license.html
|
||||
*/
|
||||
class Controller_Product extends Controller_TemplateDefault {
|
||||
/**
|
||||
* Show a list of product categories
|
||||
*/
|
||||
public function action_categorys() {
|
||||
$output = '<div id="category">';
|
||||
$output .= '<ul>';
|
||||
@@ -19,9 +22,7 @@ class Controller_Product extends Controller_TemplateDefault {
|
||||
$a = '<h3>'.$pco->display('name').'</h3>';
|
||||
$a .= '<p>'.$pco->description().'</p>';
|
||||
|
||||
$output .= '<li>';
|
||||
$output .= HTML::anchor('product/category/'.$pco->id,$a);
|
||||
$output .= '</li>';
|
||||
$output .= '<li>'.HTML::anchor('product/category/'.$pco->id,$a).'</li>';
|
||||
}
|
||||
|
||||
$output .= '</ul>';
|
||||
@@ -32,6 +33,7 @@ class Controller_Product extends Controller_TemplateDefault {
|
||||
|
||||
/**
|
||||
* Show the available topics in a category
|
||||
*
|
||||
* @todo Only show categories according to their validity dates
|
||||
* @todo Obey sort order
|
||||
*/
|
||||
@@ -92,10 +94,10 @@ class Controller_Product extends Controller_TemplateDefault {
|
||||
}
|
||||
|
||||
Block::add(array(
|
||||
'title'=>$po->product_translate->find()->description_short,
|
||||
'title'=>$po->description_short(),
|
||||
'body'=>View::factory($this->viewpath())
|
||||
->set('record',$po),
|
||||
));
|
||||
));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user