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


PHP mslib_fe::getCMScontent方法代码示例

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


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

示例1: updateOrderStatus


//.........这里部分代码省略.........
             $array2[] = $order['delivery_zip'];
             $array1[] = '###DELIVERY_CITY###';
             $array2[] = $order['delivery_city'];
             $array1[] = '###DELIVERY_COUNTRY###';
             $array2[] = mslib_fe::getTranslatedCountryNameByEnglishName($this->lang, $order['delivery_country']);
             $array1[] = '###DELIVERY_COUNTRY_CODE###';
             $array2[] = mslib_fe::getCountryCnIsoByEnglishName($order['delivery_country']);
             // dynamic variablese eof
             //hook to let other plugins further manipulate
             if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_befe.php']['updateOrderStatusMarkerReplacerProc'])) {
                 $params = array('array1' => &$array1, 'array2' => &$array2, 'order' => &$order);
                 foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_befe.php']['updateOrderStatusMarkerReplacerProc'] as $funcRef) {
                     \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
                 }
             }
             if ($this->post['comments']) {
                 $this->post['comments'] = str_replace($array1, $array2, $this->post['comments']);
             }
             $status_last_modified = time();
             $updateArray = array();
             $updateArray['orders_id'] = $order['orders_id'];
             $updateArray['old_value'] = $order['status'];
             $updateArray['comments'] = $this->post['comments'];
             $updateArray['customer_notified'] = $mail_customer;
             $updateArray['crdate'] = $status_last_modified;
             $updateArray['new_value'] = $orders_status;
             $updateArray['requester_ip_addr'] = $this->REMOTE_ADDR;
             $query = $GLOBALS['TYPO3_DB']->INSERTquery('tx_multishop_orders_status_history', $updateArray);
             if ($orders_status == $order['status']) {
                 if (!empty($this->post['comments']) && $mail_customer) {
                     // always save the order status history even when order status is the same as the old one when e-mail to client is filled
                     $res = $GLOBALS['TYPO3_DB']->sql_query($query);
                 }
                 $returnTrue = 0;
             } else {
                 // save if new order status history is different than the old status
                 $res = $GLOBALS['TYPO3_DB']->sql_query($query);
                 $returnTrue = 1;
             }
             $updateArray = array();
             $updateArray['status'] = $orders_status;
             $updateArray['status_last_modified'] = $status_last_modified;
             $order['old_status'] = $order['status'];
             $order['status'] = $orders_status;
             $updateArray['orders_last_modified'] = time();
             $query = $GLOBALS['TYPO3_DB']->UPDATEquery('tx_multishop_orders', 'orders_id=\'' . $orders_id . '\'', $updateArray);
             $res = $GLOBALS['TYPO3_DB']->sql_query($query);
             //send e-mail
             if ($mail_customer) {
                 $subject = $this->ms['MODULES']['STORE_NAME'];
                 $message = $this->post['comments'];
                 if ($orders_status) {
                     $orders_status_name = mslib_fe::getOrderStatusName($orders_status, 0);
                     $keys = array();
                     $keys[] = 'email_order_status_changed_' . mslib_befe::strtolower($orders_status_name);
                     $keys[] = 'email_order_status_changed';
                     foreach ($keys as $key) {
                         //$page=mslib_fe::getCMScontent($key,$GLOBALS['TSFE']->sys_language_uid);
                         $page = mslib_fe::getCMScontent($key, $order['language_id']);
                         if ($page[0]) {
                             if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_befe.php']['updateOrderStatusMarkerReplacerPostProc'])) {
                                 $params = array('array1' => &$array1, 'array2' => &$array2, 'page' => &$page);
                                 foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_befe.php']['updateOrderStatusMarkerReplacerPostProc'] as $funcRef) {
                                     \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
                                 }
                             }
                             if ($page[0]['content']) {
                                 $page[0]['content'] = str_replace($array1, $array2, $page[0]['content']);
                             }
                             if ($page[0]['name']) {
                                 $page[0]['name'] = str_replace($array1, $array2, $page[0]['name']);
                             }
                             $user = array();
                             $user['email'] = $order['billing_email'];
                             $user['name'] = $order['billing_name'];
                             if ($user['email']) {
                                 mslib_fe::mailUser($user, $page[0]['name'], $page[0]['content'], $this->ms['MODULES']['STORE_EMAIL'], $this->ms['MODULES']['STORE_NAME']);
                             }
                             break;
                         }
                     }
                 }
             }
             if (isset($order['language_id'])) {
                 // Switch back to default language
                 mslib_befe::resetSystemLanguage();
             }
             //hook to let other plugins further manipulate
             if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_befe.php']['updateOrderStatusPostProc'])) {
                 $params = array('orders_id' => &$orders_id, 'orders_status' => &$orders_status, 'mail_customer' => &$mail_customer, 'order' => &$order, 'array1' => &$array1, 'array2' => &$array2);
                 foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_befe.php']['updateOrderStatusPostProc'] as $funcRef) {
                     \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
                 }
             }
             if ($returnTrue) {
                 return true;
             }
         }
     }
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:101,代码来源:class.mslib_befe.php

