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


PHP Shop::shop_name_duplicated方法代码示例

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


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

示例1: processSubmitSellerinfo

 protected function processSubmitSellerinfo()
 {
     $lang_cookie = self::$cookie->id_lang;
     if ($lang_cookie != 1) {
         $_POST['address1_1'] = $_POST['address1_' . $lang_cookie];
         $_POST['address2_1'] = $_POST['address1_' . $lang_cookie];
         $_POST['address2_1'] = $_POST['address1_' . $lang_cookie];
         $_POST['city_1'] = $_POST['city_' . $lang_cookie];
         $_POST['description_1'] = $_POST['description_' . $lang_cookie];
     }
     ${"GLOBALS"}["vjnnsubap"] = "list";
     $vhheljumal = "selected_country";
     $zryhlvp = "list";
     $tjuksry = "countries";
     ${"GLOBALS"}["vpjnzdqa"] = "countries";
     if (Tools::isSubmit("id_country") && !is_null(Tools::getValue("id_country")) && is_numeric(Tools::getValue("id_country"))) {
         ${$vhheljumal} = (int) Tools::getValue("id_country");
     } else {
         if (isset($this->sellerinfo) && isset($this->sellerinfo->id_country) && !empty($this->sellerinfo->id_country) && is_numeric($this->sellerinfo->id_country)) {
             ${${"GLOBALS"}["ontiydub"]} = (int) $this->sellerinfo->id_country;
         } else {
             if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) {
                 $duwbhhjzvvl = "array";
                 ${$duwbhhjzvvl} = preg_split("/,|-/", $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
                 if (!Validate::isLanguageIsoCode(${${"GLOBALS"}["tjlrhpthnf"]}[0]) || !(${${"GLOBALS"}["ontiydub"]} = Country::getByIso(${${"GLOBALS"}["tjlrhpthnf"]}[0]))) {
                     ${${"GLOBALS"}["ontiydub"]} = (int) Configuration::get("PS_COUNTRY_DEFAULT");
                 }
             } else {
                 ${${"GLOBALS"}["ontiydub"]} = (int) Configuration::get("PS_COUNTRY_DEFAULT");
             }
         }
     }
     if (Configuration::get("PS_RESTRICT_DELIVERED_COUNTRIES")) {
         ${${"GLOBALS"}["vpjnzdqa"]} = Carrier::getDeliveredCountries($this->context->language->id, true, true);
     } else {
         ${${"GLOBALS"}["coohkibbnl"]} = Country::getCountries($this->context->language->id, true);
     }
     ${$zryhlvp} = "";
     $countries = ${$tjuksry};
     /**************** LANGUAGE LEVEL *******************/
     $seller_id_lang = $this->sellerinfo->id_seller;
     $langLevel = Tools::getValue("lang_level");
     $dialect = Tools::getValue("lang");
     $main_lang = Tools::getValue('main_lang');
     /*foreach ($dialect as $key => $value) {
           $level = $langLevel[$key];
           Db::getInstance(_PS_USE_SQL_SLAVE_)->execute("
               INSERT INTO " . _DB_PREFIX_ . "sellerinfo_language (seller_id, language, language_level)
               VALUES ('$seller_id_lang', '$value', '$level')
           ");
       }*/
     // die('<pre>' . print_r($dialect, true));
     $langLevel = implode(',', Tools::getValue("lang_level"));
     $languages = implode(',', Tools::getValue("lang"));
     $this->sellerinfo->language = $languages;
     $this->sellerinfo->language_level = $langLevel;
     $this->sellerinfo->main_language = $main_lang;
     $jlbwjt = "shop_name";
     ${"GLOBALS"}["oonrqhi"] = "shop_name";
     ${"GLOBALS"}["zlobvkbr"] = "virtual_uri";
     AgileMultipleSeller::ensure_date_custom_field();
     $uskhfeodhv = "zip_code_format";
     ${${"GLOBALS"}["oonrqhi"]} = "";
     if (isset($_POST["shop_name"])) {
         ${$jlbwjt} = trim($_POST["shop_name"], " ");
     }
     $famsbcd = "country";
     if (isset($_POST["virtual_uri"])) {
         ${${"GLOBALS"}["zlobvkbr"]} = Tools::link_rewrite(trim($_POST["virtual_uri"], " /")) . "/";
     }
     /*if (empty($_POST["postcode"]))
       $this->errors[] = Tools::displayError("Postcode is required field.");*/
     if (empty($_POST["address1_1"])) {
         $this->errors[] = Tools::displayError("Address is required field.");
     }
     if (empty($_POST["city_1"])) {
         $this->errors[] = Tools::displayError("City is required field.");
     }
     if (empty($_POST["phone"])) {
         $this->errors[] = Tools::displayError("Phone is required field.");
     }
     $this->errors = array_merge($this->errors, $this->sellerinfo->validateController());
     $this->sellerinfo->id_customer = self::$cookie->id_customer;
     if (Module::isInstalled("agilemultipleshop")) {
         $mcovgfrp = "shop_name";
         ${"GLOBALS"}["xdpblji"] = "seller_shopurl";
         if (empty(${$mcovgfrp})) {
             $this->errors[] = Tools::displayError("The shop name can not be empty.");
         }
         if (empty($_POST["virtual_uri"]) and (int) Configuration::get("ASP_SHOP_URL_MODE") == agilemultipleshop::SHOP_URL_MODE_VIRTUAL) {
             $this->errors[] = Tools::displayError("The shop Virtual Uri can not be empty.");
         }
         ${"GLOBALS"}["edessnqo"] = "id_found";
         ${"GLOBALS"}["kkzhciyk"] = "seller_shop";
         if ($this->sellerinfo->id_shop <= 1) {
             $this->sellerinfo->id_shop = 0;
         }
         ${${"GLOBALS"}["kkzhciyk"]} = new Shop($this->sellerinfo->id_shop);
         if (Shop::shop_name_duplicated(${${"GLOBALS"}["oxjolt"]}, $seller_shop->id)) {
             $this->errors[] = Tools::displayError("The shop name you select has been used by other seller. Please choose a new one.");
//.........这里部分代码省略.........
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:101,代码来源:sellerbusiness.php

示例2: create_new_shop

 public static function create_new_shop($id_seller, $name)
 {
     $knpphuwouh = "name";
     $ebmaugy = "name";
     $awebgo = "name";
     ${"GLOBALS"}["avcwqfcrll"] = "name";
     ${"GLOBALS"}["ecrzsoxmp"] = "id_show_url";
     ${"GLOBALS"}["eoufbdiy"] = "shop";
     if (empty(${${"GLOBALS"}["plonjgth"]})) {
         ${$awebgo} = "shop";
     }
     if (Shop::shop_name_duplicated(${${"GLOBALS"}["avcwqfcrll"]}, 0)) {
         ${$knpphuwouh} = ${$ebmaugy} . "-" . ${${"GLOBALS"}["blyprwch"]};
     }
     ${${"GLOBALS"}["dcjyfpglzfy"]} = new Shop((int) Configuration::get("PS_SHOP_DEFAULT"));
     ${${"GLOBALS"}["eoufbdiy"]} = new Shop();
     $shop->name = ${${"GLOBALS"}["plonjgth"]};
     $shop->id_shop_group = $defshop->id_shop_group;
     $shop->id_category = $defshop->id_category;
     ${"GLOBALS"}["lydbmjobdy"] = "id_found";
     $shop->active = 1;
     $shop->deleted = 0;
     $shop->id_theme = $defshop->id_theme;
     ${"GLOBALS"}["dbvkuxo"] = "id_show_url";
     $shop->add();
     ${${"GLOBALS"}["iqatubf"]} = "SELECT id_shop_url \tFROM " . _DB_PREFIX_ . "shop_url WHERE active = 1 AND main=1 AND id_shop = " . (int) Configuration::get("PS_SHOP_DEFAULT");
     ${${"GLOBALS"}["dbvkuxo"]} = intval(Db::getInstance()->getValue(${${"GLOBALS"}["iqatubf"]}));
     ${${"GLOBALS"}["flauwpvwozn"]} = new ShopUrl(${${"GLOBALS"}["ecrzsoxmp"]});
     $shopurl->id = 0;
     $shopurl->id_shop = $shop->id;
     if ((int) Configuration::get("ASP_SHOP_URL_MODE") == agilemultipleshop::SHOP_URL_MODE_DOMAIN) {
         $shopurl->domain = Tools::link_rewrite(${${"GLOBALS"}["plonjgth"]}) . "." . str_replace("www.", "", $shopurl->domain);
         $shopurl->domain_ssl = Tools::link_rewrite(${${"GLOBALS"}["plonjgth"]}) . "." . str_replace("www.", "", $shopurl->domain_ssl);
     } else {
         $shopurl->virtual_uri = Tools::link_rewrite(${${"GLOBALS"}["plonjgth"]});
     }
     ${${"GLOBALS"}["lydbmjobdy"]} = $shopurl->canAddThisUrl($shopurl->domain, $shopurl->domain_ssl, $shopurl->physical_uri, $shopurl->virtual_uri);
     if (intval(${${"GLOBALS"}["ewdnile"]}) > 0) {
         $shopurl->virtual_uri = $shopurl->virtual_uri . "-" . ${${"GLOBALS"}["blyprwch"]};
     }
     $shopurl->active = 1;
     $shopurl->add();
     Tools::generateHtaccess();
     return $shop->id;
 }
开发者ID:evilscripts,项目名称:gy,代码行数:45,代码来源:agilemultipleshop.php

示例3: init_shop_header

                    $sql = 'SELECT distinct LOWER(TRIM(sil.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ')) AS id, TRIM(sil.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ') AS name 
			            FROM `' . _DB_PREFIX_ . 'sellerinfo_lang` sil 
						WHERE sil.id_lang = ' . $context->cookie->id_lang . ' AND LENGTH(TRIM(sil.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ')) > 0
					    ORDER BY sil.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ' ASC
		            ';
                } else {
                    $sql = 'SELECT distinct LOWER(TRIM(si.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ')) AS id, TRIM(si.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ') AS name 
			            FROM `' . _DB_PREFIX_ . 'sellerinfo` si
					    ORDER BY si.' . AgileMultipleShop::SHOP_BY_CUSTOM_FIELD . ' ASC
		            ';
                }
                break;
        }
        if (empty($sql)) {
            return array();
        }
        return Db::getInstance()->ExecuteS($sql);
    }
    public static function init_shop_header()
    {
        $main_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
        include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
        Context::getContext()->smarty->assign(array('is_agilemultipleshop_installed' => 1, 'header_logo_mode' => intval(Configuration::get('ASP_HEADER_LOGO_MODE')), 'base_dir_default' => $main_shop->getBaseURL(), 'seller_shop_name' => Context::getContext()->shop->name, 'id_shop_owner' => Shop::$id_shop_owner, 'seller_logo_url' => isset(Shop::$sellerinfo) ? SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id) : ''));
    }
    public static function clear_blockcategory_cache()
    {
        @session_start();
        if (!isset($_SESSION['id_shop_owner'])) {
            $_SESSION['id_shop_owner'] = 0;
        }
        if ($_SESSION['id_shop_owner'] != Shop::$id_shop_owner) {
            $_SESSION['id_shop_owner'] = Shop::$id_shop_owner;
            Context::getContext()->smarty->clearAllCache();
        }
    }
    public static function get_rewrite_rules()
    {
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:37,代码来源:agilemultipleshop.php


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