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


PHP AgileSellerManager::getObjectOwnerID方法代码示例

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


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

示例1: getFooter

 public function getFooter()
 {
     $parent_footer = parent::getFooter();
     if (!isset($this->order) or !Validate::isLoadedObject($this->order)) {
         return $parent_footer;
     }
     if (!Module::isInstalled('agilemultipleseller')) {
         return $parent_footer;
     }
     require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $id_seller = AgileSellerManager::getObjectOwnerID('order', $this->order->id);
     $sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller), $this->order->id_lang);
     $id_lang = intval(Configuration::get('PS_COUNTRY_DEFAULT'));
     $this->smarty->assign(array('seller_name' => $sellerinfo->company, 'seller_address' => $sellerinfo->fulladdress($id_lang), 'seller_fax' => $sellerinfo->fax, 'seller_phone' => $sellerinfo->phone, 'sellerinfo' => $sellerinfo));
     return $this->smarty->fetch($this->getTemplate('footer'));
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:16,代码来源:HTMLTemplate.php

示例2: postProcess

 public function postProcess()
 {
     ${"GLOBALS"}["blpimnned"] = "id_order_seller";
     $dbodbxes = "id_order";
     ${${"GLOBALS"}["qusrvgm"]} = (int) Tools::getValue("id_order");
     if (!$this->context->customer->isLogged() && !Tools::getValue("secure_key")) {
         Tools::redirect("index.php?controller=authentication&back=my-account");
     }
     ${"GLOBALS"}["tvasln"] = "id_order";
     $jpdhpfqcj = "id_order";
     if (!(int) Configuration::get("PS_INVOICE")) {
         die(Tools::displayError("Invoices are disabled in this shop."));
     }
     if (isset(${${"GLOBALS"}["qusrvgm"]}) && Validate::isUnsignedId(${$dbodbxes})) {
         ${${"GLOBALS"}["ymjzko"]} = new Order(${$jpdhpfqcj});
     }
     if (!isset(${${"GLOBALS"}["ymjzko"]}) || !Validate::isLoadedObject(${${"GLOBALS"}["ymjzko"]})) {
         die(Tools::displayError("Invoice not found"));
     }
     ${${"GLOBALS"}["vewtbt"]} = AgileSellerManager::getObjectOwnerID("order", ${${"GLOBALS"}["tvasln"]});
     ${${"GLOBALS"}["sokafjqdei"]} = AgileSellerManager::getLinkedSellerID($this->context->customer->id);
     if (${${"GLOBALS"}["blpimnned"]} != ${${"GLOBALS"}["sokafjqdei"]}) {
         die(Tools::displayError("You do not have permission to see this invoice"));
     }
     if (Tools::isSubmit("secure_key") && $order->secure_key != Tools::getValue("secure_key")) {
         die(Tools::displayError("You do not have permission to see this invoice"));
     }
     if (!OrderState::invoiceAvailable($order->getCurrentState()) && !$order->invoice_number) {
         die(Tools::displayError("No invoice available"));
     }
     $this->order = ${${"GLOBALS"}["ymjzko"]};
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:32,代码来源:sellerpdfinvoice.php

示例3: listAllowed

 private function listAllowed()
 {
     global $smarty;
     if (Module::isInstalled('agilemultipleseller')) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         $id_owner = AgileSellerManager::getObjectOwnerID('product', Tools::getValue('id_product'));
         $smarty->assign(array('id_seller' => $id_owner));
         if ($id_owner > 0) {
             if (intval(Configuration::get('AGILE_MS_PRODUCT_APPROVAL')) == 1) {
                 $approved = AgileMultipleSeller::is_list_approved(Tools::getValue('id_product'));
                 if ($approved != 1) {
                     return false;
                 }
             }
             if (Module::isInstalled('agilesellerlistoptions')) {
                 include_once _PS_ROOT_DIR_ . "/modules/agilesellerlistoptions/agilesellerlistoptions.php";
                 $listoption = AgileSellerListOptions::get_product_list_option(Tools::getValue('id_product'), AgileSellerListOptions::ASLO_OPTION_LIST);
                 $liststatus = intval($listoption['status']);
                 $aslo_list_prod_id = intval(Configuration::get('ASLO_PROD_FOR_OPTION' . AgileSellerListOptions::ASLO_OPTION_LIST));
                 if ($liststatus != AgileSellerListOptions::ASLO_STATUS_IN_EFFECT && $aslo_list_prod_id != AgileSellerListOptions::ASLO_ALWAYS_FREE) {
                     return false;
                 }
             }
         }
     }
     return true;
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:28,代码来源:ProductController.php

示例4: init

 public function init()
 {
     parent::init();
     if (!Module::isInstalled('agilemultipleseller')) {
         return;
     }
     $id_owner = AgileSellerManager::getObjectOwnerID('category', Tools::getValue('id_category'));
     $this->context->smarty->assign(array('show_assign_product_button' => (!$this->is_seller and $id_owner > 0) ? 1 : 0));
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:9,代码来源:AdminCategoriesController.php

示例5: renderGenericForm

 public function renderGenericForm($fields_form, $fields_value, $tpl_vars = array())
 {
     if ($fields_form['form']['form']['id_form'] == 'step_carrier_summary') {
         $fields_value['id_seller'] = AgileSellerManager::getObjectOwnerID('carrier', Tools::getValue('id_carrier'));
         if ($this->is_seller) {
             array_unshift($fields_form['form']['form']['input'], array('type' => 'hidden', 'label' => $this->l('Seller:'), 'name' => 'id_seller', 'required' => false));
         } else {
             array_unshift($fields_form['form']['form']['input'], array('type' => 'select', 'label' => $this->l('Seller:'), 'name' => 'id_seller', 'required' => false, 'default_value' => $fields_value['id_seller'], 'options' => array('query' => AgileSellerManager::getSellersNV(true, $this->l('Store Shared')), 'id' => 'id_seller', 'name' => 'name'), 'desc' => $this->l('If this is private seller data, please choose the seller. Otherwise please choose Store Shared')));
         }
     }
     return parent::renderGenericForm($fields_form, $fields_value, $tpl_vars);
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:12,代码来源:AdminCarrierWizardController.php

示例6: 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);
 }
开发者ID:evilscripts,项目名称:gy,代码行数:43,代码来源:Mail.php

示例7: getCarriers

 public static function getCarriers($id_lang, $active = false, $delete = false, $id_zone = false, $ids_group = NULL, $modules_filters = 1)
 {
     global $cookie, $cart;
     $carriers = parent::getCarriers($id_lang, $active, $delete, $id_zone, $ids_group, $modules_filters);
     if (!Module::isInstalled('agilemultipleseller')) {
         return $carriers;
     }
     $id_seller_for_filter = AgileSellerManager::get_id_seller_for_filter();
     if ((int) $id_seller_for_filter <= 0) {
         return $carriers;
     }
     $retCarriers = array();
     foreach ($carriers as $carrier) {
         $id_owner = AgileSellerManager::getObjectOwnerID('carrier', $carrier['id_carrier']);
         if ($id_seller_for_filter == $id_owner || $id_owner == 0) {
             $retCarriers[] = $carrier;
         }
     }
     return $retCarriers;
 }
开发者ID:evilscripts,项目名称:gy,代码行数:20,代码来源:Carrier.php

示例8: getCustomerOrders

 public static function getCustomerOrders($id_customer, $showHiddenStatus = false, Context $context = null)
 {
     $res = parent::getCustomerOrders($id_customer, $showHiddenStatus, $context);
     if (!Module::isInstalled('agilemultipleseller')) {
         return $res;
     }
     if ($context == null) {
         $context = Context::getContext();
     }
     if ($context->cookie->id_employee == 0 || $context->cookie->profile != (int) Configuration::get('AGILE_MS_PROFILE_ID')) {
         return $res;
     }
     $ret = array();
     foreach ($res as $data) {
         $id_owner = AgileSellerManager::getObjectOwnerID('order', $data['id_order']);
         if ($id_owner != $context->cookie->id_employee) {
             continue;
         }
         $ret[] = $data;
     }
     return $ret;
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:22,代码来源:Order.php

示例9: init

 public function init()
 {
     parent::init();
     ${"GLOBALS"}["tvubeipssbhz"] = "id_product";
     $bxgngnjmt = "action";
     $this->orderBy = Tools::getValue("agile_orderby");
     $this->orderWay = Tools::getValue("agile_orderway");
     $cegzdngh = "id_product";
     ${$bxgngnjmt} = Tools::getValue("process");
     ${$cegzdngh} = Tools::getValue("id_product");
     if (isset(${${"GLOBALS"}["xmejvhmbjf"]}) && isset(${${"GLOBALS"}["tvubeipssbhz"]})) {
         ${"GLOBALS"}["qcujxbitt"] = "action";
         $ljdeuuxtnpu = "action";
         if (${${"GLOBALS"}["qcujxbitt"]} == "delete") {
             $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId($this->context->customer->id), $this->context->language->id);
             if ($this->sellerinfo->id_seller > 0 and $this->sellerinfo->id_seller == AgileSellerManager::getObjectOwnerID("product", ${${"GLOBALS"}["kswjllrrkq"]})) {
                 ${"GLOBALS"}["jbichwqsqmye"] = "product";
                 $gmydjry = "product";
                 ${${"GLOBALS"}["xbssqyr"]} = new Product((int) ${${"GLOBALS"}["kswjllrrkq"]});
                 $this->beforeDelete(${${"GLOBALS"}["jbichwqsqmye"]});
                 if (!$product->delete()) {
                     $this->errors[] = Tools::displayError("Error occured during deleting the product.");
                 }
                 $this->afterDelete(${$gmydjry}, $product->id);
             } else {
                 $this->errors[] = Tools::displayError("You do not have permission to delete this product or the product is not found.");
             }
         } else {
             if (${${"GLOBALS"}["xmejvhmbjf"]} == "inactive" || ${$ljdeuuxtnpu} == "active") {
                 $gvvbmjfbht = "id_product";
                 ${${"GLOBALS"}["xbssqyr"]} = new Product((int) ${$gvvbmjfbht});
                 $product->active = !$product->active;
                 $product->update();
                 $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId($this->context->customer->id), $this->context->language->id);
                 AgileSellerManager::assignObjectOwner("product", ${${"GLOBALS"}["kswjllrrkq"]}, $this->sellerinfo->id_seller);
             }
         }
     }
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:39,代码来源:sellerproducts.php

示例10: get_id_seller_for_filter

 public static function get_id_seller_for_filter()
 {
     ${"GLOBALS"}["qiiongrev"] = "product";
     ${"GLOBALS"}["yeykkaps"] = "products";
     $ikevdmetmg = "sellerinfo";
     global $cookie, $cart;
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     $kqcbjrlxynx = "pagename";
     ${"GLOBALS"}["umyseswefycc"] = "product";
     ${${"GLOBALS"}["wbxvbzu"]} = AgileHelper::getPageName();
     switch (${$kqcbjrlxynx}) {
         case "sellercarrierdetail.php":
         case "sellercarrierranges.php":
         case "sellercarriers.php":
             ${$ikevdmetmg} = new SellerInfo(SellerInfo::getIdByCustomerId($cookie->id_customer));
             return $sellerinfo->id_seller;
         case "sellerproductdetail.php":
         case "adminproducts.php":
             if (!Module::isInstalled("agilemultipleseller")) {
                 return 0;
             }
             if (Module::isInstalled("agilesellershipping")) {
                 return AgileSellerManager::getObjectOwnerID("product", (int) Tools::getValue("id_product"));
             } else {
                 if ((int) $cookie->id_employee > 0 and (int) $cookie->profile == (int) Configuration::get("AGILE_MS_PROFILE_ID")) {
                     return (int) $cookie->id_employee;
                 }
                 return 0;
             }
             break;
         case "admincarriers.php":
         case "adminshipping.php":
         case "adminrangeprice.php":
         case "adminrangeweight.php":
             if ((int) $cookie->id_employee > 0 and (int) $cookie->profile == (int) Configuration::get("AGILE_MS_PROFILE_ID")) {
                 return (int) $cookie->id_employee;
             }
             return 0;
         default:
             if (Module::isInstalled("agilesellershipping")) {
                 return 0;
             }
             if ((int) Configuration::get("AGILE_MS_CART_MODE") != 1) {
                 return 0;
             }
             if (!Validate::isLoadedObject(${${"GLOBALS"}["ecvudvgddzt"]})) {
                 return 0;
             }
             ${${"GLOBALS"}["jrxrnmbebk"]} = $cart->getProducts();
             if (!sizeof(${${"GLOBALS"}["jrxrnmbebk"]})) {
                 return 0;
             }
             ${${"GLOBALS"}["qiiongrev"]} = array_shift(${${"GLOBALS"}["yeykkaps"]});
             return intval(AgileSellerManager::getObjectOwnerID("product", ${${"GLOBALS"}["umyseswefycc"]}["id_product"]));
     }
 }
开发者ID:evilscripts,项目名称:gy,代码行数:56,代码来源:AgileSellerManager.php

示例11: dirname

${"GLOBALS"}["lfghcw"] = "id_seller";
$ntguafqd = "action";
require_once dirname(__FILE__) . "/../../config/config.inc.php";
require_once dirname(__FILE__) . "/../../init.php";
require_once dirname(__FILE__) . "/agilemultipleseller.php";
$tsxqgqfuyd = "action";
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
${"GLOBALS"}["lzguktzczwfp"] = "id_seller";
if (!isset(Context::getContext()->customer) || !Context::getContext()->customer->id || !Context::getContext()->customer->isLogged()) {
    die(Tools::jsonEncode(array("status" => "error", "message" => Tools::displayError("Permission denied"))));
}
${${"GLOBALS"}["lfghcw"]} = AgileSellerManager::getLinkedSellerID(Context::getContext()->customer->id);
${$rnxrpiazvd} = intval(Tools::getValue("id_product"));
${"GLOBALS"}["okfswszsrpim"] = "action";
$kjbefxe = "action";
if (${${"GLOBALS"}["lfghcw"]} > 0 and ${${"GLOBALS"}["dwydims"]} > 0 and ${${"GLOBALS"}["lzguktzczwfp"]} != AgileSellerManager::getObjectOwnerID("product", ${${"GLOBALS"}["dwydims"]})) {
    die(Tools::jsonEncode(array("status" => "error", "message" => Tools::displayError("Permission denied"))));
}
${${"GLOBALS"}["okfswszsrpim"]} = Tools::getValue("action");
$strbdkmkszb = "action";
if (${$ntguafqd} == "updateImagePosition") {
    die(ajaxProcessUpdateImagePosition());
}
if (${${"GLOBALS"}["kfciqhovvbq"]} == "deleteProductImage") {
    die(ajaxProcessDeleteProductImage());
}
if (${${"GLOBALS"}["kfciqhovvbq"]} == "UpdateCover") {
    die(ajaxProcessUpdateCover());
}
if (${$kjbefxe} == "UpdateProductImageShopAsso") {
    die(ajaxProcessUpdateProductImageShopAsso());
开发者ID:evilscripts,项目名称:gy,代码行数:31,代码来源:ajax_products.php

示例12: dirname

${"GLOBALS"}["ibxcivfzq"] = "id_product";
${"GLOBALS"}["xgstnxdbghr"] = "amodule";
${"GLOBALS"}["hqbmibkbotjk"] = "cartProducts";
require_once dirname(__FILE__) . "/../../config/config.inc.php";
require_once dirname(__FILE__) . "/../../init.php";
require_once dirname(__FILE__) . "/agilemultipleseller.php";
${"GLOBALS"}["esxaacg"] = "cartProducts";
$ybpyjoj = "cart";
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
if (!${$ybpyjoj}) {
    return;
}
if (intval(Configuration::get("AGILE_MS_CART_MODE")) == AgileMultipleSeller::CART_MODE_MULTIPLE_SELLER) {
    die("OK");
}
${${"GLOBALS"}["hqbmibkbotjk"]} = $cart->getProducts();
if (empty(${${"GLOBALS"}["esxaacg"]})) {
    die("OK");
}
${"GLOBALS"}["pdipnbsi"] = "product";
${${"GLOBALS"}["xgstnxdbghr"]} = new AgileMultipleSeller();
${${"GLOBALS"}["ibxcivfzq"]} = intval(Tools::getValue("id_product"));
${${"GLOBALS"}["qzpehthyxv"]} = AgileSellerManager::getObjectOwnerID("product", ${${"GLOBALS"}["ibxcivfzq"]});
foreach (${${"GLOBALS"}["hqbmibkbotjk"]} as ${${"GLOBALS"}["pdipnbsi"]}) {
    ${"GLOBALS"}["exmfcqtbvsst"] = "id_owner";
    ${${"GLOBALS"}["lwovhblqe"]} = AgileSellerManager::getObjectOwnerID("product", ${${"GLOBALS"}["kcrxatzs"]}["id_product"]);
    if (${${"GLOBALS"}["lwovhblqe"]} != ${${"GLOBALS"}["exmfcqtbvsst"]}) {
        die($amodule->getL("ProductIsFromDifferentSellerInCart"));
    }
}
die("OK");
开发者ID:evilscripts,项目名称:gy,代码行数:31,代码来源:ajax_checkseller.php

示例13: sendNewProductEmail

 public static function sendNewProductEmail($id_product)
 {
     $xggjsvkh = "configuration";
     global $cookie;
     ${"GLOBALS"}["xbjyuoys"] = "temp_folder";
     ${"GLOBALS"}["vjxxjrtfrf"] = "id_lang";
     $xinjhagz = "id_product";
     ${$xggjsvkh} = Configuration::getMultiple(array("PS_SHOP_EMAIL", "PS_SHOP_NAME"));
     if (intval(Configuration::get("AGILE_MS_PRODUCT_APPROVAL")) != 1) {
         return;
     }
     $cqsinufwsm = "companyName";
     ${"GLOBALS"}["okfxuwdv"] = "product";
     ${${"GLOBALS"}["cloygkl"]} = new Product(${${"GLOBALS"}["jcoawuufl"]}, false, $cookie->id_lang);
     $etqhqhju = "employee";
     ${${"GLOBALS"}["qdndcj"]} = AgileSellerManager::getObjectOwnerID("product", ${$xinjhagz});
     ${"GLOBALS"}["ysdqyel"] = "employee";
     $xmedjmaw = "iso";
     ${"GLOBALS"}["nuyqlbamq"] = "companyName";
     $uvjwwq = "sellerinfo";
     ${${"GLOBALS"}["ysdqyel"]} = new Employee(${${"GLOBALS"}["qdndcj"]});
     $jlkaces = "temp_folder";
     if (!Validate::isLoadedObject(${$etqhqhju}) or !Validate::isLoadedObject(${${"GLOBALS"}["okfxuwdv"]})) {
         return;
     }
     $ghlvsitdsd = "iso";
     include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
     ${$uvjwwq} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["qdndcj"]}), $cookie->id_lang);
     ${${"GLOBALS"}["xqwnedvrkeb"]} = $cookie->id_lang;
     ${$xmedjmaw} = Language::getIsoById(${${"GLOBALS"}["vjxxjrtfrf"]});
     ${${"GLOBALS"}["xipiacxo"]} = $sellerinfo->company;
     if (empty(${${"GLOBALS"}["nuyqlbamq"]})) {
         ${${"GLOBALS"}["xipiacxo"]} = $employee->firstName + $employee->lastName;
     }
     ${${"GLOBALS"}["tkxwrio"]} = array("{seller_company}" => ${$cqsinufwsm}, "{seller_id}" => $employee->id, "{product_name}" => $product->name, "{product_id}" => $product->id, "{shop_name}" => Configuration::get("PS_SHOP_NAME"), "{shop_url}" => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__, "{shop_logo}" => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ . "img/logo.jpg");
     ${"GLOBALS"}["tzzidbejopm"] = "temp_folder";
     ${$jlkaces} = _PS_ROOT_DIR_ . "/modules/agilemultipleseller/mails/";
     if (!file_exists(${${"GLOBALS"}["tzzidbejopm"]} . ${${"GLOBALS"}["gkzsuno"]} . "/new_product.txt") or !file_exists(${${"GLOBALS"}["xbjyuoys"]} . ${${"GLOBALS"}["gkzsuno"]} . "/new_product.html")) {
         $hmfysdpkb = "iso";
         ${"GLOBALS"}["nzwsvuszmn"] = "id_lang";
         ${${"GLOBALS"}["xqwnedvrkeb"]} = (int) Configuration::get("PS_LANG_DEFAULT");
         ${$hmfysdpkb} = Language::getIsoById(${${"GLOBALS"}["nzwsvuszmn"]});
     }
     if (file_exists(${${"GLOBALS"}["qrcgvjrrwwd"]} . ${$ghlvsitdsd} . "/new_product.txt") and file_exists(${${"GLOBALS"}["qrcgvjrrwwd"]} . ${${"GLOBALS"}["gkzsuno"]} . "/new_product.html")) {
         $pnpqspg = "id_lang";
         $eoeoxctjohan = "configuration";
         $ghasalo = "templateVars";
         $folgfpf = "configuration";
         AgileMultipleSellerMailer::SendTranslateSubject(${$pnpqspg}, "new_product", ${$ghasalo}, ${$folgfpf}["PS_SHOP_EMAIL"], "Administrator", ${${"GLOBALS"}["hhrxtypttw"]}["PS_SHOP_EMAIL"], ${$eoeoxctjohan}["PS_SHOP_NAME"], NULL, NULL, ${${"GLOBALS"}["qrcgvjrrwwd"]});
     }
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:51,代码来源:AgileMultipleSellerBase.php

