[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}
資料移轉後續追蹤
Magento 1的某些行為和邏輯在Magento 2中的實作方式不同。 Data Migration Tool會處理它。 有些移轉方面您應有所瞭解,有時您必須採取次要步驟,才能讓某些功能在移轉後順暢運作。
資訊
不支援分割資料庫
Data Migration Tool不支援分割資料庫。
群組價格轉換為階層價格
所有群組價格都會在移轉期間自動轉換為層級價格。
銷售實體的新編號
訂單、商業發票、出貨、銷退折讓單及RMA的參考編號依原樣移轉。 移轉後,將套用新的Magento 2編號指派規則。 新銷售實體的數字不同。
步驟
僅重新儲存客戶區段[Adobe Commerce]
移轉後,必須從「管理面板」重新儲存客戶區段,才能使其啟動並執行。
設定時區
工具不會移轉時區設定,因此您必須在移轉後於 存放區 > 組態 > 地區設定選項 > 時區 手動設定時區。
依預設,Magento會將時間資料儲存在資料庫的UTC-0區域中,並根據目前的時區設定加以顯示。 如果時間資料已儲存在UTC-0以外的資料庫區域,您必須使用Data Migration Tool的\Migration\Handler\Timezone處理常式將現有時間轉換為UTC-0。
在下列範例中,Magento 1在資料庫的UTC-7區域中儲存的時間不正確(例如,由於第三方擴充功能發生錯誤)。 若要在移轉時正確地將客戶帳戶建立時間轉換為UTC-0區域,請執行下列步驟:
-
將
map-customer.xml.dist組態檔從Data Migration Tool (<your Magento 2 install dir>/vendor/magento/data-migration-tool/etc/<migration edition>)的適當目錄複製到<your Magento 2 install dir>/app/code/Vendor/Migration/etc/<migration edition>/map-customer.xml檔案中。 -
更新
<customer_map_file>中的config.xml節點並從.dist移除map-customer.xml.dist延伸 -
將下列規則新增至
map-customer.xml檔案:
<?xml version="1.0" encoding="UTF-8"?>
<map xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="../map.xsd">
<!--...-->
<destination>
<field_rules>
<!--...-->
<transform>
<field>customer_entity.created_at</field>
<handler class="\Migration\Handler\Timezone">
<param name="offset" value="-7" />
</handler>
</transform>
</field_rules>
</destination>
</map>