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
658 133 153

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
Highlighted

Success.

Shopify Expert
1353 111 181

Hello,

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

find 
{% endform %} 

and paste before

{{ product.vendor }}


Thanks

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Shopify Expert Page: https://experts.shopify.com/perennialsolution
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
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
658 133 153
{% 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
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