示例14: initContent

 public function initContent()
 {
     ${"GLOBALS"}["wcbwhorf"] = "id_order";
     parent::initContent();
     if (!(${${"GLOBALS"}["tdrhijkvhp"]} = (int) Tools::getValue("id_order")) || !Validate::isUnsignedId(${${"GLOBALS"}["wcbwhorf"]})) {
         $this->errors[] = Tools::displayError("Order ID required");
     } else {
         ${"GLOBALS"}["vtkcznmlk"] = "id_customer_seller";
         ${"GLOBALS"}["bwkdjg"] = "id_order";
         ${${"GLOBALS"}["thtbvco"]} = new Order(${${"GLOBALS"}["bwkdjg"]});
         ${"GLOBALS"}["tkggscllp"] = "order";
         ${${"GLOBALS"}["gfrblyem"]} = AgileSellerManager::getObjectOwnerID("order", $order->id);
         ${${"GLOBALS"}["taultlaseq"]} = AgileSellerManager::getLinkedSellerID($this->context->customer->id);
         if (Validate::isLoadedObject(${${"GLOBALS"}["thtbvco"]}) && ${${"GLOBALS"}["gfrblyem"]} == ${${"GLOBALS"}["vtkcznmlk"]} && ${${"GLOBALS"}["taultlaseq"]} > 0) {
             $fwsweyfqnpv = "dlv_adr_fields";
             $gcjosivnd = "carrier";
             ${"GLOBALS"}["pffjtshcnb"] = "deliveryAddressFormatedValues";
             $uztnjfwuwsv = "customizedDatas";
             $uvmwhue = "addressDelivery";
             ${"GLOBALS"}["atrcjjwf"] = "carrier";
             ${"GLOBALS"}["flawpcbih"] = "products";
             ${${"GLOBALS"}["tthrzd"]} = (int) $order->getCurrentState();
             ${$gcjosivnd} = new Carrier((int) $order->id_carrier, (int) $order->id_lang);
             ${"GLOBALS"}["rovfqvkjb"] = "addressDelivery";
             ${${"GLOBALS"}["hoviucftx"]} = new Address((int) $order->id_address_invoice);
             $mjqwhmgoyrm = "customizedDatas";
             ${"GLOBALS"}["qguglflbdd"] = "dlv_adr_fields";
             $sitqckqhoebi = "inv_adr_fields";
             $vejelhbyrbl = "addressDelivery";
             ${"GLOBALS"}["zpyvneijb"] = "addressInvoice";
             $tsvbkseunn = "dlv_adr_fields";
             ${"GLOBALS"}["cdlqrupc"] = "inv_adr_fields";
             ${${"GLOBALS"}["rovfqvkjb"]} = new Address((int) $order->id_address_delivery);
             ${$sitqckqhoebi} = AddressFormat::getOrderedAddressFields($addressInvoice->id_country);
             $shfzuivbjgg = "inv_adr_fields";
             ${${"GLOBALS"}["qguglflbdd"]} = AddressFormat::getOrderedAddressFields($addressDelivery->id_country);
             ${${"GLOBALS"}["elucej"]} = AddressFormat::getFormattedAddressFieldsValues(${${"GLOBALS"}["hoviucftx"]}, ${$shfzuivbjgg});
             ${${"GLOBALS"}["pffjtshcnb"]} = AddressFormat::getFormattedAddressFieldsValues(${${"GLOBALS"}["gkxhkddsjf"]}, ${$fwsweyfqnpv});
             $tbfgtqy = "order";
             if ($order->total_discounts > 0) {
                 $this->context->smarty->assign("total_old", (double) ($order->total_paid - $order->total_discounts));
             }
             ${"GLOBALS"}["ikavgzhqpt"] = "deliveryAddressFormatedValues";
             ${${"GLOBALS"}["flawpcbih"]} = $order->getProducts();
             ${${"GLOBALS"}["gdodxcerle"]} = Product::getAllCustomizedDatas((int) $order->id_cart);
             Product::addCustomizationPrice(${${"GLOBALS"}["umrxyqn"]}, ${$mjqwhmgoyrm});
             $buaccdx = "carrier";
             ${${"GLOBALS"}["cdmray"]} = new Customer($order->id_customer);
             ${"GLOBALS"}["betrwosx"] = "products";
             ${${"GLOBALS"}["bfrxhizen"]} = $order->getCurrentOrderState();
             ${${"GLOBALS"}["sslziuxrs"]} = OrderState::getOrderStates((int) $this->context->language->id);
             ${"GLOBALS"}["bwcmquq"] = "addressInvoice";
             $this->context->smarty->assign(array("order_states" => ${${"GLOBALS"}["sslziuxrs"]}));
             $this->context->smarty->assign(array("shop_name" => strval(Configuration::get("PS_SHOP_NAME")), "order" => ${${"GLOBALS"}["thtbvco"]}, "return_allowed" => (int) $order->isReturnable(), "currency" => new Currency($order->id_currency), "order_cur_state" => (int) ${${"GLOBALS"}["tthrzd"]}, "invoiceAllowed" => (int) Configuration::get("PS_INVOICE"), "invoice" => OrderState::invoiceAvailable(${${"GLOBALS"}["tthrzd"]}) && $order->invoice_number, "order_history" => $order->getHistory($this->context->language->id, false, true), "products" => ${${"GLOBALS"}["betrwosx"]}, "discounts" => $order->getCartRules(), "carrier" => ${${"GLOBALS"}["atrcjjwf"]}, "address_invoice" => ${${"GLOBALS"}["bwcmquq"]}, "invoiceState" => Validate::isLoadedObject(${${"GLOBALS"}["zpyvneijb"]}) && $addressInvoice->id_state ? new State($addressInvoice->id_state) : false, "address_delivery" => ${$uvmwhue}, "inv_adr_fields" => ${${"GLOBALS"}["cdlqrupc"]}, "dlv_adr_fields" => ${$tsvbkseunn}, "invoiceAddressFormatedValues" => ${${"GLOBALS"}["elucej"]}, "deliveryAddressFormatedValues" => ${${"GLOBALS"}["ikavgzhqpt"]}, "deliveryState" => Validate::isLoadedObject(${${"GLOBALS"}["gkxhkddsjf"]}) && $addressDelivery->id_state ? new State($addressDelivery->id_state) : false, "is_guest" => false, "messages" => CustomerMessage::getMessagesByOrderId((int) $order->id, false), "CUSTOMIZE_FILE" => Product::CUSTOMIZE_FILE, "CUSTOMIZE_TEXTFIELD" => Product::CUSTOMIZE_TEXTFIELD, "isRecyclable" => Configuration::get("PS_RECYCLABLE_PACK"), "use_tax" => Configuration::get("PS_TAX"), "group_use_tax" => Group::getPriceDisplayMethod($customer->id_default_group) == PS_TAX_INC, "customizedDatas" => ${$uztnjfwuwsv}));
             if ($carrier->url && $order->shipping_number) {
                 $this->context->smarty->assign("followup", str_replace("@", $order->shipping_number, $carrier->url));
             }
             $this->context->smarty->assign("HOOK_ORDERDETAILDISPLAYED", Hook::exec("displayOrderDetail", array("order" => ${${"GLOBALS"}["thtbvco"]})));
             Hook::exec("actionOrderDetail", array("carrier" => ${${"GLOBALS"}["tvqrewgc"]}, "order" => ${$tbfgtqy}));
             unset(${$buaccdx}, ${${"GLOBALS"}["hoviucftx"]}, ${$vejelhbyrbl});
         } else {
             $this->errors[] = Tools::displayError("Cannot find this order");
         }
         unset(${${"GLOBALS"}["tkggscllp"]});
     }
     self::$smarty->assign(array("seller_tab_id" => 4));
     $this->setTemplate("sellerorderdetail.tpl");
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:68,代码来源:sellerorderdetail.php

示例15: getTotalAmountOfSeller

 private function getTotalAmountOfSeller($products, $id_seller)
 {
     $total = 0;
     foreach ($products as $key => $product) {
         $id_owner = intval(AgileSellerManager::getObjectOwnerID('product', $product['id_product']));
         if ($id_seller != $id_owner) {
             continue;
         }
         $total += $product['price_wt'] * $product['cart_quantity'];
     }
     return $total;
 }
开发者ID:evilscripts,项目名称:gy,代码行数:12,代码来源:Cart.php


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