Migrating From Magento 1
Notes for migrating from a Magento 1 store that uses Fooman OrderNumberCustomiser and moving to Magento 2.
- The custom order numbers associated with Orders, Invoices, Creditmemos, Shipments will automatically transfer as part of a default migration.
- The extension will need to be re-enabled on the Magento 2 site after migration
Add the below to your migration when using Magento's Data Migration Tool:
map.xml
<map xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:noNamespaceSchemaLocation="urn:magento:module:Magento_DataMigrationTool:etc/map.xsd">
<source>
<document_rules>
<!-- ... other content -->
<!-- To Add -->
<rename>
<document>fooman_customordernumbers</document>
<to>fooman_custom_order_numbers</to>
</rename>
<!-- ... other content -->
settings.xml
<settings xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:noNamespaceSchemaLocation="urn:magento:module:Magento_DataMigrationTool:etc/settings.xsd">
<key>
<!-- ... other content -->
<!-- To Add -->
<ignore>
<path>fooman_ordernumbercustomiser/settings/*</path>
</ignore>
<rename>
<path>fooman_ordernumbercustomiser/creditmemo_settings/duplicate_id_padding_length</path>
<to>fooman_order_number_customiser/creditmemo/duplicate_id_padding_length</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/creditmemo_settings/duplicate_separator</path>
<to>fooman_order_number_customiser/creditmemo/duplicate_separator</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/creditmemo_settings/increment_pad_length</path>
<to>fooman_order_number_customiser/creditmemo/increment_pad_length</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/creditmemo_settings/increment_per_store</path>
<to>fooman_order_number_customiser/creditmemo/ids_by_store</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/creditmemo_settings/increment_step</path>
<to>fooman_order_number_customiser/creditmemo/increment_step</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/creditmemo_settings/share_invoice_id</path>
<to>fooman_order_number_customiser/creditmemo/share_inv_sequence</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/invoice_settings/duplicate_id_padding_length</path>
<to>fooman_order_number_customiser/invoice/duplicate_id_padding_length</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/invoice_settings/duplicate_separator</path>
<to>fooman_order_number_customiser/invoice/duplicate_separator</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/invoice_settings/increment_pad_length</path>
<to>fooman_order_number_customiser/invoice/increment_pad_length</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/invoice_settings/increment_per_store</path>
<to>fooman_order_number_customiser/invoice/ids_by_store</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/invoice_settings/increment_step</path>
<to>fooman_order_number_customiser/invoice/increment_step</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/order_settings/duplicate_id_padding_length</path>
<to>fooman_order_number_customiser/order/duplicate_id_padding_length</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/order_settings/duplicate_separator</path>
<to>fooman_order_number_customiser/order/duplicate_separator</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/order_settings/increment_pad_length</path>
<to>fooman_order_number_customiser/order/increment_pad_length</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/order_settings/increment_per_store</path>
<to>fooman_order_number_customiser/order/ids_by_store</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/order_settings/increment_step</path>
<to>fooman_order_number_customiser/order/increment_step</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/shipment_settings/duplicate_id_padding_length</path>
<to>fooman_order_number_customiser/shipment/duplicate_id_padding_length</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/shipment_settings/duplicate_separator</path>
<to>fooman_order_number_customiser/shipment/duplicate_separator</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/shipment_settings/increment_pad_length</path>
<to>fooman_order_number_customiser/shipment/increment_pad_length</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/shipment_settings/increment_per_store</path>
<to>fooman_order_number_customiser/shipment/ids_by_store</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/shipment_settings/increment_step</path>
<to>fooman_order_number_customiser/shipment/increment_step</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/order_settings/orderformat</path>
<to>fooman_order_number_customiser/order/format</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/invoice_settings/invoiceformat</path>
<to>fooman_order_number_customiser/invoice/format</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/shipment_settings/shipmentformat</path>
<to>fooman_order_number_customiser/shipment/format</to>
</rename>
<rename>
<path>fooman_ordernumbercustomiser/creditmemo_settings/creditmemoformat</path>
<to>fooman_order_number_customiser/creditmemo/format</to>
</rename>
<!-- ... other content -->
class-map.xml
<classmap xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:noNamespaceSchemaLocation="urn:magento:module:Magento_DataMigrationTool:etc/class-map.xsd">
<!-- ... other content -->
<!-- To Add -->
<rename>
<from>fooman_ordernumbercustomiser/increment_order</from>
<to>Magento\Eav\Model\Entity\Increment\NumericValue</to>
</rename>
<rename>
<from>fooman_ordernumbercustomiser/increment_invoice</from>
<to>Magento\Eav\Model\Entity\Increment\NumericValue</to>
</rename>
<rename>
<from>fooman_ordernumbercustomiser/increment_shipment</from>
<to>Magento\Eav\Model\Entity\Increment\NumericValue</to>
</rename>
<rename>
<from>fooman_ordernumbercustomiser/increment_creditmemo</from>
<to>Magento\Eav\Model\Entity\Increment\NumericValue</to>
</rename>
<!-- ... other content -->