本文整理汇总了PHP中AgileSellerManager::appendMailTemplateVars方法的典型用法代码示例。如果您正苦于以下问题:PHP AgileSellerManager::appendMailTemplateVars方法的具体用法?PHP AgileSellerManager::appendMailTemplateVars怎么用?PHP AgileSellerManager::appendMailTemplateVars使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AgileSellerManager
的用法示例。
在下文中一共展示了AgileSellerManager::appendMailTemplateVars方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Send
public static function Send($id_lang, $template, $subject, $templateVars, $to, $toName = NULL, $from = NULL, $fromName = NULL, $fileAttachment = NULL, $modeSMTP = NULL, $templatePath = _PS_MAIL_DIR_, $die = false, $id_shop = NULL, $bcc = null)
{
if (Module::isInstalled('agileprepaidcredit') and $template == 'payment_error') {
if (AgilePrepaidCredit::isPaymentErrorCausedByTokens($templateVars) > 0) {
return true;
}
}
$order_info_templates = array('order_conf', 'bankwire', 'cheque', 'new_order');
if (Module::isInstalled('agilesellershipping') and in_array($template, $order_info_templates)) {
AgileSellerManager::adjust_shipping_cost_carriers($templateVars);
}
if (Module::isInstalled('agilepickupcenter') and $template == 'order_conf') {
require_once _PS_ROOT_DIR_ . "/modules/agilepickupcenter/agilepickupcenter.php";
$amodule = new AgilePickupCenter();
$templateVars = $amodule->transform_mail_data($templateVars);
if (isset($templateVars['{carrier_email}']) and Validate::isEmail($templateVars['{carrier_email}'])) {
parent::Send($id_lang, $template, $subject, $templateVars, $templateVars['{carrier_email}'], $toName, $from, $fromName, $fileAttachment, $modeSMTP, $templatePath, $die, $id_shop, $bcc);
}
}
if (in_array($template, $order_info_templates)) {
$shop_email = Configuration::get('PS_SHOP_EMAIL');
if (Module::isInstalled('agilemultipleseller')) {
require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
$templateVars = AgileSellerManager::appendMailTemplateVars($templateVars, $id_lang);
}
if (Module::isInstalled('agileprepaidcredit') and in_array($template, array('bankwire', 'cheque'))) {
require_once _PS_ROOT_DIR_ . "/modules/agileprepaidcredit/agileprepaidcredit.php";
$templateVars = AgilePrepaidCredit::replace_amount2pay($templateVars);
}
parent::Send($id_lang, $template, $subject, $templateVars, $shop_email, $toName, $from, $fromName, $fileAttachment, $modeSMTP, $templatePath, $die, $id_shop, $bcc);
}
if (Module::isInstalled('agilemultipleseller') and $template == 'order_customer_comment') {
$id_order = intval($templateVars['{id_order}']);
$id_seller = AgileSellerManager::getObjectOwnerID('order', $id_order);
$seller = new Employee($id_seller);
parent::Send($id_lang, $template, $subject, $templateVars, $seller->email, $toName, $from, $fromName, $fileAttachment, $modeSMTP, $templatePath, $die, $id_shop, $bcc);
}
if (Module::isInstalled('agilemultipleseller') and $template == 'order_conf') {
require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php";
AgileMultipleSeller::sendNewOrderMail($id_lang, $templateVars, $from, $fromName, $fileAttachment, $modeSMTP, $die, $id_shop, $bcc);
}
return parent::Send($id_lang, $template, $subject, $templateVars, $to, $toName, $from, $fromName, $fileAttachment, $modeSMTP, $templatePath, $die, $id_shop, $bcc);
}