-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shopify Integration [FEATURE] #137
Comments
Is it possible to get them? Just in case. |
Yes ill invite you to the scripts. |
Curious if we should use a service like this? https://www.codat.io/ I'm okay if we do not. External services can be expensive and unreliable. I invited you the scripts. |
This is the bit of code that pulls orders down: https://github.com/CGSmith-LLC/shipwise-backend/blob/master/cron/countrypet.php#L139-L146 |
@cgsmith thanks |
Here is a Codat link to checkout... maybe we can leverage this to integrate with many platforms at once? Just not sure on what it would cost: https://docs.codat.io/docs/get-started-api Most customers have Shopify accounts. |
@bohdan-vorona - forget I mentioned Codat. Let's just integrate directly that way we can control our flow. If we need to use a service like Codat in the future we will. Sorry for the confusion! |
@cgsmith ok, no problem 👌🏻 |
And
|
This can be deleted and removed. It was going to be used for a Shopify App but was never fully tested or finished.
Yes. It is not used in production feel free to change all.
Yes
The
Feel free to redesign the flow or add any forms. This will mainly be customer facing for them to connect ecommerce sites. |
@cgsmith Thanks 👌 |
@bohdan-vorona feel free to create other issues if you feel like we need to separate some of the code out. |
@cgsmith Since Will do it tomorrow) |
Pages:
|
I have some questions to clarify: 1/ Shopify API doesn't provide full information about the Have a look: https://prnt.sc/Rh3GHfR1GGVw <-> https://prnt.sc/VeLuRvqD-37b A) For the moment, I set "Not provided" for the required fields if they are not provided by Shopify API - https://prnt.sc/xiTk3t_kAnR5 We can keep this logic. B) Skip such Orders (don't parse them) - I mean, Orders without needed fields in the 2/ Also, there are lots of test Items without A) For the moment, I set "Not provided" for the required fields if they are not provided by Shopify API - https://prnt.sc/-8DI6PdUVMpw We can keep this logic. B) Skip such Items (don't parse them). But, in this case, there can be easily a situation when we have removed all Items and the Order has no Items at all. Save the Order with no Items or don't save (skip)? 3/ Here https://github.com/CGSmith-LLC/shipwise-backend/blob/master/src/CGSMITH/Shopify.php you set 4/ At the moment I pull only orders with the fulfilment status = 5/ The user can go to his Shop and uninstall our Shopify App. In this case, we will not be able to pull orders. What shall I do in this case? A) Just remove the shop on our side. B) Send an email. C) Add a new status, something like D) Your option) 6/ We have users and customers. During connecting a Shop, shall I display here all our customers or only customers related to the current user ID via the table |
1. I wonder if this is due to how the call is made or authorized for PII. I
will get you access to our test Shopify site.
1a. This is fine for now but might need to be adjusted in the future.
1b. I was thinking we could send orders that don't parse to the users email
who setup the integration. Maybe a summary email for orders that didn't
parse? Any thoughts?
2. Ignore and put in an error report? Thoughts? I'm okay with just ignoring
as well.
3. Setting as NULL should be fine. Shipwise will contain this logic
eventually.
4. This should be changed on the integration setup. We will receive all web
hooks but only act if it matches the status.
5. Options b and c
6. Only customers relating to the user.
…On Thu, Mar 2, 2023, 1:08 PM Bohdan ***@***.***> wrote:
@cgsmith <https://github.com/cgsmith>
*I have some questions to clarify:*
*1/* Shopify API doesn't provide full information about the Shipping
address of test orders. I have no idea why (maybe during the production
it will be ok). But our Address model has some required fields. What
shall I do?
Have a look: https://prnt.sc/Rh3GHfR1GGVw <-> https://prnt.sc/VeLuRvqD-37b
*A)* For the moment, I set "Not provided" for the required fields if they
are not provided by Shopify API - https://prnt.sc/xiTk3t_kAnR5 We can
keep this logic.
*B)* Skip such Orders (don't parse them) - I mean, Orders without needed
fields in the Shipping address.
*2/* Also, there are lots of test Items without SKU but this field is
required on our side. What shall I do?
*A)* For the moment, I set "Not provided" for the required fields if they
are not provided by Shopify API - https://prnt.sc/-8DI6PdUVMpw We can
keep this logic.
*B)* Skip such Items (don't parse them). But, in this case, there can be
easily a situation when we have removed all Items and the Order has no
Items at all. Save the Order with no Items or don't save (skip)?
*3/* Here
https://github.com/CGSmith-LLC/shipwise-backend/blob/master/src/CGSMITH/Shopify.php
you set Carrier as FedEx. It seems that Shopify API doesn't provide such
information. Shall I do the same (set default carrier) or set it as NULL?
*4/* At the moment I pull only orders with the fulfilment status =
unfulfilled. But you wrote: *I may want to specify a specific status to
pull orders in on (Paid/Unfulfilled as an example)* So, in Shop Settings,
there must be an ability to set the statuses? The default value is ALL?
*5/* The user can go to his Shop and *uninstall our Shopify App*. In this
case, we will not be able to pull orders. What shall I do in this case?
*A)* Just remove the shop on our side.
*B)* Send an email.
*C)* Add a new status, something like Uninstalled on our side with the
ability to re-connect the shop again.
*D)* Your option)
*6/* We have users and customers. During connecting a Shop, shall I
display here all our customers or only customers related to the current
user ID via the table user_customer?
[image: customer-drop-down]
<https://user-images.githubusercontent.com/5950639/222527210-1fbf3cc1-57a3-40a2-91c2-a4f245a65180.png>
------------------------------
[image: shopify-order-example]
<https://user-images.githubusercontent.com/5950639/222527542-0a966635-52cf-4a28-b3a4-e4a57ab37695.png>
—
Reply to this email directly, view it on GitHub
<#137 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAELFIRJX4LXZQ7R22B6DNLW2DV4JANCNFSM6AAAAAAU5APK4E>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@cgsmith Thanks for your reply!
3-6. Ok. |
@bohdan-vorona - I sent the invite to your email for partners.shopify.com I gave access to the chris-test-me-now site... which you can use however you want. Just a dev site. Blue Nest Beef you should have access to as well for a production site. It is a friend's site so you can install the app or test on that for webhooks if you'd like. Let me know if you need me to test or research anything for you. |
@cgsmith Ok, thanks 👌 |
@cgsmith Status update:
I was not able to test on |
I will have time to test this week as well. |
@cgsmith Status update: I'm finishing webhooks processing. I mean, processing of these webhooks received from Shopify:
Mandatory:
Some moments:
What shall I do with these webhooks (see the list below)? Change the status or...? If change the status, then what accordance? Or just mark them as
I'm testing the logic on my test Shopify App and my two test Shopify Shops. I wanted to use your App's credentials but you didn't provide access for me. If you would like me to test using your App's credentials as well, please grant me corresponding access ) Finishing the webhooks processing and it would be nice if you check and test it locally since there is a good chunk of logic ) I will let you know. Meanwhile, I will switch to |
Is your feature request related to a problem? Please describe.
Currently I have a PHP scripts folder that just runs cron jobs and pulls down open orders via Shopify's API. This is problematic because it doesn't pull down updates.
Describe the solution you'd like
This feature relates to #129 and #98 - I don't think it depends on it.
As a user:
Technically:
Note:
I was planning on using hookdeck for all integrations but we can reevaluate this later.
References:
The text was updated successfully, but these errors were encountered: