public function initContent() { ${"GLOBALS"}["numrrlvipbq"] = "sellermessages"; parent::initContent(); ${"GLOBALS"}["wlsqmfslnmw"] = "sellermessages_nb"; ${${"GLOBALS"}["wlsqmfslnmw"]} = AgileSellerMessage::getSellerMessages($this->sellerinfo->id_seller, 0, 0, true); $hgwdfineowv = "sellermessages"; $this->pagination(${${"GLOBALS"}["xomdbo"]}); ${${"GLOBALS"}["numrrlvipbq"]} = AgileSellerMessage::getSellerMessages($this->sellerinfo->id_seller, 0, 0, false, $this->p, $this->n); self::$smarty->assign(array("seller_tab_id" => 8, "id_customer" => $this->context->customer->id, "sellermessages" => ${$hgwdfineowv}, "hide_email" => intval(Configuration::get("ASMGER_HIDE_EMAIL")))); $this->setTemplate("sellermessages.tpl"); }
public function hookDisplayProductTabContent($params) { ${"GLOBALS"}["vfgvovrdgmm"] = "id_product"; if (!$this->active) { return; } global $smarty, $cookie, $n, $p; ${"GLOBALS"}["wsjsoivczv"] = "id_product"; ${"GLOBALS"}["hsvsxlmxjt"] = "seller"; require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php"; ${"GLOBALS"}["gjtkxpkg"] = "sellerinfo"; $miwoqcvsmjuv = "id_seller"; ${"GLOBALS"}["bmfzwzbxdmib"] = "id_product"; $fmpnqng = "id_seller"; $byrcyfg = "pos"; require_once _PS_ROOT_DIR_ . "/modules/agilesellermessenger/AgileSellerMessage.php"; ${"GLOBALS"}["njuilvvtg"] = "sellerquestions_nb"; $rqcewqtkukcy = "request_sellerquestion_n"; $smarty->assign("postSellerQuestionSuccess", ""); ${"GLOBALS"}["whyvgm"] = "pos"; ${"GLOBALS"}["fiujlyvuzr"] = "request_sellerquestion_n"; if (Tools::isSubmit("submitSellerQuestion")) { $this->postSellerQuestionProcess(); if (empty($this->_postErrors)) { $smarty->assign("postSellerQuestionSuccess", $this->l('Your message has been received successfully. The seller of the product will reply shortly.')); } } ${"GLOBALS"}["tdxjnssl"] = "customer_name"; $request_uri = $_SERVER["REQUEST_URI"]; ${${"GLOBALS"}["whyvgm"]} = strpos($request_uri, "?"); $gjykrnkawg = "pos"; ${"GLOBALS"}["fnocpylrtr"] = "id_seller"; ${"GLOBALS"}["yylwzg"] = "customer_email"; ${"GLOBALS"}["hgseddxpynir"] = "request_sellerquestion_p"; if (${$byrcyfg} > 0) { $request_uri = substr($request_uri, 0, ${$gjykrnkawg}); } ${"GLOBALS"}["nydwtacc"] = "id_product"; ${"GLOBALS"}["yetjewpqff"] = "customer"; $wgihsbavjqh = "request_sellerquestion_n"; if (strpos($request_uri, ".php") > 0) { $request_uri .= "?id_product=" . Tools::getValue("id_product"); if (_PS_VERSION_ > "1.5") { $request_uri .= "&controller=product"; } } else { $request_uri = $request_uri . "?"; } ${${"GLOBALS"}["wsjsoivczv"]} = intval(Tools::getValue("id_product")); $xmesessxsgh = "id_seller"; ${${"GLOBALS"}["jervvgaynpzb"]} = new Product(${${"GLOBALS"}["qdzmmxvncj"]}, false, $cookie->id_lang); $isblntium = "sellerquestions"; ${${"GLOBALS"}["fnocpylrtr"]} = AgileSellerManager::getObjectOwnerID("product", ${${"GLOBALS"}["bmfzwzbxdmib"]}); ${${"GLOBALS"}["hsvsxlmxjt"]} = new Employee(${$miwoqcvsmjuv}); ${${"GLOBALS"}["gjtkxpkg"]} = new SellerInfo(SellerInfo::getIdBSellerId(${$fmpnqng}), $cookie->id_lang); ${${"GLOBALS"}["wmrsznu"]} = new Customer($cookie->id_customer); ${${"GLOBALS"}["njuilvvtg"]} = AgileSellerMessage::getSellerMessages(${$xmesessxsgh}, ${${"GLOBALS"}["nydwtacc"]}, 1, true); ${${"GLOBALS"}["zlugcehvcewc"]} = intval(Tools::getValue("p")); ${"GLOBALS"}["zfgqixwvbbz"] = "id_seller"; ${${"GLOBALS"}["tpjukpbljt"]} = intval(Tools::getValue("n")); $mobucvuvsjo = "customer_name"; ${${"GLOBALS"}["xufluxqslf"]} = AgileSellerMessage::getSellerMessages(${${"GLOBALS"}["zfgqixwvbbz"]}, ${${"GLOBALS"}["vfgvovrdgmm"]}, 1, false, ${${"GLOBALS"}["zlugcehvcewc"]} == 0 ? 1 : ${${"GLOBALS"}["hgseddxpynir"]}, ${${"GLOBALS"}["fiujlyvuzr"]} == 0 ? 10 : ${$rqcewqtkukcy}); ${$mobucvuvsjo} = Validate::isLoadedObject(${${"GLOBALS"}["yetjewpqff"]}) ? $customer->firstname . " " . $customer->lastname : Tools::getValue("customer_name"); ${${"GLOBALS"}["yylwzg"]} = Validate::isLoadedObject(${${"GLOBALS"}["wmrsznu"]}) ? $customer->email : Tools::getValue("customer_email"); $smarty->assign(array("sellerinfo" => ${${"GLOBALS"}["rwhhsbmgusb"]}, "sellerquestions_nb" => ${${"GLOBALS"}["kwpvkhppetxi"]}, "login_required_sellerquestion" => intval(Configuration::get("ASMGER_LOGIN_REQUIRED")), "use_capcha_sellerquestion" => intval(Configuration::get("ASMGER_USE_CAPCHA")), "sellerquestions" => ${$isblntium}, "request_sellerquestion_uri" => $request_uri, "customer_name" => ${${"GLOBALS"}["tdxjnssl"]}, "customer_email" => ${${"GLOBALS"}["frxcrl"]}, "id_product" => ${${"GLOBALS"}["qdzmmxvncj"]}, "product_name" => $product->name, "post_message" => Tools::getValue("customer_message"), "post_errors" => $this->_postErrors, "allow_attachment" => intval(Configuration::get("ASMGER_ALLOW_ATTACHMENT")), "ispostbacksellerquestion" => Tools::getValue("ispostbacksellerquestion"), "request_sellerquestion_p" => ${${"GLOBALS"}["zlugcehvcewc"]} == 0 ? 1 : ${${"GLOBALS"}["zlugcehvcewc"]}, "request_sellerquestion_n" => ${$wgihsbavjqh} == 0 ? 10 : ${${"GLOBALS"}["tpjukpbljt"]}, "isVertical" => Configuration::get("AGILE_MESSENGER_THEME") == 1 ? 1 : 0)); return $this->display(__FILE__, "/hooktabcontent.tpl"); }