tristantbg / kirby-shopify

MIT License
61 stars 7 forks source link

The section "products" could not be loaded: [API] Invalid API key or access token (unrecognized login or wrong password) #15

Closed paubou closed 1 year ago

paubou commented 1 year ago

I've set all the required informations in my .env file but somehow I cannot seem to access my panel/product page. SHOP_URL= is set to myshop.myshopify.com and working great API_KEY= API_PASSWORD= are set to this :

Capture d’écran 2022-12-05 à 16 32 43

SHOPIFY_APP_SECRET= is set to the yellow very long character chain:

Capture d’écran 2022-12-05 à 16 35 14

ACCESS_TOKEN= is set to

Capture d’écran 2022-12-05 à 16 34 08

But as soon as I go to my panel, to the products page, the error : The section "products" could not be loaded: [API] Invalid API key or access token (unrecognized login or wrong password) is thrown.

I can't seem to manage to understand where this comes from. Also, the Admin API access token is never used in that case, maybe I'm misunderstanding things.

tristantbg commented 1 year ago

Shopify has changed a few things and I need to update the readme and plugin.

You need to use the Admin API access token for the API_PASSWORD !

Capture d’écran 2022-12-06 à 22 23 44
paubou commented 1 year ago

Thanks @tristantbg ! However, the change seems to have greyed out the option to edit the item. Probably because of the webhooks? As the previous screenshot suggest, my webhooks are great though.

image
tristantbg commented 1 year ago

That's normal, the title shown here is the one written on Shopify, if you want to update it you need to update it on Shopify. That's what the plugin is meant to do 😅

paubou commented 1 year ago

thanks I guessed that after seing some screehshots on the forums... The first issue made me bogusly vigilant haha. 😖