How to adjust delivery times based on vendor in schema?

I’m really in the dark here. I’ve created some basic schemas before for related products and other small stuff. Now I want to create a product block where any employee quick and easy can change delivery times based on vendor.

Something like:

product.vendor1 3-5 days
product.vendor2 2-4 days
product.vendor3 7-10 days

Anyone want to give me some pointers?

Hi @jw8

If you want to render it based on vendor, you can do it like this

{%- case product.vendor -%}
{%- when 'vendor1'-%}

{%- when 'vendor2'-%}

{%- endcase -%}

or you can try to add Delivery Time metafields

https://help.shopify.com/en/manual/metafields

1 Like