Automatically add Theme Extension to section

Is it possible to add my custom app Theme Extension to a section on the product-detail page when the app is installed? So the merchant only had to install the app or click a button on the app admin index page.

I believe it should be possible but I have not tested myself. Assuming you have the right permissions you should be able to pull and modify the template to include the necessary code for the theme app extension to be part of it.

That said, if they have multiple templates and want it in a specific one it may not be helpful to automatically add it in that capacity but rather let them select from a list of templates (maybe even mutli-select) to have it added to with a button click.

@Paul_Visser Please follow the documentation:

Thank you very much guys! @AMaL great! That was what I was looking for, thanks again.

You’re most welcome! I’m glad the solution worked for you.:blush: