[Skip to main content](#vessel-content)

#   Show manufacturer name and error in the home title

##

- **[cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")**
- [![cipionhabla's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-25.jpg)](/forum/user/24586-cipionhabla "View cipionhabla's Profile") Topic Author
- [ Offline](/forum/user/24586-cipionhabla)

Less More

- Posts: 23
- Thank you received: 0
-
-
-
-

12 years 8 months ago -  12 years 8 months ago [\#145775](#145775) by [cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")  *[Show manufacturer name and error in the home title](/forum/25-install-update/866192-show-manufacturer-name-and-error-in-the-home-title#145775 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27  Hi,  In the home page I have a menu category listing with a module of associated products and I want to show in each of those products the manufacturer name. The Type of Layout I'm using is DIV and I'm editing this file &#92;html&#92;com&#95;hikashop&#92;product&#92;listing&#95;img&#95;title.php I used this code but nothing happens:  Another issue is the name of the title in the home page. I don't know if it is related with the menu category listing")* was created by *[cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")*

-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.3.27

Hi,

In the home page I have a menu category listing with a module of associated products and I want to show in each of those products the manufacturer name. The Type of Layout I'm using is DIV and I'm editing this file **\\html\\com\_hikashop\\product\\listing\_img\_title.php** I used this code but nothing happens:
Code:

if($this-&gt;config-&gt;get('manufacturer_display', 0) &amp;&amp; !empty($this-&gt;element-&gt;product_manufacturer_id)){ $class = hikashop_get('class.category'); $manufacturer = $class-&gt;get($this-&gt;element-&gt;product_manufacturer_id); global $Itemid; $categoryClass = hikashop_get('class.category'); $categoryClass-&gt;addAlias($manufacturer); echo JText::_('MANUFACTURER').': '.'&lt;a href="'.hikashop_completeLink('category&amp;task=listing&amp;cid='.$manufacturer-&gt;category_id.'&amp;name='.$manufacturer-&gt;alias.'&amp;Itemid='.$Itemid).'"&gt;'.$manufacturer-&gt;category_name.'&lt;/a&gt;'; }

Another issue is the name of the title in the home page. I don't know if it is related with the menu category listing

[ ![hdf0cb34.png](/forum/attachment/15579) ](/forum/attachment/15579 "hdf0cb34.png")

- [ ![hdf0cb34.png](/forum/attachment/15579) ](/forum/attachment/15579 "hdf0cb34.png") [ ](/forum/attachment/15579?download=1 "hdf0cb34.png")

Last edit: 12 years 8 months ago by [cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NjE5Mi1zaG93LW1hbnVmYWN0dXJlci1uYW1lLWFuZC1lcnJvci1pbi10aGUtaG9tZS10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 8 months ago [\#145849](#145849) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show manufacturer name and error in the home title](/forum/25-install-update/866192-show-manufacturer-name-and-error-in-the-home-title#145849 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27  Hi,  In the home page I have a menu category listing with a module of associated products and I want to show in each of those products the manufacturer name. The Type of Layout I'm using is DIV and I'm editing this file &#92;html&#92;com&#95;hikashop&#92;product&#92;listing&#95;img&#95;title.php I used this code but nothing happens:  Another issue is the name of the title in the home page. I don't know if it is related with the menu category listing")*

Hi,

1. In the option of your listing div menu/module, thanks to check if you use the listing_img_title template and not the listing_img_desc for example. Then thanks to make the editions via the menu Display &gt; Views.
Else if you already have an override you will not see the changes and when updating HikaShop you will lose your changes.

2. It probably come from the options in the category listing menu, so thanks to enable the option "Use menu name instead of
category name for the title " and set the desired name in the menu title.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NjE5Mi1zaG93LW1hbnVmYWN0dXJlci1uYW1lLWFuZC1lcnJvci1pbi10aGUtaG9tZS10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")**
- [![cipionhabla's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-25.jpg)](/forum/user/24586-cipionhabla "View cipionhabla's Profile") Topic Author
- [ Offline](/forum/user/24586-cipionhabla)

Less More

- Posts: 23
- Thank you received: 0
-
-
-
-

12 years 8 months ago -  12 years 8 months ago [\#146169](#146169) by [cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")  Replied by *[cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")* on topic *[Show manufacturer name and error in the home title](/forum/25-install-update/866192-show-manufacturer-name-and-error-in-the-home-title#146169 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27  Hi,  In the home page I have a menu category listing with a module of associated products and I want to show in each of those products the manufacturer name. The Type of Layout I'm using is DIV and I'm editing this file &#92;html&#92;com&#95;hikashop&#92;product&#92;listing&#95;img&#95;title.php I used this code but nothing happens:  Another issue is the name of the title in the home page. I don't know if it is related with the menu category listing")*

Hello,

I tried to put the code under the product name but nothing happens. I verified the listing_img_title template and it is working because I did a test with a paragraph and it worked.

This is how I modified the file:
Code:

&lt;!-- PRODUCT NAME --&gt; &lt;h4 class="product-card-name"&gt; &lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;a href="&lt;?php echo $link;?&gt;"&gt; &lt;?php } echo $this-&gt;row-&gt;product_name; if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;/h4&gt; &lt;!-- EO PRODUCT NAME --&gt; &lt;?php if($this-&gt;config-&gt;get('manufacturer_display', 0) &amp;&amp; !empty($this-&gt;element-&gt;product_manufacturer_id)){ $class = hikashop_get('class.category'); $manufacturer = $class-&gt;get($this-&gt;element-&gt;product_manufacturer_id); global $Itemid; $categoryClass = hikashop_get('class.category'); $categoryClass-&gt;addAlias($manufacturer); echo JText::_('MANUFACTURER').': '.'&lt;a href="'.hikashop_completeLink('category&amp;task=listing&amp;cid='.$manufacturer-&gt;category_id.'&amp;name='.$manufacturer-&gt;alias.'&amp;Itemid='.$Itemid).'"&gt;'.$manufacturer-&gt;category_name.'&lt;/a&gt;'; } ?&gt;

The second point works perfectly.

Thanks

Last edit: 12 years 8 months ago by [cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NjE5Mi1zaG93LW1hbnVmYWN0dXJlci1uYW1lLWFuZC1lcnJvci1pbi10aGUtaG9tZS10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 8 months ago [\#146230](#146230) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show manufacturer name and error in the home title](/forum/25-install-update/866192-show-manufacturer-name-and-error-in-the-home-title#146230 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27  Hi,  In the home page I have a menu category listing with a module of associated products and I want to show in each of those products the manufacturer name. The Type of Layout I'm using is DIV and I'm editing this file &#92;html&#92;com&#95;hikashop&#92;product&#92;listing&#95;img&#95;title.php I used this code but nothing happens:  Another issue is the name of the title in the home page. I don't know if it is related with the menu category listing")*

Hi,

Are you sure that the option "Display the manufacturer" in Configuration &gt; Display &gt; Default parameters for products is enables, or the option in the menu/module options displaying the desired page ?

I think that you don't enter in the if condition, so you have to check if there is a value in: $this-&gt;element-&gt;product_manufacturer_id before the if condition.

You can use a simple "echo": echo $this-&gt;element-&gt;product_manufacturer_id;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NjE5Mi1zaG93LW1hbnVmYWN0dXJlci1uYW1lLWFuZC1lcnJvci1pbi10aGUtaG9tZS10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")**
- [![cipionhabla's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-25.jpg)](/forum/user/24586-cipionhabla "View cipionhabla's Profile") Topic Author
- [ Offline](/forum/user/24586-cipionhabla)

Less More

- Posts: 23
- Thank you received: 0
-
-
-
-

12 years 7 months ago [\#146753](#146753) by [cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")  Replied by *[cipionhabla](/forum/user/24586-cipionhabla "View cipionhabla's Profile")* on topic *[Show manufacturer name and error in the home title](/forum/25-install-update/866192-show-manufacturer-name-and-error-in-the-home-title#146753 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27  Hi,  In the home page I have a menu category listing with a module of associated products and I want to show in each of those products the manufacturer name. The Type of Layout I'm using is DIV and I'm editing this file &#92;html&#92;com&#95;hikashop&#92;product&#92;listing&#95;img&#95;title.php I used this code but nothing happens:  Another issue is the name of the title in the home page. I don't know if it is related with the menu category listing")*

Element did't find anything but row did it so this works in a Listing of categories with a menu
Code:

&lt;!-- PRODUCT BRAND --&gt; &lt;h5 class="product-card-brand"&gt; &lt;?php if ( $this-&gt;config-&gt;get('manufacturer_display', 0) &amp;&amp; !empty($this-&gt;row-&gt;product_manufacturer_id) ) { $categoryClass = hikashop_get('class.category'); $manufacturer = $categoryClass-&gt;get($this-&gt;row-&gt;product_manufacturer_id); echo $manufacturer-&gt;category_name; } ?&gt; &lt;/h5&gt; &lt;!-- EO PRODUCT BRAND --&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NjE5Mi1zaG93LW1hbnVmYWN0dXJlci1uYW1lLWFuZC1lcnJvci1pbi10aGUtaG9tZS10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 7 months ago [\#146774](#146774) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Show manufacturer name and error in the home title](/forum/25-install-update/866192-show-manufacturer-name-and-error-in-the-home-title#146774 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27  Hi,  In the home page I have a menu category listing with a module of associated products and I want to show in each of those products the manufacturer name. The Type of Layout I'm using is DIV and I'm editing this file &#92;html&#92;com&#95;hikashop&#92;product&#92;listing&#95;img&#95;title.php I used this code but nothing happens:  Another issue is the name of the title in the home page. I don't know if it is related with the menu category listing")*

Hi,
So did you solved your issue ? ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NjE5Mi1zaG93LW1hbnVmYWN0dXJlci1uYW1lLWFuZC1lcnJvci1pbi10aGUtaG9tZS10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.112 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
