コード例 #1
0
 function getTag($tag)
 {
     global $application;
     $value = null;
     switch ($tag) {
         case 'PersonInfoShipping':
             $value = $this->getPersonInfo('Shipping');
             break;
         case 'PersonInfoBilling':
             $value = $this->getPersonInfo('Billing');
             break;
         case 'OrderTrackId':
             if (modApiFunc("Checkout", "getDeleteOrdersFlag") == "true") {
                 $value = nl2br($this->_order['TrackId']);
             } else {
                 $value = nl2br($this->_order['TrackId']);
             }
             break;
         case 'PrintCommand':
             if ($this->_print != 'Y') {
                 $value = '';
             } else {
                 $value = modApiFunc('TmplFiller', 'fill', 'checkout/' . $this->template_folder . '/', 'print_js_code.tpl.html', array());
             }
             break;
         default:
             $value = parent::getTag($tag);
             break;
     }
     return $value;
 }
コード例 #2
0
 function getTag($tag)
 {
     $value = null;
     switch ($tag) {
         case 'Local_PersonInfoShipping':
         case 'Local_PersonInfoBilling':
             $group_name = _ml_strtolower(str_replace('Local_PersonInfo', '', $tag));
             $lang_suffix = _ml_strtoupper($group_name . '_info');
             $this->current_info_group = array('name' => $group_name, 'lang_suffix' => $lang_suffix);
             $value = $this->templateFiller->fill('GroupHeader');
             $value .= $this->out_CustomerInfoGroup(_ml_ucfirst($group_name));
             break;
         case 'Local_KeyDetails':
             $this->current_info_group = array('name' => 'key', 'lang_suffix' => 'KEY_DETAILS');
             $value = $this->templateFiller->fill('GroupHeader');
             $value .= $this->out_KeyDetails();
             break;
         case 'Local_ProductsDetails':
             $this->current_info_group = array('name' => 'products', 'lang_suffix' => 'ORDERED_PRODUCTS');
             $value = $this->templateFiller->fill('GroupHeader');
             $value .= $this->templateFiller->fill('ProductsContainer');
             break;
         default:
             $value = parent::getTag($tag);
             break;
     }
     return $value;
 }