Skip to content

Design for new Create Shopify Order service#151

Draft
gurveenbagga wants to merge 1 commit intomainfrom
transform-shopify-order-doc
Draft

Design for new Create Shopify Order service#151
gurveenbagga wants to merge 1 commit intomainfrom
transform-shopify-order-doc

Conversation

@gurveenbagga
Copy link
Contributor

No description provided.

@gurveenbagga gurveenbagga marked this pull request as draft December 23, 2025 09:55
**Purpose:** Prevent duplicate order creation.
**Logic:**

- Check `OrderIdentification` for `SHOPIFY_ORD_ID = legacyResourceId`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't personally like that we have to check a vertical table rather than just checking external id. why not just Shopify shop order table?


## 3. Tags

**Purpose:** Skip order import if tags match forbidden tags.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just filter these in your graphql bulk query?


#### Mixed Cart POS Order:
- Shipping address exists
- AND `displayFulfillmentStatus = PARTIALLY_FULFILLED`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to check fulfillment status when assigning channel?


## 7. Default Facility & Location Facility

** Default Facility:**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

facility id should simply be whatever facility is set on the order in shopify and the location that it maps to in hotwax using the Shopify shop mapping table. no need to check default inventory facility

Comment on lines +139 to +143
If `staffMember.id` exists:

Add attribute:

- `attrName = shopify_user_id`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way to use order role here instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants