Hi everyone,
I’m trying to integrate the Shopify Plugin into a site I’m working on, but I’m stuck.
These are the steps I took so far, according to the plugin docs:
-
Copied the repository’s content to
site/plugins/kirby-shopify
-
Set up a Shopify Partners account
-
Created a Shopify development store
-
Added a private app to the store to generate Storefront credentials
-
Enabled all Storefront API Permissions (read products, read customer details, etc …)
-
Set up the web hooks in the dev stores notification settings (according to the plugin docs)
-
Added
'cache.api' => true
to the site’s config.php -
Added the following template files to
site/templates
:shopify.collection.php
shopify.collections.php
shopify.product.php
shopify.products.php
-
Created a new .env file (copy of
.env.example
) and added the credentials:
- shop URL
- API key
- API password
- Shopify secret to authenticate web hooks
- the Storefront access token
However, when checking the Products page in the panel, I get this error message:
[API] This action requires merchant approval for read_products scope.
I haven’t worked with Shopify a lot, but this makes me think something is wrong with the Storefront access. As I said, the permissions for this are set though:
Can anybody tell me what I’m missing or where I’m going wrong? Thanks in advance for any help.