frappe / ecommerce_integrations

Ecommerce integrations for ERPNext
https://frappecloud.com/marketplace/apps/ecommerce_integrations
GNU General Public License v3.0
99 stars 123 forks source link

Shopify Not Syncing #298

Open marekbeylich opened 6 months ago

marekbeylich commented 6 months ago

I am absolutely incapable of getting the inventory to sync from erpnext to shopify, I have tried reisntalling everything and still nothing.

in logs, i have a bunch of [migrate_from_old_connector] that are queued infinitely.

Let me know if this is just an oversight from my part or an actual bug, I am a beginner and not too sure how to go about fixing this.

GeoCommander commented 5 months ago

Hi,

Are you able to connect erpnext to shopify at all? Have you selected "Update ERPNext stock levels to Shopify" under "shopify settings"?

if you running erpnext on prem also keep in mind that shopify integration requires webhooks. You can temporary solve this using ngrok for dev deployment.

marekbeylich commented 5 months ago

Hi,

It seems to pickup products from shopify properly just not syncing inventory levels or orders.

I am running on prem with https already. I was not aware of the webhooks. What webhooks are needed for the full integration?

Thnak you!

GeoCommander commented 5 months ago

Hi,

It seems to pickup products from shopify properly just not syncing inventory levels or orders.

I am running on prem with https already. I was not aware of the webhooks. What webhooks are needed for the full integration?

Thnak you!

I am not sure why would it not sync inventory data from shopify to be honest. I personally never had a need to sync inventory data from Shopify, maybe somone more experienced have something to say

marekbeylich commented 5 months ago

Can you elaborate on what you were saying regarding the webhooks? I am not sure what you mean or what I should do since I have erpnext on my own server! thank you.

Cai-Staggs commented 5 months ago

I am encountering this same Issue. You may try some of these same steps that I have to see if it is a bug with the most updated version.

  1. I can sync products manually just fine.
  2. Customer Data will not sync from shopify
  3. If I go into shopify and create a new order, that order will sync just fine with customer data
  4. If I enable sync ERPNext Stock to Shopify, I can select pull shopify locations and that pulls normally.

If I check my logs I also only see 'migrate from old connector'.

It would seem new orders sync just fine, the only issue is syncing from the old orders. My thought is one of the following.

  1. shopify has changes something with webhooks to not allow pulling old records
  2. the most recent update of the ecommerce_integrations app has a bug that fails to pull old orders
  3. there is something I am overlooking in my settings that is not allowing it to pull.

I am leaning more towards 1 or 2 for this issue. I am not able to find anyone else except the Author of this issue that has had this problem. I also am not receiving any logs that would indicate an error in my setup. I just enable sync from old orders > select the date range > save it. Then wait. In my logs I see the "queued" sync from old connector. But Nothing after that. If I wait a few hours 'sync from old' under shopify setting gets unchecked automatically, and I see the at the bottom of the page "Administrator has changed the value of Sync Old Orders from 1 to 0"

ccbbccbb commented 4 weeks ago

@Cai-Staggs - it's odd, we have the inverse of this issue. old orders can sync, but orders that come in from shopify do not seem to be picked up by ERPNext.

what version of ERPNext are you have your issue with? v13, v14, v15?