Add Vendor To Collection Cards in Craft Theme

Solved

Add Vendor To Collection Cards in Craft Theme

cpo1
Tourist
3 1 0

I am trying to add the Vendor name above the image on each Collection Card. I assume this will involve changes to the snippets/card-product.liquid, but am not sure about that. Does anyone have experience with this issue? Thank your for your time and consideration.

Accepted Solution (1)
cpo1
Tourist
3 1 0

This is an accepted solution.

After some experimenting with this, I was able to add the Vendor just below the price line and above the size element. I believe I have too much code in there at the moment, but it works. I'll try to clean it up when I have some more time. In the meantime, it is working. Thank you very much.

View solution in original post

Replies 3 (3)

qasim-devloper
Shopify Partner
310 23 47

Hey @cpo1 I hope you are doing well.
Welcome to the Shopify Community where hundred of Individual Developers ready to help you. Showing the Vendor above the each image of Collection card require a custom coding.
I you familiar with the coding then paste this code on the top of Image render code in snippets/card-product.liquid file.

{% if product.vendor %}
  <p class="product-vendor">{{ product.vendor }}</p>
{% endif %}

If you are not familiar with that I am open to help you.
Information shared in Signature.
Thanks

- Need a Shopify Specialist? Chat on WhatsApp +923036471248

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button!

cpo1
Tourist
3 1 0

Hello Qasim. There is no image render code in snippets/card-product.liquid file that I can identify. I am not a coder, but I am looking for someone who can help me with some coding. I'm not familiar with Information shared in Signature. What and where is that information? Thank you.

cpo1
Tourist
3 1 0

This is an accepted solution.

After some experimenting with this, I was able to add the Vendor just below the price line and above the size element. I believe I have too much code in there at the moment, but it works. I'll try to clean it up when I have some more time. In the meantime, it is working. Thank you very much.