{"id":25319407,"url":"https://github.com/subhan-tariq/-shopify-flow-inventory-sync","last_synced_at":"2026-04-24T21:33:59.667Z","repository":{"id":277336830,"uuid":"932102873","full_name":"Subhan-Tariq/-Shopify-Flow-Inventory-Sync","owner":"Subhan-Tariq","description":"A Shopify Flow automation to adjust inventory for room booking variants based on selected date ranges and occupancy types. Prevents overbooking by syncing inventory across variants.","archived":false,"fork":false,"pushed_at":"2025-02-13T11:28:40.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T12:30:19.920Z","etag":null,"topics":["automation","ecommerce","git","inventory-management","shopify","shopify-storefront","shopify-theme","shopify-theme-development"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Subhan-Tariq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-13T11:19:23.000Z","updated_at":"2025-02-13T11:38:55.000Z","dependencies_parsed_at":"2025-02-13T12:41:36.126Z","dependency_job_id":null,"html_url":"https://github.com/Subhan-Tariq/-Shopify-Flow-Inventory-Sync","commit_stats":null,"previous_names":["subhan-tariq/-shopify-flow-inventory-sync"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subhan-Tariq%2F-Shopify-Flow-Inventory-Sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subhan-Tariq%2F-Shopify-Flow-Inventory-Sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subhan-Tariq%2F-Shopify-Flow-Inventory-Sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Subhan-Tariq%2F-Shopify-Flow-Inventory-Sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Subhan-Tariq","download_url":"https://codeload.github.com/Subhan-Tariq/-Shopify-Flow-Inventory-Sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247707155,"owners_count":20982734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","ecommerce","git","inventory-management","shopify","shopify-storefront","shopify-theme","shopify-theme-development"],"created_at":"2025-02-13T20:20:48.530Z","updated_at":"2026-04-24T21:33:59.661Z","avatar_url":"https://github.com/Subhan-Tariq.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# -Shopify-Flow-Inventory-Sync\nA Shopify Flow automation to adjust inventory for room booking variants based on selected date ranges and occupancy types. Prevents overbooking by syncing inventory across variants.\n\nShopify Flow - Inventory Adjustment for Room Bookings and More\n\n📌 Overview\n\nThis Shopify Flow automation ensures that when a customer books a room for a specific date range and selects a particular occupancy type, the inventory for other occupancy variants is also updated accordingly.\n\nFor example, if a customer books a Single Occupancy room for the dates Feb 5 - 10, the flow will automatically set the inventory of Double Occupancy and other variants for the same date range to zero, preventing overbooking.\n\n🚀 How It Works\n\nThe flow is triggered when an order is created.\n\nIt loops through the line items in the order.\n\nA GraphQL query retrieves product variants and their inventory.\n\nThe script adjusts inventory for the corresponding variants.\n\n🎯 Other Use Cases\n\nThis Shopify Flow automation can be adapted for other inventory synchronization needs, including:\n\nEvent Ticketing: Ensure that if one ticket category (e.g., VIP) is sold out, other linked categories (e.g., General Admission) are also updated.\n\nSubscription Box Variants: If a monthly box option is selected, prevent customers from selecting conflicting subscriptions for the same period.\n\nRental Products: Auto-adjust inventory for rental equipment where different options share the same stock.\n\nLimited-Edition Bundles: When one product in a bundle is out of stock, automatically mark related bundles as unavailable.\n\n📂 Installation \u0026 Usage\n\nDownload the Flow File: Get the Inventory-Adjustment-Workflow.flow from the flow-files directory.\n\nUpload to Shopify Flow:\n\nGo to your Shopify admin panel.\n\nNavigate to Apps \u003e Shopify Flow.\n\nClick Import Workflow and upload the file.\n\nActivate the Flow: Ensure the flow is enabled so it can run automatically when an order is placed.\n\n🔧 Customization\n\nYou can modify the flow logic to match your store’s specific booking and inventory rules.\n\nAdjust the GraphQL query if additional variant data is required.\n\n✨ Contributions\n\nIf you have improvements or bug fixes, feel free to fork the repository and submit a pull request!\n\nAuthor: Subhan Tariq\n\n📧 Contact: subhant745@gmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhan-tariq%2F-shopify-flow-inventory-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubhan-tariq%2F-shopify-flow-inventory-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhan-tariq%2F-shopify-flow-inventory-sync/lists"}