How to fulfill an order with deleted products

Solved
BogdanM
Shopify Partner
112 3 21

Hi,

 

I have an app which is fulfilling orders.

In order to create fulfillment objects, I need, the location id of the items in that order.

Now, following the process outlined here, I have to get the variant_id from the order's line_items and use it to determine the location where that variant is stocked.

However, there are cases when the variant_id is null, which I understand it happens when that variant is deleted after the order has been placed.

 

How can I fulfill the order in this case?

 

 

Bogdan | WebShopAssist
User friendly apps with top-rated support
- SKUGen the SKU generator
- DPD Integration
0 Likes
BogdanM
Shopify Partner
112 3 21
Why don't you teach us all, here, on the forum, Tariq? This is the purpose of a community, isn't it?
Bogdan | WebShopAssist
User friendly apps with top-rated support
- SKUGen the SKU generator
- DPD Integration
BogdanM
Shopify Partner
112 3 21

This is an accepted solution.

Finally, I found the answer ...

"If an order contains line items without product or variant IDs, then those items can be fulfilled using any of the shop's locations."

Bogdan | WebShopAssist
User friendly apps with top-rated support
- SKUGen the SKU generator
- DPD Integration
0 Likes
nathann
New Member
2 0 0

Hi, 

 

I have the same issue can you please tell me how did you resolve it please !!

0 Likes