Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Warning/Lock Collection managed by app

Warning/Lock Collection managed by app

gsouf
Shopify Partner
11 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

 

Advanced filters for smart collections - collections hierarchy and breadcrumbs: Smart Collection Pro
Replies 2 (2)

tobebuilds
Shopify Partner
557 42 151

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.8 stars, 83 reviews, Built for Shopify)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer
- Often imitated, never duplicated
gsouf
Shopify Partner
11 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.

 

Advanced filters for smart collections - collections hierarchy and breadcrumbs: Smart Collection Pro