Exemplo n.º 1
0
 /**
  * main action
  */
 public function mainAction()
 {
     require_once 'models/ecommerce/ecommerce_price.php';
     $Price = new ecommerce_price();
     $price_list = $Price->getPriceList($this->GET['product_variety_id']);
     $this->tpl->assign('CONTENT', json_encode($price_list));
     return true;
 }
Exemplo n.º 2
0
 /**
  * main action
  */
 public function mainAction()
 {
     require_once 'models/ecommerce/ecommerce_price.php';
     $Price = new ecommerce_price();
     $price_list = $Price->getPriceList($this->GET['product_variety_id']);
     foreach ($price_list as $item) {
         $item['usage'] = $Price->getAddedToBasketCount($item['id']);
         $this->tpl->assign('ITEM', $item);
         $this->tpl->parse('content.item');
     }
     return true;
 }