Issues rendering content from a JSON query

The user enters their zip code in a form we have set up on Shopify,

shopify sends a query to salesforce,

salesforce returns a list of unique identifiers for the products that match the query, in this case, unique urls.

but we are having issues rendering the urls into a liquid loop to render the products as a list on the page.

the salesforce output looks something like this:

20164 [
“grayleaf-goldenrod-3-plant-set-full-sun”,
“monarch-munchables-full-sun-6-plant-collection”,
“monarch-munchables-full-sun-12-plant-collection”,
“spring-bee-buffet-6-plant-collection-part-shade-limited-edition”,
“hummingbird-heroes-6-plant-collection-part-shade”,
“orange-butterfly-milkweed-3-pack”,
“pollinator-power-part-shade-6-plant-collection”,
“pollinator-power-part-shade-12-plant-collection”
]

The conversation between shopify and salesforce is working, but the output needs to be rendered in a way that matches the rest of the site.

I have looked at collections templates, and I was not able to get it working for this zip code query.

Any suggestions?

I feel like I might be missing something obvious, so feel free to cover all bases.

Thank you for any insights

Hi @millerm ,

This is managed directly by salesforce, so the best way is helpful to show salesforce. However, you can try the following code( the returned JSON example is named array_product :disappointed_face:

{%- for handle in array_product -%}
      {%- assign product = all_products[handle] -%}
	  
    {%- endfor -%}

Refer product object: https://shopify.dev/api/liquid/objects/product

Hope it helps!