I’m on ERPNext 10 and the shopify connector reads ERPNext Shopify: v2.0.26 (develop) (dated 4th of April, 2018). Upon setting up the shopify connector and syncing for the first time it set all the product prices on the shopify store to 0.
Another issue is, in the shopify connector log I can see that it synced customer and items but no sales orders were synced.
Is this particular connector considered to be in a working state or is using this shopify connector installed through the app installer (within ERPNext) not recommended anymore?
I followed the official docs guide for setting the connector up. Creating a private shopify app etc
EDIT
ERPNext 11 and 12 seem to have problems syncing with Shopify as well, so let’s focus on that instead.
After setting up a private shopify app and configuring the API, Password, Shared Secret fields and configuring the mappings the connector is not pulling any new orders.
The connector doesn’t create the webhooks sections in Shopify Settings, which seems to be the issue here.
There is no indication of what is wrong as no shopify logs are being created.
I set up Shopify in ERPNext 11 and again it doesn’t pull any sales orders. No issues in the logs either, they are empty. Has anyone managed to make shopify work or is it simply broken right now?
I seem to have the same issue as here. No webhooks are being created.
Troubleshoot whether it’s a known issue, is that what you mean? Well I have seen no official confirmation anywhere so to anyone reading this feel free to chime in.
Good question! Troubleshooting is just problem solving or debugging - what any of us must do when something doesn’t work as expected!
It’s a systematic trial and error experimental process. The steps generally are:
Ask a Question
Form a Hypothesis - a theory to test and answer the Question
Design and perform an experiment to test the Hypothesis
Observe and analyse the actual versus expected result
Form a Conclusion.
Repeat 1-5 based on 5
So when something fails to work as expected, in our case step 4) is to check the logs - including /var/log/* - to identify what actually occurred is key!
That all sounds nice in theory but I couldn’t find anything about shopify in any of the logs that looked relevant or of any actual help.
It surely it would be more beneficial for all parties involved if any one of the ERPNext devs could quickly debug the issue to confirm what is the cause e.g. if there have been some API changes on Shopify’s end that rendered the connector unusable. That’s considering the fact that the ERPNext foundation is advertising a product with Shopify compatibility baked in and yet I haven’t gotten a single positive confirmation that it works as advertised, just have been reading threads and github issues about how it is indeed broken but they can’t get hold of the developer that was originally responsible for the connector’s creation.
The big question here is whether you found anything or nothing - that is key - what did you find where?
Upon searching for the keyword “shopify” in every single file in the logs folder I didn’t get a single result. So my guess is, well it’s kind obvious as already mentioned in the gihub issue I raised, the connector is failing to add webhook bindings as evident from their section missing in the shoppify settings page.
Ensure your Scheduler is running…
I’m not aware what the Scheduler is for, could you explain? And also how it would help in the context of the issue at hand?
I run the command “bench --site (my site) enable-scheduler” successfully. What did that achieve? Searching for “scheduler” using the universal search inside ERPNext didn’t yield any results.
From my understanding and saurabh6790’s explanation in the thread I linked (and then you linked again), the Shopify connector since version 11 is using webhooks. This means that as soon as an order is made Shopify sends a sync request over webhooks and then ERPNext uses the request to create the order. Which brings me back to the issue that I already mentioned before, the webhooks have not been registered successfully and hence the sync problem.
The sync process does NOT happen through a scheduled task.
I’m relinking the screenshot from the aforementioned thread for clarity
The webhook records do not appear for me, neither in version 11 or 12.