Re: Warning/Lock Collection managed by app

Warning/Lock Collection managed by app

gsouf
Shopify Partner
5 0 1

Hi,

 

I built an app that adds/remove automatically products to a given collection. However the only way to do that is to use a manual collection, that the user can still modify after the app created it and filled it. I don't want the user to be able to modify the collection as it's all managed by the app.

 

I'd like somehow to warn the user that this collection is managed by an app, or to prevent them to add/remove products from the collection.

 

Is that something we can do, or have a feature request for it?

 

Thanks

 

Replies 2 (2)

tobebuilds
Shopify Partner
415 28 110

Try creating an admin UI extension.

 

Maybe use the `admin.collection-details.action.render` target?

 

That way, you can display a banner on a collection page in the admin.

 

https://shopify.dev/docs/api/admin-extensions/2024-04/api/extension-targets

 

(Not sure if it will work, but it's worth a shot)

Founder, Regios Discounts app (4.9 stars)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer
gsouf
Shopify Partner
5 0 1

That's great ! I was not aware of the possibility of having this kind of extension.

I was able to play with it, and while I see great potential with it, it lives at the bottom of the page, only if the user pinned it to the UI.