If you have use the product type instead of vendor, you would need collections where the handle matches the type such as:-

/collections/jewellery matching product type handle of "jewellery"

Then instead of this:-

{%- assign vendor_handle = product.vendor | handle -%}

You can use:-

{%- assign vendor_handle = product.type | handle -%}

Which will look for a collection matching the product type.

More info on handles if useful:-

https://shopify.dev/api/liquid/filters/string-filters#handle-handleize

https://shopify.dev/api/liquid/basics/handle

Stephen Keable
Stephen Keable

Written by Stephen Keable

Shopify partner, JavaScript/Liquid/Swift developer, convert to serverless architecture and builder of digital products people love to use since 1999.

No responses yet