How to display manufacturer/brand of a product on each kind of page

Noumankhan

Member
XNullUser
Joined
Jun 6, 2022
Messages
26
Reaction score
42
Points
13
NullCash
161
For product-list.tpl:

Add this somewhere inside the product box (just before name or so)

{if isset($product.manufacturer_name)}<span class="product_manufacturer_name">{$product.manufacturer_name}</span>{/if}





for homefeatured.tpl

add the red code to the existing product.name code (Code example from 1.5.5.0, may differ slightly in other versions):

<p class="s_title_block">{if isset($product.manufacturer_name)}<span class="product_manufacturer_name">{$product.manufacturer_name|escape:'htmlall':'UTF-8'}</span>{/if}<a href="{$product.link|escape:'html'}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></p>







css as desired. Add to themes/<your theme folder>/css/global.css:

.product_manufacturer_name { add your own css code here }





Hope this helps,
 

nkmughal9

Member
XNullUser
Joined
Aug 6, 2022
Messages
11
Reaction score
76
Points
13
NullCash
124
How to product_manufacturer_name { add your own css code here }?
 

fscrazy

New member
XNullUser
Joined
Aug 7, 2022
Messages
3
Reaction score
0
Points
1
NullCash
5
what amazing? nice post thanks.nice post thanks.nice post thanks.
 
Top