本文整理匯總了PHP中CSaleLocation::locationProEnable方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSaleLocation::locationProEnable方法的具體用法?PHP CSaleLocation::locationProEnable怎麽用?PHP CSaleLocation::locationProEnable使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSaleLocation
的用法示例。
在下文中一共展示了CSaleLocation::locationProEnable方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: onAfterPerformIteration
public function onAfterPerformIteration()
{
$this->data['migrator_data'] = serialize($this->migrator);
if ($this->getPercent() == 100) {
\CSaleLocation::locationProSetMigrated();
\CSaleLocation::locationProEnable();
}
}
示例2: locationProCheckEnabled
public static function locationProCheckEnabled()
{
if (!self::isLocationProEnabled()) {
if ($_REQUEST['l2switch'] == 'ON') {
CSaleLocation::locationProEnable();
return true;
}
?>
<form action="" method="post">
Location 2.0 were disabled. <button name="l2switch" value="ON">Enable</button>
</form>
<?php
return false;
}
return true;
}
示例3:
} else {
$step += 2;
}
case 4:
if (!CSaleLocation::isLocationProMigrated()) {
$migrator = new \Bitrix\Sale\Location\Migration\CUpdaterLocationPro();
$migrator->createTypes();
$migrator->convertTree();
$migrator->resetLegacyPath();
$migrator->convertGroupLocationLinks();
$migrator->convertDeliveryLocationLinks();
$migrator->convertTaxRateLocationLinks();
$migrator->copyDefaultLocations();
$migrator->copyZipCodes();
\CSaleLocation::locationProSetMigrated();
\CSaleLocation::locationProEnable();
echo Loc::getMessage('SALE_CONVERTER_STEP_4_DETAILS');
break;
}
case 5:
echo Loc::getMessage('SALE_CONVERTER_STEP_6_DETAILS');
break;
default:
// ENTRY
echo Loc::getMessage('SALE_CONVERTER_ENTRY');
}
?>
</div>
</div>
<style>