Switching Suppliers
Sometimes the same product is available from more than one supplier: from a distributor and directly from the manufacturer, for example. You can move a Shopify product from one supplier to the other without deleting and re-importing it. You change which supplier product its metafields point at, update its variants, and tell PromoSync to follow.
A Shopify product is priced and stocked from one supplier at a time. After the switch, inventory and price updates for the product come from the new supplier only.
How PromoSync Knows a Product’s Supplier
Two places hold it:
- The product’s metafields.
psrestful.extra_idis the PSRESTful ID of the supplier product, and it names both the supplier and the product.psrestful.supplier_codeandpsrestful.product_idsay the same thing in readable form. Each variant haspsrestful.part_id, the supplier’s ID for that color and size. See Product Metafields and Variant Metafields. - PromoSync’s link for the Shopify product, created when the product was imported or linked. Inventory and price updates, and Targeted Sync by supplier, use the link.
Editing the metafields does not move the link by itself. The last step below does that.
Step by Step
1. Point the product at the new supplier
Do one of these on each product:
- Change
psrestful.extra_idto the Extra ID of the product at the new supplier. PromoSync’s product search shows it in the Extra ID column, and the PSRESTful CSV Exporter can export it in bulk. Also updatepsrestful.supplier_codeandpsrestful.product_idto the new supplier’s values, or clear them: if they still name the old supplier, PromoSync treats the product as inconsistent and does not move it. - Or clear
psrestful.extra_idand setpsrestful.supplier_codeandpsrestful.product_idto the new supplier’s code and product ID. PromoSync looks up the Extra ID from them in the last step and saves it topsrestful.extra_id.
For many products at once, a bulk editor or an import app such as Matrixify works well. See Connecting Existing Products for how to write metafields in bulk.
2. Update each variant’s Part ID
Set psrestful.part_id on every variant to the new supplier’s part ID for that color and size. Inventory and prices are looked up by Part ID, so a variant that still carries the old supplier’s Part ID gets no updates.
The same product at two suppliers may have different variants and different part IDs: other color names, sizes one supplier does not carry, or a different ID scheme. PromoSync reports every variant whose Part ID the new supplier does not list, but it cannot reconcile them for you. It never matches variants by color, size or UPC, because a wrong match would sell the wrong item. Decide variant by variant: set the right Part ID, or remove the variant if the new supplier does not carry it.
If the new supplier carries colors or sizes the product does not have yet, run Add New Variants after the re-link.
3. Run Re-link from Metafields
Run the Re-link from Metafields bulk action on the products you changed. The quickest way to cover all of them is Targeted Sync with Supplier set to the supplier the products were on before the switch.
PromoSync moves each product’s link to the supplier product its metafields name, and emails a report listing:
- products it could not resolve (no usable Extra ID),
- products whose metafields disagree with each other (not moved),
- variants whose Part ID the new supplier does not list (the product is moved; fix the variants).
Fix what the report lists and run the action again. Products that were already moved are reported as in sync, so a second run only works on what is left.
4. Refresh stock and prices
Run Update Inventory and Update Prices on the same products so they show the new supplier’s stock and pricing right away, instead of waiting for the next scheduled sync. If you keep supplier-specific data in metafields, Update Metafields rewrites it from the new supplier.
Common Questions
Do I need to delete and re-import the product?
No. The Shopify product, its URL, images, reviews and order history stay as they are. Only where PromoSync gets inventory and prices from changes.
Does it matter which supplier settings apply?
Yes. After the switch, the new supplier’s settings and overrides (pricing rules, inventory tracking, configuration type) apply to the product. Check them under PromoSync Settings before you refresh prices.
Can I switch back later?
Yes. Point the metafields back at the original supplier, restore the Part IDs, and run Re-link from Metafields again.
Related
- Re-link from Metafields: the bulk action that moves the links.
- Link to PromoSync: how PromoSync’s links work for products that have none yet.
- Product Metafields and Variant Metafields: the fields involved.