Magento: Can you set it so all Websites share the same order increment id sequence?

Magento: Can you set it so all Websites share the same order increment id sequence?

September 14, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento: Can you set it so all Websites share the same order increment id sequence?

Magento: Sharing Increment ID Sequence Across All Websites

The Challenge: Multiple Order Increment IDs

When you set up multiple websites (or stores) in Magento, by default, each one has its own independent order increment ID sequence. This is great for tracking and managing orders within a single store view, but it can cause complications when integrating with external systems like ERPs.

The issue arises when your ERP system expects a unified order number sequence across all channels rather than separate ones for each Magento website. Having different sequences for each site leads to confusion and potential data integrity issues during syncing processes.

Understanding the Order Increment ID

Before diving into solutions, let’s clarify what an increment ID is in Magento. It’s simply an auto-generated unique identifier assigned to every order created within a store view. The format of this number can be customized (e.g., from ‘10000001’ to ‘INV-2023-xxx’). By default, each website has its own prefix and starting number.

Possible Solutions for Sharing ID Sequences

1. Customize the Increment ID Prefix

The most straightforward approach is to customize the increment ID prefix for each website to make them appear as a single sequence when viewed together. However, this doesn’t physically share the same underlying ID pool.

$prefix = 'INV-';
Mage::getModel('sales/order')->setIncrementId($prefix);

2. Use an External Service

A more robust solution is to use an external service (like Laravel’s database increment model) to manage a single global order number sequence across all websites. This approach requires custom development but ensures complete synchronization.

use App\Models\OrderNumber;

$orderModel = Mage::getModel('sales/order');
$orderModel->setIncrementId(OrderNumber::generate()->value);

3. Magento Extension: Order Number Sequence Manager

There are third-party extensions available on the Magento Marketplace that allow you to manage and share order number sequences across multiple websites. These extensions typically provide a centralized interface for controlling increment ID settings.

Best Practices

  • Always back up your database before making any changes related to order management.
  • Test the integration thoroughly in a staging environment before deploying it to production.
  • Ensure that your ERP system can handle the unified order number format generated by Magento.

Conclusion: Unifying Order Increment IDs Requires Customization

While Magento doesn’t offer a built-in feature for sharing increment ID sequences across all websites, it’s certainly possible with some custom development or third-party extensions. The best approach depends on your specific needs and technical expertise.

Remember that changing order increment ID settings requires careful planning to avoid data conflicts or duplication of order numbers. Always consult with a Magento expert before implementing any changes that could affect your entire system.

To learn more about advanced Magento customizations, I recommend checking out our Magento Development Services at Laravel Company. Our team of experienced developers can help you streamline your e-commerce operations and integrate your platforms seamlessly.

Orders Errors

Our network