Skip to content

Commit 153f568

Browse files
authored
Merge pull request #1375 from Vidhan2104/hard-sync-job-more-details
Added more details in hard sync job in Inventory Synchronization page.
2 parents c65ad85 + 6045141 commit 153f568

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

documents/learn-shopify/shopify-integration/inventory/inventory-sync.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ However, if a sale occurs in-store at 12:59:59 PM and HotWax Commerce receives a
4141

4242
To prevent this issue, merchants can use `Hard Sync` job once a day to synchronize the inventory counts of all products from HotWax Commerce to Shopify. The synchronization is achieved through the GraphQL file, similar to how inventory synchronization is performed for products with recent updates.
4343

44+
This job supports two parameters to control how inventory is synchronized:
45+
46+
- The facilityGroupId parameter defines which facilities’ inventory is accumulated to calculate the total available quantity.
47+
48+
- The shopifyFacilityGroupId parameter specifies which store facilities’ inventories should be pushed to Shopify. If not specified, inventory will be pushed for all locations mapped in ShopifyShopLocation.
49+
50+
**Example:** A retailer has 50 stores, with 25 in Zone 1 and 25 in Zone 2. He wants to push the total inventory of all 50 stores while mapping inventory to the stores in Zone 2.
51+
52+
- Calculate Inventory: They create a facility group for Zone 1 and Zone 2 and provide its ID in the `facilityGroupId` parameter. This ensures that stock from these stores is included in the total inventory calculation.
53+
54+
- Zone 2 Inventory Sync to Shopify: They create another facility group for the Zone 2 stores and provide its ID in the `shopifyFacilityGroupId` parameter. This directs inventory updates only to the stores included in that facility group.
55+
4456
<figure><img src="../../.gitbook/assets/11.png" alt=""><figcaption><p><em>Fig. 2: Hard Sync inventory to remove any discrepancy</em></p></figcaption></figure>
4557

4658
## Push Updated Inventory Deltas to Shopify
@@ -53,4 +65,4 @@ For example, Product A has 5 units listed in both Shopify and HotWax Commerce. S
5365

5466
In another example, if a store receives a transfer order for Product B with 2 units, which originally had 10 units, then a variance of 2 will be pushed on Shopify to update the Shopify ATP to 12.
5567

56-
![Delta sync job](/documents/learn-shopify/.gitbook/assets/push-inventory-deltas.png)
68+
![Delta sync job](/documents/learn-shopify/.gitbook/assets/push-inventory-deltas.png)

documents/retail-operations/workflow/job-workflows/inventory.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ description: Discover how Inventory job works in HotWax Commerce.
88

99
### Hard Sync
1010

11-
Job Name: `Upload Inventory`
12-
Job Enum ID: `JOB_UL_INV`
13-
Service Name: `bulkResetShopifyInventoryLevel`
11+
Job Name: `Upload Inventory`\
12+
Job Enum ID: `JOB_UL_INV`\
13+
Service Name: `bulkResetShopifyInventoryLevel`\
1414
Flow: Inventory Sync from HotWax to Shopify.
1515

1616
**The `Hard Sync` job is used to synchronize the inventory of all the products from HotWax to Shopify once a day.** This job fetches the inventory counts of all products in Shopify and compares them with the inventory counts of all products in HotWax Commerce. Then it prepares the delta file in GraphQL format for all the products where there is a difference in inventory counts in HotWax compared to Shopify. This delta file is then sent to Shopify, and Shopify updates the inventory counts by recording deltas.
1717

18-
Note: The `ShopifyFacilityGroupId` ' parameter allows retailers to not to push inventory of specific facilities included in that group.
18+
Note: The `ShopifyFacilityGroupId` parameter allows retailers to push inventory of specific facilities included in that group.
1919

2020
**Custom Parameters**
2121
- This job has no required parameters.
@@ -186,9 +186,9 @@ The HotWax Commerce Import App simplifies this process by allowing retailers to
186186

187187
### Sync Invnetory from Shopify
188188

189-
Job Name: `Sync Inventory from Shopify`
190-
Job Enum Id : `JOB_SYNC_INV_FRM_SHPY`
191-
Service Name: `bulkInventorySyncFromShopify`
189+
Job Name: `Sync Inventory from Shopify`\
190+
Job Enum Id : `JOB_SYNC_INV_FRM_SHPY`\
191+
Service Name: `bulkInventorySyncFromShopify`\
192192
Flow: Inventory Synchronization from Shopify
193193

194194
In cases where HotWax is not used as the source of truth for inventory availability—meaning retailers do not use HotWax for fulfillment and do not have an ERP system for inventory management—HotWax relies on Shopify for inventory updates. To ensure accurate inventory data, this job runs once a day to reset inventory updates for all products.

0 commit comments

Comments
 (0)