How to auto-fill brand information on product pages?

Hello everybody,

I am looking to add a section on the product page that has some information on the brand for a given product.

I already know how to add a section itself and I still need to put together the actual information to put in there so my question is as follows:

Can i set it so the actual content of the new section automatically fills based on the vendor for a given product or would i need to create a product template for each separate brand and apply them as necessary?

Thanks

Hi @SunShopp

You can surely do that by leveraging the product.vendor field then running a switch/case logic to get the required output automatically!

Let me know if that works for you!

Sorry, I’m not familiar with some of the terminology. Could you explain a little more?

Thanks

Disregard my previous reply.

Could you just tell me where specifically I would put the switch/case functions to see if it works?

Thank you

Hi @SunShopp !

Shopify has a great article on that: How to Use Liquid’s “case/when” Control Tags in Shopify Themes — Learning Liquid

Let me know if this helps!