This topic has 12 replies, 2 voices, and was last updated 7 years, 5 months ago ago by Laranz
Hi
I was wondering if its possible to show the brand Name (if selected on the productpage of course) on the products grid on the shop page… at the moment it shows only the product categories
thanks 4 help
Hi,
Download this file and unzip it: http://take.ms/8imKv . If you don’t have a child theme create one, then create a folder named woocommerce in it, and then add this file content-single-product.php in to that folder, it will do. It add the brands next to the categories in the single product page.
Let us know,
Thanks,
laranz.
oK THANKS this works but that was not my intention… i do not show the categories on the single product page anyway…
i want to show the brand on the main shop page.. see here http://prntscr.com/fo7vwn
is this possible as well?
thanks for your great and quick support
Hi,
Can you show us your website address? It is little customization, but I can guide you. 🙂
Let us know,
Thanks,
laranz.
oh great
http://www.max-schmuckdesign.com/shop/
as you can see i set the value of the “product-page-cats” to display:none altough i just saw there is a theme option for that…
so it would be great that only the brand will be shown on this site … im familiar with hmtl, css and a little bit php… child theme is installed of course
thanks a lot
Hi,
Use this content-product.php inside your woocommerce folder in the child theme, I edited the line #183 to #196 you can edit it according to your needs, you can also move that part to anywhere you want.
Let us know,
Thanks,
laranz.
ok great but where is the file? there was no link in the message
thanks
Hi,
Sorry for the inconvenience caused, I forget to paste the link for the file, here it is: http://take.ms/1aIWI
Let us know,
Thanks,
laranz.
Ok worked great…
But two small questions… where does this comma after the brandname come from? because we always have only one brand so the comma makes no sense… and i cant find the translation for “brands” … there is one in the legenda theme de_DE.po file but it has no impact on the frontend…
thanks for the great support
Hi,
1. I added the comma in the line #192 of content-product.php
echo ‘‘ . $term->name . ‘,’;
remove that.
2. You need to recreate the .po file using POEdit or edit the Brand name directly in line#186 of the same file.
Let us know,
Thanks,
laranz.
Awsome thank you so much
Hi,
Glad we helped. 🙂 If you’re happy with our service don’t forget to rate our theme. 🙂
Let us know if you have any other questions,
Thanks,
laranz.
You must be logged in to reply to this topic.Log in/Sign up