示例2: header

								shipping_cost_popup+=\'<tr>\';
								shipping_cost_popup+=\'<td class="product_shippingcost_popup_table_left_col">\' + j.deliver_to[country_iso_nr] + \'</td>\';
								shipping_cost_popup+=\'<td class="product_shippingcost_popup_table_center_col">\' + shipping_cost + \'</td>\';
								shipping_cost_popup+=\'<td class="product_shippingcost_popup_table_right_col">\' + j.deliver_by[country_iso_nr] + \'</td>\';
								shipping_cost_popup+=\'</tr>\';
							});
							shipping_cost_popup+=\'</table>\';
							shipping_cost_popup+=\'</div>\';
							shipping_cost_popup+=\'</div>\';
							msDialog("' . $this->pi_getLL('shipping_costs') . '", shipping_cost_popup, 650);
						}
					}
				});
			});*/
		});
		</script>
		';
    }
} else {
    header('HTTP/1.0 404 Not Found');
    // set custom 404 message
    $page = mslib_fe::getCMScontent('category_not_found_message', $GLOBALS['TSFE']->sys_language_uid);
    if ($page[0]['name']) {
        $content = '<div class="main-title"><h1>' . $page[0]['name'] . '</h1></div>';
    } else {
        $content = '<div class="main-title"><h1>' . $this->pi_getLL('the_requested_category_does_not_exist') . '</h1></div>';
    }
    if ($page[0]['content']) {
        $content .= $page[0]['content'];
    }
}
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:default.php

示例3: array

 $markerArray['PRODUCT_ROW_TYPE2'] = $output['product_row_type2'];
 $markerArray['LABEL_UPDATE_SHOPPING_CART'] = $output['label_update_shopping_cart'];
 $markerArray['MINMAX_AMOUNT_WARNING'] = $minmax_warning;
 // custom hook that can be controlled by third-party plugin
 if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/front_pages/shopping_cart/default.php']['footerPostHook'])) {
     $params = array('markerArray' => &$markerArray);
     foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/front_pages/shopping_cart/default.php']['footerPostHook'] as $funcRef) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
     }
 }
 $footerItem = $this->cObj->substituteMarkerArray($subparts['footer'], $markerArray, '###|###');
 // header part
 $subpartArray = array();
 $subpartArray['###SHOPPING_CART_FORM_ACTION_URL###'] = $output['shopping_cart_form_action_url'];
 $subpartArray['###SHOPPING_CART_HEADER###'] = $output['shopping_cart_header'];
 $page = mslib_fe::getCMScontent('shopping_cart_message', $GLOBALS['TSFE']->sys_language_uid);
 $subpartArray['###SHOPPING_CART_MESSAGE###'] = '';
 if ($page[0]['content']) {
     $subpartArray['###SHOPPING_CART_MESSAGE###'] = '<div class="shopping_cart_message">' . $page[0]['content'] . '</div>';
 }
 $subpartArray['###COL_HEADER_SHOPPING_CART_PRODUCT###'] = $output['col_header_shopping_cart_product'];
 $subpartArray['###COL_HEADER_SHOPPING_CART_QTY###'] = $output['col_header_shopping_cart_qty'];
 $subpartArray['###COL_HEADER_SHOPPING_CART_TOTAL###'] = $output['col_header_shopping_cart_total'];
 $subpartArray['###GOTO_CATALOG_LINK###'] = $output['goto_catalog_link'];
 $subpartArray['###LABEL_GOTO_CATALOG###'] = $output['label_goto_catalog'];
 $subpartArray['###CHECKOUT_LINK###'] = $output['checkout_link'];
 $subpartArray['###LABEL_CHECKOUT###'] = $output['label_checkout'];
 $subpartArray['###ITEM###'] = $contentItem;
 $subpartArray['###CART_FOOTER###'] = $footerItem;
 // shipping cost
 $subpartArray['###SHIPPING_COST_COUNTRY_SELECTION###'] = '';
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:default.php

