Find the Current Increment IDs for All Stores
SELECT core_store_group.name AS group_name, core_website.name AS website_name, core_store.name AS store_name, core_store.store_id, increment_prefix, increment_last_id, entity_type_code FROM eav_entity_store INNER JOIN eav_entity_type ON eav_entity_type.entity_type_id = eav_entity_store.entity_type_id INNER JOIN core_store ON core_store.store_id = eav_entity_store.store_id INNER JOIN core_store_group ON core_store_group.group_id = core_store.group_id INNER JOIN core_website ON core_website.website_id = core_store.website_id WHERE eav_entity_store.store_id != 0 ORDER BY eav_entity_store.store_id;
Order Increment ID and Prefix
Change your Order Increment ID on All StoresUPDATE eav_entity_store INNER JOIN eav_entity_type ON eav_entity_type.entity_type_id = eav_entity_store.entity_type_id SET eav_entity_store.increment_last_id='XXXXXXXXXX' WHERE eav_entity_type.entity_type_code='order';Change your Order Prefix on All Stores
UPDATE eav_entity_store INNER JOIN eav_entity_type ON eav_entity_type.entity_type_id = eav_entity_store.entity_type_id SET eav_entity_store.increment_prefix='X' WHERE eav_entity_type.entity_type_code='order';Change your Order Increment ID on a Specific Store
UPDATE eav_entity_store INNER JOIN eav_entity_type ON eav_entity_type.entity_type_id = eav_entity_store.entity_type_id SET eav_entity_store.increment_last_id='XXXXXXXXXX' WHERE eav_entity_type.entity_type_code='order' AND eav_entity_store.store_id = 'Y';Change your Order Prefix on a Specific Store
UPDATE eav_entity_store INNER JOIN eav_entity_type ON eav_entity_type.entity_type_id = eav_entity_store.entity_type_id SET eav_entity_store.increment_prefix='X' WHERE eav_entity_type.entity_type_code='order' AND eav_entity_store.store_id = 'Y';Change 'entit_type_code='invoice' for invoice
Change 'entit_type_code='shipment' for shipment
Change 'entit_type_code='creditmemo' for invoice
ConversionConversion EmoticonEmoticon