Пример #1
0
 public static function limited_by_membership($id_seller)
 {
     if (intval(${${"GLOBALS"}["tpubctvvlkrd"]}) > 0 and Module::isInstalled("agilemembership") and intval(Configuration::get("AGILE_MEMBERSHIP_SELLER_INTE")) > 0) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         $igckop = "id_seller";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/agilemembership.php";
         $kkyparclft = "membershiptype";
         $lbvzyb = "membership";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/MembershipType.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/CustomerMembership.php";
         ${${"GLOBALS"}["qwrpbc"]} = new SellerInfo(SellerInfo::getIdBSellerId(${$igckop}));
         ${"GLOBALS"}["sjqvdo"] = "num";
         ${${"GLOBALS"}["rzogbmiaosx"]} = new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));
         if (!Validate::isLoadedObject(${$lbvzyb})) {
             return true;
         }
         ${$kkyparclft} = new MembershipType($membership->id_membership_type);
         if (!Validate::isLoadedObject(${${"GLOBALS"}["mbcacw"]})) {
             return true;
         }
         if (!AgileMembership::isActivated($sellerinfo->id_customer) or !AgileMembership::isMemberFeePaid($sellerinfo->id_customer)) {
             return true;
         }
         ${${"GLOBALS"}["sjqvdo"]} = AgileSellerManager::getAcitveProductsListed(${${"GLOBALS"}["tpubctvvlkrd"]});
         ${"GLOBALS"}["aeoptjd"] = "num";
         if (${${"GLOBALS"}["aeoptjd"]} >= intval($membershiptype->listing_max) and intval($membershiptype->listing_max) > 0) {
             return true;
         }
         return false;
     }
     return false;
 }
Пример #2
0
 public static function limited_by_membership($id_seller)
 {
     if (intval(${${"GLOBALS"}["ghjbfbenq"]}) > 0 and Module::isInstalled("agilemembership") and intval(Configuration::get("AGILE_MEMBERSHIP_SELLER_INTE")) > 0) {
         $fdlzwmoqj = "num";
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/agilemembership.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/MembershipType.php";
         $wpdcvqoxy = "sellerinfo";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/CustomerMembership.php";
         ${$wpdcvqoxy} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["ghjbfbenq"]}));
         ${${"GLOBALS"}["wvxnbvhc"]} = new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));
         if (!Validate::isLoadedObject(${${"GLOBALS"}["wvxnbvhc"]})) {
             return true;
         }
         ${${"GLOBALS"}["ulmwafwenh"]} = new MembershipType($membership->id_membership_type);
         if (!Validate::isLoadedObject(${${"GLOBALS"}["ulmwafwenh"]})) {
             return true;
         }
         if (!AgileMembership::isActivated($sellerinfo->id_customer) or !AgileMembership::isMemberFeePaid($sellerinfo->id_customer)) {
             return true;
         }
         ${${"GLOBALS"}["ntqtncirr"]} = AgileSellerManager::getAcitveProductsListed(${${"GLOBALS"}["ghjbfbenq"]});
         if (${$fdlzwmoqj} >= intval($membershiptype->listing_max) and intval($membershiptype->listing_max) > 0) {
             return true;
         }
         return false;
     }
     return false;
 }
Пример #3
0
 public static function limited_by_membership($id_seller)
 {
     if (intval(${${"GLOBALS"}["pbiyrsaos"]}) > 0 and Module::isInstalled("agilemembership") and intval(Configuration::get("AGILE_MEMBERSHIP_SELLER_INTE")) > 0) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/agilemembership.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/MembershipType.php";
         $fufeamxcyjr = "membership";
         ${"GLOBALS"}["bqmujrr"] = "membership";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/CustomerMembership.php";
         $yltnxtalslm = "sellerinfo";
         ${$yltnxtalslm} = new SellerInfo(SellerInfo::getIdBSellerId(${${"GLOBALS"}["pbiyrsaos"]}));
         ${"GLOBALS"}["jarywcgnwfk"] = "id_seller";
         ${${"GLOBALS"}["bqmujrr"]} = new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));
         $iyqbnpykyel = "num";
         if (!Validate::isLoadedObject(${$fufeamxcyjr})) {
             return true;
         }
         ${${"GLOBALS"}["hjvoddgpxb"]} = new MembershipType($membership->id_membership_type);
         if (!Validate::isLoadedObject(${${"GLOBALS"}["hjvoddgpxb"]})) {
             return true;
         }
         if (!AgileMembership::isActivated($sellerinfo->id_customer) or !AgileMembership::isMemberFeePaid($sellerinfo->id_customer)) {
             return true;
         }
         ${$iyqbnpykyel} = AgileSellerManager::getAcitveProductsListed(${${"GLOBALS"}["jarywcgnwfk"]});
         if (${${"GLOBALS"}["vuefcasbu"]} >= intval($membershiptype->listing_max) and intval($membershiptype->listing_max) > 0) {
             return true;
         }
         return false;
     }
     return false;
 }
Пример #4
0
 public static function limited_by_membership($id_seller)
 {
     if (intval($id_seller) > 0 and Module::isInstalled('agilemembership') and intval(Configuration::get('AGILE_MEMBERSHIP_SELLER_INTE')) > 0) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/agilemembership.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/MembershipType.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemembership/CustomerMembership.php";
         $sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId($id_seller));
         $membership = new CustomerMembership(CustomerMembership::getIdByCustomerId($sellerinfo->id_customer));
         if (!Validate::isLoadedObject($membership)) {
             return true;
         }
         $membershiptype = new MembershipType($membership->id_membership_type);
         if (!Validate::isLoadedObject($membershiptype)) {
             return true;
         }
         if (!AgileMembership::isActivated($sellerinfo->id_customer) or !AgileMembership::isMemberFeePaid($sellerinfo->id_customer)) {
             return true;
         }
         $num = AgileSellerManager::getAcitveProductsListed($id_seller);
         if ($num >= intval($membershiptype->listing_max) and intval($membershiptype->listing_max) > 0) {
             return true;
         }
         return false;
     }
     return false;
 }