craftcms / shopify

Synchronize and extend product data from your Shopify storefront.
MIT License
45 stars 25 forks source link

Webhooks Interface Error #84

Closed beckbailey closed 1 year ago

beckbailey commented 1 year ago

Description

I've configured the plugin and input the connection settings. When I get to the webhooks step in the documentation I get an error when I try to visit that interface in the CP. I have a multi-site configuration. I tried inputting the API values directly in the interface and as variables in my env file. Stack trace attached. shopify-trace.txt

Steps to reproduce

See above

Additional info

beckbailey commented 1 year ago

I believe this is related to https://github.com/craftcms/shopify/issues/81

nfourtythree commented 1 year ago

Hi @beckbailey

Which "Webhook version" did you set in your custom develop app in your Shopify store?

Thanks

beckbailey commented 1 year ago

@nfourtythree I tried all that I have available to me with no success. Right now it's set to 2023-10. Here's what I can select from:

Screenshot_34
nfourtythree commented 1 year ago

@beckbailey ah yes I can see that they have finally dropped support for 2022-10 for newly created apps.

We were waiting on this issue to be resolved in the Shopify PHP API: https://github.com/Shopify/shopify-api-php/issues/300

That has now been resolved, so we have started our process to get a new release out of this plugin so it can be compatible. We are looking to get that out ASAP.

If you are in desperate need for this right now you can change your craftcms/shopify requirement in your project's composer.json to:

"require": {
  "craftcms/shopify": "4.0.x-dev as 4.0.0",
  "...": "..."
}

Then run composer update.

lukeholder commented 1 year ago

This is fixed for the next release. I will update this issue once Shopify 4.0 is out.

lukeholder commented 1 year ago

4.0.0 is now out. Make sure to read the changelog item to learn what you need to do to upgrade. The readme also contains instructions.

beckbailey commented 9 months ago

I just got back to this and it's still not working for me. I attached my error. I checked and regenerated my credentials multiple times. My host name did change on my Shopify install since my initial post but I have updated it in the Craft config.

error-shopify.txt

CraftCMS: 4.7.1 Shopify: 4.0 PHP version: 8.0.26 Database driver & version: MySQL 5.7.41

Update: after seeing this post I changed my hostname to the secondary myshopify domain and it worked just like this post: https://github.com/craftcms/shopify/issues/89