示例4: array

			<td width="150" align="right">' . ($invheader = $this->pi_getLL('invoice_number') . ':</td>
			<td width="150">' . $invoice['invoice_id'] . '
			</td>
			<td width="" align="right">&nbsp;</td>
			<td>&nbsp;</td>
			</tr>');
        } else {
            $invheader = '<table cellspacing="0" cellpadding="0" width="100%" class="invoice_header">
				<tr>
					<td width="50%">' . $this->pi_getLL('packing_list') . '</td>
					<td>&nbsp;</td>
				</tr>
			</table>';
            $invnumber = '';
        }
        $content_cms = mslib_fe::getCMScontent('invoice_header', $GLOBALS['TSFE']->sys_language_uid);
        // count eof products
        $tmpcontent .= '<form id="admin_product_edit_" class="admin_product_edit"><div style="display: block;" id="Order_Details" class="tab_content">';
        if ($content_cms[0]['content']) {
            $tmpcontent .= '
				<div id="logo-invoice"><div id="logo-invoice-img">' . $content_cms[0]['content'] . '</div></div>
				<div style="display: block;" id="Order_Details" class="tab_content"><h1>' . $invheader . '</h1>';
        }
        $address_data = array();
        $address_data = $order;
        $address_data['building'] = $order['billing_building'];
        $address_data['address'] = $order['billing_address'];
        $address_data['zip'] = $order['billing_zip'];
        $address_data['city'] = $order['billing_city'];
        $address_data['country'] = $order['billing_country'];
        $billing_address_value = mslib_befe::customerAddressFormat($address_data);
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_edit_order_print.php

示例5: convertCartToOrder


