New Shopify Certification now available: Liquid Storefronts for Theme Developers

Access denied for scriptTagCreate field. Required access: `write_script_tags` access scope.

Solved
francissebin-2h
Shopify Partner
1 0 1
Thanks in advance,
I'm new to Shopify and it's app development section.
 
I'm using  shopify-app-template-php i'm unable to pass another scope in shopify.app.toml file after installing the app with another scope it shows the following error.

The app couldn’t be loaded

This app can’t load due to an issue with browser cookies. Try enabling cookies in your browser, switching to another browser, or contacting the developer to get support.

 

I passed the scope like this.

scopes = "write_products,write_script_tags"

both the error stack trace in the Laravel log file and the shopify.app.toml file content screenshot is the following:

 

https://support-tools.com/?ef0ed7e41b323dc4#3CiLrhmSqrhzRWVoxxaOGMxMo1fyPI9hwxVnUR4aXyE= 

https://support-tools.com/?59bb2b9a2fdb074e#PmaQySz+GTzRePmkmiICknrfpfHsHvCbPtTkbeP59xo= 

 

I also have doubts about whether is it possible to override some front-end sections with the custom app, like I want to track/save the user-searched keywords to my DB.

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4235 979 1193

This is an accepted solution.

Hi @francissebin-2h 

 

Have you tried to do reinstall the app in your development store? Since you change the access scope, the app needs to be updated. Try to run this command "npm run dev -- --reset" I use those to reconnect the app after uninstalling. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Reply 1 (1)
Made4uo-Ribe
Shopify Partner
4235 979 1193

This is an accepted solution.

Hi @francissebin-2h 

 

Have you tried to do reinstall the app in your development store? Since you change the access scope, the app needs to be updated. Try to run this command "npm run dev -- --reset" I use those to reconnect the app after uninstalling. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com