How to add brand name (or any thing) just beneath of ADD TO CART button in product page though code?

Solved
Highlighted
Tourist
7 0 0

I am using 'Supply' theme. At store front, in the product page where we see the individual product details like image, description, Quantity, ADD TO CART button etc., I want to add by brand name just beneath of ADD TO CART button. Which code file I need to modify to achieve this?

0 Likes
Highlighted

Success.

Shopify Partner
823 168 189

Hello,

1. Go to Online Store->Theme->Edit code
2. Sections->product-template.liquid 
Now here at line no. 201 after {% endform %} you can place your brand name.


Thanks

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
1 Like

Success.

Shopify Expert
1381 111 196

Hello,

1. Go to Online Store->Theme->Edit code
2. Sections->product-template.liquid 

find 
{% endform %} 

and paste before

{{ product.vendor }}


Thanks

1 Like
Highlighted
Tourist
7 0 0

It worked. Thanks alot. Appreciated.

0 Likes
Highlighted
Tourist
7 0 0

Sometimes some of the product has no brand OR their brand is not known, in such case product.vendor field remains blank while in some case value is there. How to handle this situation with if statement. Solution approach is same as you suggested above, just need to implement with if statement. Please give the complete statement.

0 Likes
Highlighted

Success.

Shopify Partner
823 168 189
{% if product.vendor %}

{{ product.vendor }}

{% endif %}

In some cases shopify adds the shop name as the default vendor then use this code

{% if product.vendor != shop.name %}

{{ product.vendor }}

{% endif %}
Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
1 Like
Highlighted
Tourist
7 0 0

Thanks for your code and correction. I applied the code and it is working. Just one small thing, shop.name did not worked, it was giving error so I hardcoded my shop/store name. It is rendering fine now.

0 Likes