//.........这里部分代码省略.........
                                     $attributes_count = count($value['attributes']);
                                     foreach ($value['attributes'] as $attribute_key => $attribute_values) {
                                         $sql_as_data[] = '(pas.options_id = ' . $attribute_values['options_id'] . ' and pas.options_values_id = ' . $attribute_values['options_values_id'] . ')';
                                     }
                                     $sql_as = "select pasg.group_id, pasg.attributes_stock from tx_multishop_products_attributes_stock_group pasg, tx_multishop_products_attributes_stock pas where pasg.products_id = " . $value['products_id'] . " and (" . implode(' or ', $sql_as_data) . ") and pasg.group_id = pas.group_id";
                                     $res = $GLOBALS['TYPO3_DB']->sql_query($sql_as);
                                     $total_rows = $GLOBALS['TYPO3_DB']->sql_num_rows($res);
                                     $used_group = 0;
                                     if ($total_rows > 1) {
                                         $group_counter = array();
                                         while ($rs_as = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
                                             $group_counter[$rs_as['group_id']] += 1;
                                         }
                                         foreach ($group_counter as $ref_group_id => $group_ctr_result) {
                                             if ($group_ctr_result == $attributes_count) {
                                                 $used_group = $ref_group_id;
                                                 break;
                                             }
                                         }
                                     } else {
                                         $rs_as = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
                                         $used_group = $rs_as['group_id'];
                                     }
                                     if ($used_group > 0) {
                                         $str = "update tx_multishop_products_attributes_stock_group set attributes_stock=(attributes_stock-" . $value['qty'] . ") where group_id='" . $used_group . "'";
                                         $res = $GLOBALS['TYPO3_DB']->sql_query($str);
                                     }
                                     $str = "update tx_multishop_products set products_quantity=(products_quantity-" . $value['qty'] . ") where products_id='" . $value['products_id'] . "'";
                                     $res = $GLOBALS['TYPO3_DB']->sql_query($str);
                                     $str = "select products_quantity, alert_quantity_threshold from tx_multishop_products where products_id='" . $value['products_id'] . "'";
                                     $res = $GLOBALS['TYPO3_DB']->sql_query($str);
                                     $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
                                     if ($row['products_quantity'] <= $row['alert_quantity_threshold']) {
                                         $page = mslib_fe::getCMScontent('email_alert_quantity_threshold_letter', $GLOBALS['TSFE']->sys_language_uid);
                                         if ($page[0]['content']) {
                                             // loading the email confirmation letter eof
                                             // replacing the variables with dynamic values
                                             $array1 = array();
                                             $array2 = array();
                                             $array1[] = '###ORDERED_QTY###';
                                             $array2[] = $value['qty'];
                                             $array1[] = '###CURRENT_PRODUCT_QUANTITY###';
                                             $array2[] = $row['products_id'];
                                             $array1[] = '###PRODUCT_ID###';
                                             $array2[] = $row['products_quantity'];
                                             $array1[] = '###PRODUCT_NAME###';
                                             $array2[] = $value['products_name'];
                                             $link_edit_prod = $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=edit_product&pid=' . $value['products_id'] . '&cid=' . $value['categories_id'] . '&action=edit_product');
                                             $array1[] = '###DIRECT_EDIT_PRODUCT_LINK###';
                                             $array2[] = '<a href="' . $link_edit_prod . '" target="_blank">' . htmlspecialchars($this->pi_getLL('admin_edit_product')) . '</a>';
                                             // now mail a copy to the merchant
                                             $merchant = array();
                                             $merchant['name'] = $this->ms['MODULES']['STORE_NAME'];
                                             $merchant['email'] = $this->ms['MODULES']['STORE_EMAIL'];
                                             $mailTo = array();
                                             $mailTo[] = $merchant;
                                             //hook to let other plugins further manipulate the replacers
                                             if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.tx_mslib_cart.php']['mailAlertQuantityThresholdPostProc'])) {
                                                 $params = array('array1' => &$array1, 'array2' => &$array2, 'page' => &$page, 'mailTo' => &$mailTo);
                                                 foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.tx_mslib_cart.php']['mailAlertQuantityThresholdPostProc'] as $funcRef) {
                                                     \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
                                                 }
                                             }
                                             //end of hook to let other plugins further manipulate the replacers
                                             if ($page[0]['content']) {
                                                 $page[0]['content'] = str_replace($array1, $array2, $page[0]['content']);
开发者ID:bvbmedia,项目名称:multishop,代码行数:67,代码来源:class.tx_mslib_cart.php

示例6: array

         $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);
     }
 }
 if ($page[0]['name']) {
     $reminder_cms_content = '';
     if ($page[0]['name']) {
         $page[0]['name'] = str_replace($array1, $array2, $page[0]['name']);
         $reminder_cms_content .= '<div class="main-heading"><h2>' . $page[0]['name'] . '</h2></div>';
     }
     if ($page[0]['content']) {
         $page[0]['content'] = str_replace($array1, $array2, $page[0]['content']);
         $reminder_cms_content .= $page[0]['content'];
     }
     $full_customer_name = $tmpArray['billing_first_name'];
     if ($order['billing_middle_name']) {
         $full_customer_name .= ' ' . $tmpArray['billing_middle_name'];
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_orders.php

示例7: array

				' . $page[0]['content'] . '
				</div>';
            }
            if (is_array($page)) {
                break;
            }
        }
        // CMS FOOTER
        $markerArray['###PACKINGSLIP_CONTENT_FOOTER_MESSAGE###'] = '';
        $cmsKeys = array();
        if ($order['payment_method']) {
            $cmsKeys[] = 'pdf_packingslip_footer_message_' . $order['payment_method'];
        }
        $cmsKeys[] = 'pdf_packingslip_footer_message';
        foreach ($cmsKeys as $cmsKey) {
            $page = mslib_fe::getCMScontent($cmsKey, $GLOBALS['TSFE']->sys_language_uid);
            if (!empty($page[0]['content'])) {
                $markerArray['###PACKINGSLIP_CONTENT_FOOTER_MESSAGE###'] = '<div class="content_footer_message" style="page-break-before:auto">
				<br/><br/><br/>
				' . $page[0]['content'] . '
				</div>';
            }
            if (is_array($page)) {
                break;
            }
        }
        // MARKERS
        $array1 = array();
        $array2 = array();
        $array1[] = '###BILLING_FULL_NAME###';
        $array2[] = $order['billing_name'];
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:download_packingslip.php

