Selected Collections Not Working in Theme Editor (Reward)

Hi Shopify Community,

I’m facing an issue with using selected_collections in the Theme Editor. Here’s what I’m trying to achieve:

I have a promo banner that should only display on specific collections selected in the Theme Editor. I used the following schema setup:

{
“type”: “collection_list”,
“id”: “selected_collections”,
“label”: “Allowed Collections”,
“info”: “Select the collections where the promo banner will appear.”
}

In the Liquid code, I split the selected collections and check if the current collection handle is in the list:

{%- assign allowed_collections = settings.selected_collections | split: “,” -%}
{%- if allowed_collections contains collection.handle -%}

{% endif %}

The problem is that the selected_collections data from the Theme Editor is not recognized in the Liquid code. I debugged it by outputting {{ settings.selected_collections }} on the page, and it is consistently empty, even after selecting collections in the Theme Editor and saving.

Debugging I’ve Done:

1.I tested with static values in the Liquid code, and the logic works perfectly.

2.I confirmed that the selected collections are saved correctly in the Theme Editor UI.

3.I tried using product_list and similar approaches but encountered the same issue.

What Works:

If I hardcode the allowed collections directly into the Liquid file, the promo banner displays as expected. However, the Theme Editor selection feature is crucial for my use case.

Question:

Is there a known limitation or bug with collection_list in the Theme Editor? Or is there a better approach to achieve dynamic collection-based settings in Shopify themes?

Any help would be greatly appreciated. Thank you! (Enterprise-Version 1.4.2) (25 Euro reward via pp if you can help me getting it to work)

Will need some looking up, but by the look of of it I e problem that seems to creep up my mind is when you try splitting it with a comma, it creates an array and you are just checking if the array contains that handle.

But I believe you should loop through every collection of your store or in this case the allowed collections and check for every collection if that collection contains the handle.

Will need to see this since you are on a paid theme and I believe have coded this up yourself

Please reach out via personal links below for a convenient conversation and collaboration.

Best

Shadab