public function postProcess() { $this->context->smarty->assign(array("cfmmsg_flag" => Tools::getValue("cfmmsg_flag"))); if (Tools::isSubmit("submitSellerAccount")) { AgileMultipleSeller::createSellerAccount(new Customer(self::$cookie->id_customer)); Tools::redirect(self::$link->getModuleLink("agilemultipleseller", "sellersummary", array("cfmmsg_flag" => 1), true)); } if (Tools::getValue("submitRequest") == "B2T") { $zbdpzet = "errmsg"; ${${"GLOBALS"}["uswhdzhd"]} = AgileMultipleSeller::convert_balance_to_token(self::$cookie->id_customer, (double) Tools::getValue("amount_to_convert"), $this->l('CHANGE BALANCE TO TOKENS')); if (!empty(${$zbdpzet})) { $this->errors[] = ${${"GLOBALS"}["uswhdzhd"]}; return; } Tools::redirect(self::$link->getModuleLink("agilemultipleseller", "sellersummary", array("cfmmsg_flag" => 1), true)); } if (Tools::getValue("submitRequest") == "MPR") { ${${"GLOBALS"}["uswhdzhd"]} = AgileMultipleSeller::make_fund_request(self::$cookie->id_customer, (double) Tools::getValue("amount_to_convert"), $this->l('MAKE FUND REQUEST')); if (!empty(${${"GLOBALS"}["uswhdzhd"]})) { $this->errors[] = ${${"GLOBALS"}["uswhdzhd"]}; return; } Tools::redirect(self::$link->getModuleLink("agilemultipleseller", "sellersummary", array("cfmmsg_flag" => 1), true)); } if (Tools::getValue("submitRequest") == "T2B") { ${"GLOBALS"}["jjycov"] = "errmsg"; ${${"GLOBALS"}["jjycov"]} = AgileMultipleSeller::convert_tokens_to_balance(self::$cookie->id_customer, (double) Tools::getValue("tokens_to_convert"), $this->l('CHANGE TOKENS TO BALANCE')); if (!empty(${${"GLOBALS"}["uswhdzhd"]})) { $this->errors[] = ${${"GLOBALS"}["uswhdzhd"]}; return; } Tools::redirect(self::$link->getModuleLink("agilemultipleseller", "sellersummary", array("cfmmsg_flag" => 1), true)); } }