public function getRoundedAmount($concept = 'gross') { if (!in_array($concept, array('base', 'discount', 'net', 'tax', 'gross'))) { return 0; } return Tools::getRounded(parent::_get($concept . '_amount'), $this->getDecimals()); }
/** * 首页显示 */ protected function doBase($objRequest, $objResponse) { //赋值 //设置类别 $objResponse->nav = 'index'; //设置Meta(共通) $objResponse->setTplValue("__Meta", \BaseCommon::getMeta('index', '我的网站', '我的网站', '我的网站')); $objResponse->setTplName("www/base"); }