Managing Multiple Stock Sources with Stock & Price Priority
In some cases, the same product in your store’s catalog may be available from multiple suppliers. This commonly occurs when your store is integrated with more than one warehouse distributor via auto integrations or when you maintain local inventory alongside external supplier stock.
Naturally, suppliers can differ significantly in terms of logistics, product pricing, service fees, operational stability, and service quality. This means that choosing which supplier's inventory to display and rely on for order fulfillment can directly affect your store's profitability and customer satisfaction.
Your goal is to prioritize suppliers that offer the most favorable conditions for your business—maximizing profit margins while maintaining a high-quality shopping experience for your customers.
X‑Cart 5.5.1.x supports this need by allowing you to configure which supplier’s inventory should be used when a product is available from several sources. This functionality is provided through the Stock & Price Priority settings within the Auto catalog import add‑on. Based on the priorities you set, the system activates only one stock source per product, and this source determines the quantity and pricing information shown to your customers.
Accessing Stock & Price Priority Settings
You can find the Stock & Price Priority section on the settings page of the Auto catalog import add-on.
Method 1
Go to Catalog › Catalog Import.
Under the Settings tab, select General.
Scroll down to the section titled "Stock & Price Priority".
Method 2
Go to Apps › My Apps.
Use the search bar to find the Auto catalog import add-on.
Click on the Settings link next to the add-on name to open its configuration page.
Scroll down to the section titled "Stock & Price Priority".
The content of the Stock & Price Priority section may vary depending on the options selected and the specific auto integrations enabled in your store.
Defining Supplier Selection Logic
At the top of the Stock & Price Priority section, you will find the most critical setting:
If multiple warehouses can ship the order, first sell the products
according to stock priorities;
with the highest cost prices;
with the lowest cost prices.
The highest / lowest cost prices options are straightforward—X-Cart will select the supplier offering the product at the highest or lowest cost.
The “according to stock priorities” option requires additional configuration. Let's explore this further.
Setting Supplier Priorities
When “according to stock priorities” is selected, a priority table appears beneath the setting.
This table lists all stock sources available to your store, including:
My Store (your local inventory);
All installed auto integrations capable of supplying stock info via API.
By default, the supplier auto integrations are listed in the table as they were installed in your store (newly installed integrations are added to the top of the list).
A yellow triangle icon next to an auto integration name indicates the auto integration is installed but not configured.
A gear icon links to the settings page of the auto integration.
You can rearrange the priority using the Drag-and-Drop tool.
A properly configured stock source listed at the top of the table is considered the highest priority and will be selected first when determining which source to use.
Following a successful data import from the corresponding auto integration, this stock source will be activated for all products in your store's catalog that satisfy both of the following conditions:
The stock quantity of the product at this supplier’s warehouse is greater than zero.
Note: The product's stock quantity at external suppliers cannot be checked in real time and is determined based on the most recent data import from the corresponding auto integration.
Any alternative sources currently used with the store either show zero stock for the product or have lower priority according to the priorities table.
Stock sources listed further down in the Stock & Price Priority table act as fallback options (the logic behind how they are used will be discussed later in this guide - see the section Automatic and Manual Control of Active Stock Sources).
Activating a particular stock source for a product means that the inventory from this stock source will be used to display the product's availability on the storefront. If a customer places an order for that product, it will be fulfilled using the selected stock source. X‑Cart will also calculate shipping costs based on this source, display the corresponding shipping rates at checkout, and generate the shipment accordingly—ensuring consistency throughout the entire order fulfillment process.
When a stock source is activated for a product, the Use stock toggle for this source is switched to the “enabled” position on the Inventory tab of the product details page.
Since a product is always sold from only one active stock source, the Use stock toggle for all other sources will be set to “disabled.”
Applying Supplier Priority Changes
After adjusting your stock and price priorities, click Save changes. You will be prompted to choose how to apply the new settings:
Option 1: Use current data
No new data is imported.
The system reassigns stock sources based on existing data.
At the product level:
The Price is updated using existing data for the selected stock source.
Option 2: Re-import data
Triggers a manual product import from suppliers that may have overlapping product stock. This import takes priority over any scheduled imports and runs as soon as possible.
The system reassigns stock sources using newly imported data.
At the product level:
The Price is updated using the latest imported data for the selected source.
Automatic and Manual Control of Active Stock Sources
As mentioned earlier, the stock source listed at the top of the Stock & Price Priority table is treated as the highest priority when determining which source should be activated for a product. Stock sources listed further down in the table serve as fallback options.
If, during a data import, the currently active stock source (i.e., the one with Use stock = On on the product's Inventory tab) reports zero available stock, X‑Cart will automatically switch to the next eligible stock source in your priority list. In this case, the Use stock toggle will be enabled on the product's Inventory tab for the new source and disabled for the one that was previously active.
Unless manually overridden, the currently activated stock source will remain active for the product at least until the next data import. If the next import confirms that the product is still in stock at this source, the source will remain active for the product going forward—until the next import and availability check. However, if the product is found to be out of stock at the active source during the next import, X‑Cart will automatically switch the product's active stock source to the next eligible source in your Stock & Price Priority table. This ensures that product availability on the storefront reflects the most current data.
You can also choose to change the active stock source for a product manually. To do so, simply toggle the Use stock setting on the Inventory tab of the product details from the current stock source to another source available for the product.
Important: Once you manually define your stock source preferences at the product level (via the Inventory tab), X‑Cart will continue to automatically switch the active source during imports unless you specifically disable this behavior. You can control this using the Update manually edited stock & price setting located under Catalog Import > Settings > General.
This setting has two modes:
Update manually edited stock & price = On
In this mode, the manually assigned stock source will remain active until the next data import from that supplier. If the import indicates that the stock level is zero, X‑Cart will automatically switch to the next eligible source in your priority list.Update manually edited stock & price = Off
In this mode, the manually selected stock source will remain active indefinitely—even if the product is out of stock at that source. No automatic switching will occur during future imports.
Can't find answers you're looking for?
Email us at support@x-cart.com. We will be happy to help!
Related articles