public static function createProductWithBasics($id_category, $name, $price, $is_virtual = true) { ${"GLOBALS"}["pqkoyafobd"] = "languages"; ${"GLOBALS"}["pkebrwfmr"] = "languages"; $jwerprb = "product"; ${${"GLOBALS"}["nsbislat"]} = new Product(); ${"GLOBALS"}["fqrxqstrcu"] = "price"; $mefrjbs = "is_virtual"; ${${"GLOBALS"}["pqkoyafobd"]} = Language::getLanguages(false); ${"GLOBALS"}["tnvptyze"] = "id_category"; foreach (${${"GLOBALS"}["pkebrwfmr"]} as ${${"GLOBALS"}["guqxwfmuy"]}) { $product->name[${${"GLOBALS"}["guqxwfmuy"]}["id_lang"]] = ${${"GLOBALS"}["bckwbspoink"]}; $ipruuwph = "lang"; $product->link_rewrite[${$ipruuwph}["id_lang"]] = Tools::link_rewrite(${${"GLOBALS"}["bckwbspoink"]}); } ${"GLOBALS"}["ymflaqcjetr"] = "id_category"; $product->id_category_default = (int) ${${"GLOBALS"}["tnvptyze"]}; $product->id_shop_default = 1; $product->wholesale_price = ${${"GLOBALS"}["zktuarxoc"]}; $product->price = ${${"GLOBALS"}["fqrxqstrcu"]}; $product->ecotax = 0; $product->available_for_order = 1; $product->visibility = "both"; $product->is_virtual = ${$mefrjbs}; $product->id_tax_rules_group = 0; $product->active = 1; $product->save(); $product->addStockMvt(2147483647, 1); AgileHelper::setDefaultCategory(${$jwerprb}, ${${"GLOBALS"}["ymflaqcjetr"]}); return ${${"GLOBALS"}["nsbislat"]}; }
public static function createProductWithBasics($id_category, $name, $price, $is_virtual = true) { ${${"GLOBALS"}["brlrxjbe"]} = new Product(); ${${"GLOBALS"}["rehwdhqlgow"]} = Language::getLanguages(false); foreach (${${"GLOBALS"}["rehwdhqlgow"]} as ${${"GLOBALS"}["dmxqlse"]}) { $rjutkhel = "lang"; $nwwneyp = "name"; ${"GLOBALS"}["ideucoa"] = "name"; $product->name[${$rjutkhel}["id_lang"]] = ${${"GLOBALS"}["ideucoa"]}; $product->link_rewrite[${${"GLOBALS"}["dmxqlse"]}["id_lang"]] = Tools::link_rewrite(${$nwwneyp}); } $product->id_category_default = (int) ${${"GLOBALS"}["hqwujem"]}; $product->id_shop_default = 1; $product->wholesale_price = ${${"GLOBALS"}["mmyqbfm"]}; $nnyxcdskw = "is_virtual"; $product->price = ${${"GLOBALS"}["mmyqbfm"]}; $product->ecotax = 0; $product->available_for_order = 1; $product->visibility = "both"; $product->is_virtual = ${$nnyxcdskw}; $qxldbfh = "product"; $product->id_tax_rules_group = 0; $product->active = 1; $product->save(); $product->addStockMvt(2147483647, 1); AgileHelper::setDefaultCategory(${$qxldbfh}, ${${"GLOBALS"}["hqwujem"]}); return ${${"GLOBALS"}["brlrxjbe"]}; }
public static function createProductWithBasics($id_category, $name, $price, $is_virtual = true) { $ogwduenusie = "lang"; ${${"GLOBALS"}["dlkebxstqhu"]} = new Product(); ${${"GLOBALS"}["kgdyifjt"]} = Language::getLanguages(false); $zcqurzyklm = "price"; $xxmghmkehqv = "product"; ${"GLOBALS"}["wiydxbej"] = "price"; foreach (${${"GLOBALS"}["kgdyifjt"]} as ${$ogwduenusie}) { $uphrsovxbg = "name"; $product->name[${${"GLOBALS"}["muklguqxo"]}["id_lang"]] = ${$uphrsovxbg}; $product->link_rewrite[${${"GLOBALS"}["muklguqxo"]}["id_lang"]] = Tools::link_rewrite(${${"GLOBALS"}["rdzlldrtp"]}); } $product->id_category_default = (int) ${${"GLOBALS"}["njirixqr"]}; $product->id_shop_default = 1; $product->wholesale_price = ${$zcqurzyklm}; $product->price = ${${"GLOBALS"}["wiydxbej"]}; $product->ecotax = 0; $product->available_for_order = 1; $product->visibility = "both"; $product->is_virtual = ${${"GLOBALS"}["dbeplygf"]}; ${"GLOBALS"}["qckwwm"] = "product"; $product->id_tax_rules_group = 0; $product->active = 1; $product->save(); $product->addStockMvt(2147483647, 1); AgileHelper::setDefaultCategory(${$xxmghmkehqv}, ${${"GLOBALS"}["njirixqr"]}); return ${${"GLOBALS"}["qckwwm"]}; }
public static function createProductWithBasics($id_category, $name, $price, $is_virtual = true) { ${"GLOBALS"}["iptlfrp"] = "languages"; ${"GLOBALS"}["wkvllk"] = "lang"; ${"GLOBALS"}["ngyjwmsooxdi"] = "product"; $pdcegljdn = "price"; ${"GLOBALS"}["earbvxp"] = "price"; ${${"GLOBALS"}["ngyjwmsooxdi"]} = new Product(); ${"GLOBALS"}["jancnxyku"] = "is_virtual"; ${${"GLOBALS"}["ncanbbuqx"]} = Language::getLanguages(false); foreach (${${"GLOBALS"}["iptlfrp"]} as ${${"GLOBALS"}["wkvllk"]}) { ${"GLOBALS"}["uknxlycho"] = "name"; ${"GLOBALS"}["wuidjewt"] = "lang"; $product->name[${${"GLOBALS"}["bdywdmhu"]}["id_lang"]] = ${${"GLOBALS"}["uknxlycho"]}; $product->link_rewrite[${${"GLOBALS"}["wuidjewt"]}["id_lang"]] = Tools::link_rewrite(${${"GLOBALS"}["qqswjiy"]}); } $product->id_category_default = (int) ${${"GLOBALS"}["bkwidvmg"]}; $product->id_shop_default = 1; $product->wholesale_price = ${${"GLOBALS"}["earbvxp"]}; $product->price = ${$pdcegljdn}; $product->ecotax = 0; $product->available_for_order = 1; $product->visibility = "both"; $product->is_virtual = ${${"GLOBALS"}["jancnxyku"]}; $product->id_tax_rules_group = 0; $product->active = 1; $product->save(); $product->addStockMvt(2147483647, 1); AgileHelper::setDefaultCategory(${${"GLOBALS"}["ftuvhme"]}, ${${"GLOBALS"}["bkwidvmg"]}); return ${${"GLOBALS"}["ftuvhme"]}; }