示例8: sendCreateAccountConfirmationLetter

 function sendCreateAccountConfirmationLetter($customer_id, $password = '')
 {
     if (!is_numeric($customer_id)) {
         return false;
     }
     $page = mslib_fe::getCMScontent('email_create_account_confirmation', $GLOBALS['TSFE']->sys_language_uid);
     if ($page[0]['content']) {
         $newCustomer = mslib_fe::getUser($customer_id);
         // loading the email confirmation letter eof
         // replacing the variables with dynamic values
         $array1 = array();
         $array2 = array();
         $array1[] = '###GENDER_SALUTATION###';
         $array2[] = mslib_fe::genderSalutation($this->post['gender']);
         $array1[] = '###BILLING_COMPANY###';
         $array2[] = $newCustomer['company'];
         $array1[] = '###FULL_NAME###';
         $array2[] = $newCustomer['name'];
         $array1[] = '###BILLING_NAME###';
         $array2[] = $newCustomer['name'];
         $array1[] = '###BILLING_FIRST_NAME###';
         $array2[] = $newCustomer['first_name'];
         $array1[] = '###BILLING_LAST_NAME###';
         $last_name = $newCustomer['last_name'];
         if ($newCustomer['middle_name']) {
             $last_name = $newCustomer['middle_name'] . ' ' . $last_name;
         }
         $array2[] = $last_name;
         $array1[] = '###CUSTOMER_EMAIL###';
         $array2[] = $newCustomer['email'];
         $array1[] = '###BILLING_EMAIL###';
         $array2[] = $newCustomer['email'];
         $array1[] = '###BILLING_ADDRESS###';
         $array2[] = $newCustomer['address'];
         $array1[] = '###BILLING_TELEPHONE###';
         $array2[] = $newCustomer['telephone'];
         $array1[] = '###BILLING_MOBILE###';
         $array2[] = $newCustomer['mobile'];
         $array1[] = '###LONG_DATE###';
         // ie woensdag 23 juni, 2010
         $long_date = strftime($this->pi_getLL('full_date_format'));
         $array2[] = $long_date;
         $array1[] = '###CURRENT_DATE_LONG###';
         // ie woensdag 23 juni, 2010
         $long_date = strftime($this->pi_getLL('full_date_format'));
         $array2[] = $long_date;
         $array1[] = '###STORE_NAME###';
         $array2[] = $this->ms['MODULES']['STORE_NAME'];
         $array1[] = '###CUSTOMER_ID###';
         $array2[] = $customer_id;
         $link = $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2002', '&tx_multishop_pi1[page_section]=confirm_create_account&tx_multishop_pi1[hash]=' . $newCustomer['tx_multishop_code']);
         $array1[] = '###LINK###';
         $array2[] = '<a href="' . $link . '" rel="noreferrer">' . htmlspecialchars($this->pi_getLL('click_here_to_confirm_registration')) . '</a>';
         $array1[] = '###CONFIRMATION_LINK###';
         $array2[] = '<a href="' . $link . '" rel="noreferrer">' . htmlspecialchars($this->pi_getLL('click_here_to_confirm_registration')) . '</a>';
         $array1[] = '###USERNAME###';
         $array2[] = $newCustomer['email'];
         $array1[] = '###PASSWORD###';
         $array2[] = $password;
         if ($page[0]['content']) {
             $page[0]['content'] = str_replace($array1, $array2, $page[0]['content']);
         }
         if ($page[0]['name']) {
             $page[0]['name'] = str_replace($array1, $array2, $page[0]['name']);
         }
         $user = array();
         $user['name'] = $newCustomer['first_name'];
         $user['email'] = $newCustomer['email'];
         mslib_fe::mailUser($user, $page[0]['name'], $page[0]['content'], $this->ms['MODULES']['STORE_EMAIL'], $this->ms['MODULES']['STORE_NAME']);
         return true;
     }
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:72,代码来源:class.mslib_fe.php

示例9: mailOrder


//.........这里部分代码省略.........
         // 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']);
                 }
             }
             if (isset($psp_vars['order_paid'])) {
                 $psp_mail_template['order_paid'] = '';
                 if ($psp_vars['order_paid'] > 0) {
                     $psp_mail_template['order_paid'] = mslib_fe::getCMSType($psp_vars['order_paid']);
                 }
             }
         }
         // loading the email template
         $page = array();
         //hook to let other plugins further manipulate the replacers
         if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['mailOrderPreCMSContent'])) {
             $params = array('page' => &$page, 'order' => &$order, 'mail_template' => $mail_template, 'psp_mail_template' => $psp_mail_template, 'loadFromPids' => $loadFromPids);
             foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['mailOrderPreCMSContent'] as $funcRef) {
                 \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
             }
         }
         if ($mail_template) {
             switch ($mail_template) {
                 case 'email_order_paid_letter':
                     if (isset($psp_mail_template['order_paid'])) {
                         $page = array();
                         if (!empty($psp_mail_template['order_paid'])) {
                             $page = mslib_fe::getCMScontent($psp_mail_template['order_paid'], $GLOBALS['TSFE']->sys_language_uid, $loadFromPids);
                         }
                     } else {
                         if ($order['payment_method']) {
                             $page = mslib_fe::getCMScontent('email_order_paid_letter_' . $order['payment_method'], $GLOBALS['TSFE']->sys_language_uid, $loadFromPids);
                         }
                         if (!count($page[0])) {
                             $page = mslib_fe::getCMScontent('email_order_paid_letter', $GLOBALS['TSFE']->sys_language_uid, $loadFromPids);
                         }
                     }
                     break;
                 default:
                     $page = mslib_fe::getCMScontent($mail_template, $GLOBALS['TSFE']->sys_language_uid, $loadFromPids);
                     break;
             }
         } else {
             if ($order['is_proposal']) {
                 // proposal template
                 $mail_template = 'email_order_proposal';
                 $page = mslib_fe::getCMScontent($mail_template, $GLOBALS['TSFE']->sys_language_uid, $loadFromPids);
             } else {
                 // normal order template
                 if (isset($psp_mail_template['order_confirmation'])) {
                     $page = array();
                     if (!empty($psp_mail_template['order_confirmation'])) {
                         $page = mslib_fe::getCMScontent($psp_mail_template['order_confirmation'], $GLOBALS['TSFE']->sys_language_uid, $loadFromPids);
                     }
                 } else {
                     if ($order['payment_method']) {
                         $page = mslib_fe::getCMScontent('email_order_confirmation_' . $order['payment_method'], $GLOBALS['TSFE']->sys_language_uid, $loadFromPids);
                     }
                     if (!count($page[0])) {
                         $page = mslib_fe::getCMScontent('email_order_confirmation', $GLOBALS['TSFE']->sys_language_uid, $loadFromPids);
开发者ID:bvbmedia,项目名称:multishop,代码行数:67,代码来源:class.tx_mslib_order.php

示例10: array

             $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);
     }
 }
 // custom hook that can be controlled by third-party plugin
 if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/front_pages/includes/checkout.php']['checkoutThankYouPageMarkerPreProc'])) {
     $params = array('order' => $order, 'page' => $page, 'array1' => &$array1, 'array2' => &$array2, 'content' => &$content);
     foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/front_pages/includes/checkout.php']['checkoutThankYouPageMarkerPreProc'] as $funcRef) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
     }
 }
 // custom hook that can be controlled by third-party plugin eof
 if ($page[0]['name']) {
     if ($page[0]['name']) {
         $page[0]['name'] = str_replace($array1, $array2, $page[0]['name']);
         $content .= '<div class="main-heading"><h2>' . $page[0]['name'] . '</h2></div>';
     }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:core.php

示例11: htmlspecialchars

                    $content .= ' (<a href="' . mslib_fe::typolink($this->conf['general_conditions_pid']) . '" target="_blank" class="read_general_conditions">' . $this->pi_getLL('view_general_conditions') . '</a>)';
                }
                $content .= '</div></div>';
            }
            $page = mslib_fe::getCMScontent('checkout_message', $GLOBALS['TSFE']->sys_language_uid);
            if ($page[0]['content']) {
                $content .= '<hr/><div class="checkout_message">' . $page[0]['content'] . '</div>';
            }
            if ($this->ms['MODULES']['DISPLAY_PRIVACY_STATEMENT_LINK_ON_CHECKOUT_PAGE']) {
                $page = mslib_fe::getCMScontent('privacy_statement', $GLOBALS['TSFE']->sys_language_uid);
                if ($page[0]['content']) {
                    $content .= '<hr><div class="privacy_statement_link"><a href="' . mslib_fe::typolink($this->shop_pid, 'tx_multishop_pi1[page_section]=info&tx_multishop_pi1[cms_hash]=' . $page[0]['hash']) . '" target="_blank" class="read_privacy_statement"><span>' . $this->pi_getLL('view_privacy_statement') . '</pan></a></div>';
                }
            }
            if ($this->ms['MODULES']['ENABLE_CHECKOUT_CUSTOMER_INFO_LINK']) {
                $page = mslib_fe::getCMScontent('checkout_customer_info_page', $GLOBALS['TSFE']->sys_language_uid);
                if ($page[0]['content']) {
                    $content .= '<hr><div class="checkout_customer_info_page_link"><a href="' . mslib_fe::typolink($this->shop_pid, 'tx_multishop_pi1[page_section]=info&tx_multishop_pi1[cms_hash]=' . $page[0]['hash']) . '" target="_blank" class="read_customer_additional_info"><span>' . $this->pi_getLL('click_here_to_read_the_additional_customer_information') . '</pan></a></div>';
                }
            }
            $content .= '<div id="bottom-navigation">
					<a href="' . $back_button_link . '" class="msFrontButton backState arrowLeft arrowPosLeft"><span>' . $this->pi_getLL('back') . '</span></a>
					<span class="msFrontButton continueState arrowRight arrowPosLeft"><input name="Submit" type="submit" class="float_right confirm_order_en" value="' . $this->pi_getLL('confirm_order') . '" /></span>
				</div>
			</form>
			</div>
			' . (!$this->ms['MODULES']['HIDE_GENERAL_CONDITIONS_CHECKBOX_ON_CHECKOUT'] ? '
			<script>
			jQuery("#checkout").submit(function(){
				if (!jQuery("#accept_general_conditions").is(":checked")){
					alert(\'' . htmlspecialchars(addslashes($this->pi_getLL('you_havent_accepted_the_general_conditions') . '.')) . '\');
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:checkout_review.php

示例12: ucfirst

				<div class="checkboxAgreement accept_general_conditions_container">
					<div class="checkbox checkbox-success">
						<input name="accept_general_conditions" id="accept_general_conditions" type="checkbox" value="1" />
						<label for="accept_general_conditions">' . $this->pi_getLL('click_here_if_you_agree_the_general_conditions');
                $page = mslib_fe::getCMScontent('general_conditions', $GLOBALS['TSFE']->sys_language_uid);
                if ($page[0]['content']) {
                    $accept_general_conditions .= ' (<a href="' . mslib_fe::typolink($this->shop_pid, 'tx_multishop_pi1[page_section]=info&tx_multishop_pi1[cms_hash]=' . $page[0]['hash']) . '" target="_blank" class="read_general_conditions">' . $this->pi_getLL('view_general_conditions') . '</a>)';
                }
                $accept_general_conditions .= '</div></div>';
            }
            //
            $markerArray['###ACCEPT_GENERAL_CONDITIONS###'] = $accept_general_conditions;
            //
            $privacy_statement_link = '';
            if ($this->ms['MODULES']['DISPLAY_PRIVACY_STATEMENT_LINK_ON_CREATE_ACCOUNT_PAGE']) {
                $page = mslib_fe::getCMScontent('privacy_statement', $GLOBALS['TSFE']->sys_language_uid);
                if ($page[0]['content']) {
                    $privacy_statement_link .= '<div class="privacy_statement_link"><a href="' . mslib_fe::typolink($this->shop_pid, 'tx_multishop_pi1[page_section]=info&tx_multishop_pi1[cms_hash]=' . $page[0]['hash']) . '" target="_blank" class="read_privacy_statement"><span>' . $this->pi_getLL('view_privacy_statement') . '</pan></a></div>';
                }
            }
            $markerArray['###PRIVACY_STATEMENT_LINK###'] = $privacy_statement_link;
            //
            $create_account_username_block = '';
            if ($this->ms['MODULES']['CREATE_ACCOUNT_REGULAR_USERNAME']) {
                $create_account_username_block = '<div class="account-field col-sm-12" id="user-username">
					<label class="account-username" for="username">' . ucfirst($this->pi_getLL('username')) . '<span class="text-danger">*</span></label>
					<input type="text" name="username" class="username" id="username" value="' . $this->post['username'] . '" required="required" />
					<span class="error-space"></span>
				</div>';
            }
            $markerArray['###USERNAME_INPUT###'] = $create_account_username_block;
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:default.php


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