9namespace Bitrix\Sale\Location\Migration;
12use Bitrix\Sale\Location;
14include_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/sale/lib/location/migration/migrate.php");
21 private $migrator =
null;
25 parent::__construct();
29 'CODE' =>
'CREATE_TYPES',
30 'CALLBACK' =>
'stageCreateTypes'
35 'CODE' =>
'CONVERT_TREE',
36 'CALLBACK' =>
'stageConvertTree'
41 'CODE' =>
'CONVERT_ZONES',
42 'CALLBACK' =>
'stageConvertZones'
47 'CODE' =>
'CONVERT_LINKS',
48 'CALLBACK' =>
'stageConvertLinks'
54 'CODE' =>
'COPY_DEFAULT_LOCATIONS',
55 'CALLBACK' =>
'stageCopyDefaultLocations'
61 'CODE' =>
'COPY_ZIP_CODES',
62 'CALLBACK' =>
'stageCopyZipCodes'
71 if(!isset($this->data[
'migrator_data']))
74 $this->migrator = unserialize($this->data[
'migrator_data'], [
'allowed_classes' =>
false]);
79 $this->data[
'migrator_data'] = serialize($this->migrator);
89 $this->migrator->createTypes();
97 $this->migrator->convertTree();
102 $this->migrator->resetLegacyPath();
109 $this->migrator->convertSalesZones();
115 $this->migrator->convertGroupLocationLinks();
116 $this->migrator->convertDeliveryLocationLinks();
117 $this->migrator->convertTaxRateLocationLinks();
123 $this->migrator->copyDefaultLocations();
129 $this->migrator->copyZipCodes();
stageCopyDefaultLocations()
onAfterPerformIteration()
onBeforePerformIteration()
static DeleteByTag($tagId)
static isLocationProMigrated()
static locationProSetMigrated()
static locationProEnable()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]