What's your biggest current challenge? Have your say in Community Polls along the right column.

How to edit .liquid for an automatically-created vendor collection?

How to edit .liquid for an automatically-created vendor collection?

morgenruff
Visitor
1 0 0

Hello,

 

I have some products for sale on my Shopify site that I don't want to display a price for. Rather, for those products I just have a "contact us" field where "add to cart" would usually be, and the customer would then email my company for a direct quote.

 

I have already figured out how to not display a price on individual products via liquid, and to remove the item price from collections I have custom-created.

 

However, when I click any vendor name (e.g. on a product page or in a custom collection), the site takes me to a collection that's just all of that vendor's products, with the vendor name at the top of the page. I want to keep this feature because it will be useful, but for certain vendors I don't want to display the item price on this vendor collection page, just like with some of my own custom collections. How do I edit a .liquid file for vendor collections or add custom CSS? I cannot find this anywhere in the admin interface.

 

Thanks for any help!

Reply 1 (1)

PaulNewton
Shopify Partner
7450 657 1565

...collections/vendors?q= is a query endpoint 

To output styles for logic based on a collections vendor ,see the current_vendor property on the collection object

https://shopify.dev/docs/api/liquid/objects/collection#collection-current_vendor 

 

For creating/customizing navigation use the link_to_vendor filter, or search through the theme for that filter if customizing https://shopify.dev/docs/api/liquid/filters/link_to_vendor 

 

For trying to control vendors as a group of collections i.e. /collections/brands etc , a starting point is repurposing the old vintage theme customization for collection subsets 

https://help.shopify.com/en/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-... 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org