Configuration

Scopes

Setup your app's required scopes in the scopes array in config/esc_shopify.php.

Webhooks

When the authentication helper creates a new site, it can also register new webhooks or scripttags with it.

To configure your app's webhooks, add entries to the webhooks array in config/esc_shopify.php:

'webhooks' => [
        [
            'address' => 'https://myapp.io/hooks/example',
            'topic' => 'products/create',
            'format' => 'json'
        ]
]

The available fields are those supplied to POST /admin/webhooks.json in the Shopify API docs.

ScriptTags

To configure your app's ScriptTags, add entries to the script_tags array in config/esc_shopify.php:

'script_tags' => [
    'http://myapp.io/scripts/shopify.js'
]

Each entry should be the URL of a script to load.

results matching ""

    No results matching ""