当前位置: 首页>>代码示例>>PHP>>正文


PHP mslib_fe::getCMSType方法代码示例

本文整理汇总了PHP中mslib_fe::getCMSType方法的典型用法代码示例。如果您正苦于以下问题:PHP mslib_fe::getCMSType方法的具体用法?PHP mslib_fe::getCMSType怎么用?PHP mslib_fe::getCMSType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mslib_fe的用法示例。


在下文中一共展示了mslib_fe::getCMSType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mailOrder

 function mailOrder($orders_id, $copy_to_merchant = 1, $custom_email_address = '', $mail_template = '')
 {
     $order = mslib_fe::getOrder($orders_id);
     if ($order['orders_id']) {
         $order['mail_template'] = $mail_template;
         if (isset($order['language_id'])) {
             // Switch to language that is stored in the order
             mslib_befe::setSystemLanguage($order['language_id']);
         }
         if (!$custom_email_address) {
             $custom_email_address = $order['billing_email'];
         }
         $billing_address = '';
         $delivery_address = '';
         $full_customer_name = $order['billing_first_name'];
         if ($order['billing_middle_name']) {
             $full_customer_name .= ' ' . $order['billing_middle_name'];
         }
         if ($order['billing_last_name']) {
             $full_customer_name .= ' ' . $order['billing_last_name'];
         }
         $delivery_full_customer_name = $order['delivery_first_name'];
         if ($order['delivery_middle_name']) {
             $delivery_full_customer_name .= ' ' . $order['delivery_middle_name'];
         }
         if ($order['delivery_last_name']) {
             $delivery_full_customer_name .= ' ' . $order['delivery_last_name'];
         }
         $full_customer_name = preg_replace('/\\s+/', ' ', $full_customer_name);
         $delivery_full_customer_name = preg_replace('/\\s+/', ' ', $delivery_full_customer_name);
         if (!$order['delivery_address'] or !$order['delivery_city']) {
             $order['delivery_company'] = $order['billing_company'];
             $order['delivery_street_name'] = $order['billing_street_name'];
             $order['delivery_building'] = $order['billing_building'];
             $order['delivery_address'] = $order['billing_address'];
             $order['delivery_address_number'] = $order['billing_address_number'];
             $order['delivery_address_ext'] = $order['billing_address_ext'];
             $order['delivery_zip'] = $order['billing_zip'];
             $order['delivery_city'] = $order['billing_city'];
             $order['delivery_telephone'] = $order['billing_telephone'];
             $order['delivery_mobile'] = $order['billing_mobile'];
         }
         if ($order['delivery_company']) {
             $delivery_address = $order['delivery_company'] . "<br />";
         }
         if ($delivery_full_customer_name) {
             $delivery_address .= $delivery_full_customer_name . "<br />";
         }
         if ($order['delivery_building']) {
             $delivery_address .= $order['delivery_building'] . "<br />";
         }
         if ($order['delivery_address']) {
             $delivery_address .= $order['delivery_address'] . "<br />";
         }
         if ($order['delivery_zip'] and $order['delivery_city']) {
             $delivery_address .= $order['delivery_zip'] . " " . $order['delivery_city'];
         }
         if ($order['delivery_country'] && mslib_befe::strtolower($order['delivery_country']) != mslib_befe::strtolower($this->tta_shop_info['country'])) {
             // ONLY PRINT COUNTRY IF THE COUNTRY OF THE CUSTOMER IS DIFFERENT THAN FROM THE SHOP
             $delivery_address .= '<br />' . mslib_fe::getTranslatedCountryNameByEnglishName($this->lang, $order['delivery_country']);
         }
         //		if ($order['delivery_telephone']) 		$delivery_address.=ucfirst($this->pi_getLL('telephone')).': '.$order['delivery_telephone']."<br />";
         //		if ($order['delivery_mobile']) 			$delivery_address.=ucfirst($this->pi_getLL('mobile')).': '.$order['delivery_mobile']."<br />";
         if ($order['billing_company']) {
             $billing_address = $order['billing_company'] . "<br />";
         }
         if ($full_customer_name) {
             $billing_address .= $full_customer_name . "<br />";
         }
         if ($order['billing_building']) {
             $billing_address .= $order['billing_building'] . "<br />";
         }
         if ($order['billing_address']) {
             $billing_address .= $order['billing_address'] . "<br />";
         }
         if ($order['billing_zip'] and $order['billing_city']) {
             $billing_address .= $order['billing_zip'] . " " . $order['billing_city'];
         }
         if ($order['billing_country'] && mslib_befe::strtolower($order['billing_country']) != mslib_befe::strtolower($this->tta_shop_info['country'])) {
             // ONLY PRINT COUNTRY IF THE COUNTRY OF THE CUSTOMER IS DIFFERENT THAN FROM THE SHOP
             $billing_address .= '<br />' . mslib_fe::getTranslatedCountryNameByEnglishName($this->lang, $order['billing_country']);
         }
         $loadFromPids = array();
         if ($this->conf['masterShop']) {
             $loadFromPids[] = $order['page_uid'];
             $loadFromPids[] = $this->shop_pid;
             if ($this->showCatalogFromPage and $this->showCatalogFromPage != $this->shop_pid) {
                 $loadFromPids[] = $this->showCatalogFromPage;
             }
         }
         // psp email template
         $psp_mail_template = array();
         if ($order['payment_method']) {
             $psp_data = mslib_fe::loadPaymentMethod($order['payment_method']);
             $psp_vars = unserialize($psp_data['vars']);
             if (isset($psp_vars['order_confirmation'])) {
                 $psp_mail_template['order_confirmation'] = '';
                 if ($psp_vars['order_confirmation'] > 0) {
                     $psp_mail_template['order_confirmation'] = mslib_fe::getCMSType($psp_vars['order_confirmation']);
                 }
//.........这里部分代码省略.........
开发者ID:bvbmedia,项目名称:multishop,代码行数:101,代码来源:class.tx_mslib_order.php

示例2: array

 $array1[] = '###ORDER_LINK###';
 $array2[] = '';
 $array1[] = '###CUSTOMER_ID###';
 $array2[] = $tmpArray['customer_id'];
 $link = $this->FULL_HTTP_URL . mslib_fe::typolink($tmpArray['page_uid'], 'tx_multishop_pi1[page_section]=payment_reminder_checkout&tx_multishop_pi1[hash]=' . $hashcode);
 $array1[] = '###PAYMENT_PAGE_LINK###';
 $array2[] = $link;
 // psp email template
 $psp_mail_template = array();
 if ($tmpArray['payment_method']) {
     $psp_data = mslib_fe::loadPaymentMethod($tmpArray['payment_method']);
     $psp_vars = unserialize($psp_data['vars']);
     if (isset($psp_vars['order_payment_reminder'])) {
         $psp_mail_template['order_payment_reminder'] = '';
         if ($psp_vars['order_payment_reminder'] > 0) {
             $psp_mail_template['order_payment_reminder'] = mslib_fe::getCMSType($psp_vars['order_payment_reminder']);
         }
     }
 }
 if (isset($psp_mail_template['order_payment_reminder'])) {
     $page = array();
     if (!empty($psp_mail_template['order_payment_reminder'])) {
         $page = mslib_fe::getCMScontent($psp_mail_template['order_payment_reminder'], $GLOBALS['TSFE']->sys_language_uid);
     }
 } else {
     $cms_type = 'payment_reminder_email_templates_' . $tmpArray['payment_method'];
     $page = mslib_fe::getCMScontent($cms_type, $GLOBALS['TSFE']->sys_language_uid);
     if (!count($page[0])) {
         $page = mslib_fe::getCMScontent('payment_reminder_email_templates', $GLOBALS['TSFE']->sys_language_uid);
     }
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_orders.php

示例3: array

 $array2[] = '';
 $array1[] = '###CUSTOMER_ID###';
 $array2[] = $order['customer_id'];
 $array1[] = '###CUSTOMER_COMMENTS###';
 $array2[] = $order['customer_comments'];
 // for on the site eof
 $page = array();
 // psp email template
 $psp_mail_template = array();
 if ($order['payment_method']) {
     $psp_data = mslib_fe::loadPaymentMethod($order['payment_method']);
     $psp_vars = unserialize($psp_data['vars']);
     if (isset($psp_vars['order_thank_you_page'])) {
         $psp_mail_template['order_thank_you_page'] = '';
         if ($psp_vars['order_thank_you_page'] > 0) {
             $psp_mail_template['order_thank_you_page'] = mslib_fe::getCMSType($psp_vars['order_thank_you_page']);
         }
     }
 }
 // first try to load the custom thank you page based on the payment method
 if (isset($psp_mail_template['order_thank_you_page'])) {
     $page = array();
     if (!empty($psp_mail_template['order_thank_you_page'])) {
         $page = mslib_fe::getCMScontent($psp_mail_template['order_thank_you_page'], $GLOBALS['TSFE']->sys_language_uid);
     }
 } else {
     if ($order['payment_method']) {
         $page = mslib_fe::getCMScontent('order_received_thank_you_page_' . $order['payment_method'], $GLOBALS['TSFE']->sys_language_uid);
     }
     if (!count($page[0])) {
         $page = mslib_fe::getCMScontent('order_received_thank_you_page', $GLOBALS['TSFE']->sys_language_uid);
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:core.php


注:本文中的mslib_fe::getCMSType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。