-
-
Notifications
You must be signed in to change notification settings - Fork 158
Description
Description
I am encountering an issue with the laravel-shopify package (version ^19.1) after switching from the legacy installation flow to Shopify's managed installation flow.
With use_legacy_install_flow = true
in the shopify.app.toml
file, the application functioned correctly. However, due to requirements such as registering webhooks via a configuration file, I updated the configuration to use_legacy_install_flow = false
to adopt the managed installation flow.
After deploying this change and installing the app on a new Shopify store, the installation completes successfully, but the app fails to function, displaying a blank screen.
Upon inspecting the database (users table), I found no access token stored for the shop. This suggests a potential issue with authentication during the managed installation process, possibly linked to package compatibility or Shopify's updated installation requirements.
Steps to Reproduce
- Set up a new Shopify app using the laravel-shopify package (version ^19.1).
- In shopify.app.toml, configure use_legacy_install_flow = false
- Deploy the application (
shopify app deploy
) - Install the app on a new Shopify store.
- Observe that the app installs but displays a blank screen when accessed.
- Check the database (users table) for the shop's access token, confirm it is not present.
Expected Behavior
- The app installs successfully.
- An access token is generated and stored in the database for the shop.
Actual Behavior
The app installs but displays a blank screen.
No access token is stored in the database.
Environment
- Laravel version: ^10.10
- PHP version: 8.1
- Shopify API version: 2025-01
- Package version: 19.1
- Database: MySQL
Additional Information
- The app works as expected with
use_legacy_install_flow = true
, including proper access token storage. - The issue is specific to
use_legacy_install_flow = false
. - No obvious errors were found in the Laravel logs during installation.
Hi @Kyon147, I’ve reviewed both the package wiki and the issues but couldn’t find any specific information about Shopify’s managed installation. Could you please provide some guidance or insight to help me move forward?
Your assistance would be greatly appreciated.
Reference: