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

#   brand name link - how to control

##

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#277097](#277097) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  *[brand name link - how to control](/forum/25-install-update/891718-brand-name-link-how-to-control#277097 "Hi ,  I have made at product listing menu item, i works well and looks good  I have a brand name with a link under each product.  But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname  You can see it   swebs.dk/api/index.php/women  Thanks in advanced")* was created by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")*

Hi ,

I have made at product listing menu item, i works well and looks good

I have a brand name with a link under each product.

But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname

You can see it [ swebs.dk/api/index.php/women](http://swebs.dk/api/index.php/women)

Thanks in advanced

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

9 years 2 months ago [\#277102](#277102) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[brand name link - how to control](/forum/25-install-update/891718-brand-name-link-how-to-control#277102 "Hi ,  I have made at product listing menu item, i works well and looks good  I have a brand name with a link under each product.  But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname  You can see it   swebs.dk/api/index.php/women  Thanks in advanced")*

Hi,

Check the "canonical URL" setting of these brands compared to the others. Something must be wrong there.

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago -  9 years 2 months ago [\#277184](#277184) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[brand name link - how to control](/forum/25-install-update/891718-brand-name-link-how-to-control#277184 "Hi ,  I have made at product listing menu item, i works well and looks good  I have a brand name with a link under each product.  But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname  You can see it   swebs.dk/api/index.php/women  Thanks in advanced")*

Hi

Have looked at all brand, products and category for canonical URL´s and reagring to the DB all are emty.

If you look at the page you can see that the same brand have the correct links but the first and last product there have the wrong link are in the same brand were the link is correct.

Here is the code i have set in the listing_img_title.php Code:

&lt;div class="brandinlist"&gt; &lt;?php if($this-&gt;config-&gt;get('manufacturer_display', 1) &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); if($manufacturer-&gt;category_published){ $menuClass = hikashop_get('class.menus'); $Itemid = $menuClass-&gt;loadAMenuItemId('manufacturer','listing'); if(empty($Itemid)){ $Itemid = $menuClass-&gt;loadAMenuItemId('',''); } $categoryClass-&gt;addAlias($manufacturer); echo JText::_('').''.'&lt;a href="'.hikashop_contentLink('category&amp;task=listing&amp;cid='.$manufacturer-&gt;category_id.'&amp;name='.$manufacturer-&gt;alias.'&amp;Itemid='.$Itemid,$manufacturer).'"&gt;'.$manufacturer-&gt;category_name.'&lt;/a&gt;'; echo "&lt;span style='display:none;' itemprop='Brand'&gt;". $manufacturer-&gt;category_name ."&lt;/span&gt;"; } }?&gt; &lt;/div&gt;

Regards

Last edit: 9 years 2 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile"). Reason: code tags for better lisibility

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

9 years 2 months ago [\#277215](#277215) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[brand name link - how to control](/forum/25-install-update/891718-brand-name-link-how-to-control#277215 "Hi ,  I have made at product listing menu item, i works well and looks good  I have a brand name with a link under each product.  But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname  You can see it   swebs.dk/api/index.php/women  Thanks in advanced")*

Hi,

Ok, if it doesn't come from the canonical URL, then I would recommend to change the code:
'&amp;Itemid='.$Itemid
to:
'&amp;Itemid=XXX'
where XXX is the menu item id of the "women" menu item.
That way, it will force the menu item alias for all the brands to be the same value.

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#277229](#277229) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[brand name link - how to control](/forum/25-install-update/891718-brand-name-link-how-to-control#277229 "Hi ,  I have made at product listing menu item, i works well and looks good  I have a brand name with a link under each product.  But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname  You can see it   swebs.dk/api/index.php/women  Thanks in advanced")*

fgdgfdg Hi.

I can change it to the menu item ID, but what about other categories eg. MEN then i will show the worng category.

I have made some tests it is only the fist item in each load, tried to disable the Infinite scroll and now it only the fist one, and not the fist and the last one, however i you go to the next page it again the first one.

Have also tried to dis an enabled products and brands with no change.

have also tried to disable the menu item (Alias: hikashop-menu-for-module-342) and then i works, but then the links in module id 342 did worked.

But I can see that the first entry in module 342 and the first entry in the menu "women" are the same.

Module 342 is used to display brand images in a carousel. But here's the only the fist one that has the wrong link.

Menu item for category listing module 342 is set "Brands" as category

Then i tried to change the ordering in the menu item "Women" but no change still the fist post on each page there have the worng link.

Hope this information give a clue of a path for a solution.

Regards

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#277232](#277232) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[brand name link - how to control](/forum/25-install-update/891718-brand-name-link-how-to-control#277232 "Hi ,  I have made at product listing menu item, i works well and looks good  I have a brand name with a link under each product.  But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname  You can see it   swebs.dk/api/index.php/women  Thanks in advanced")*

Hi

Just to be sure.

I have testet it on a standard joomla templte with a standard hikashop , and the issue is the same. the fist post link to menu item for module 342

Reagrds

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

9 years 2 months ago [\#277231](#277231) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[brand name link - how to control](/forum/25-install-update/891718-brand-name-link-how-to-control#277231 "Hi ,  I have made at product listing menu item, i works well and looks good  I have a brand name with a link under each product.  But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname  You can see it   swebs.dk/api/index.php/women  Thanks in advanced")*

Hi,

1. Indeed, in that case it will always be women.
In that case, you can write more complex code to change the id based on the category you're in.

2. We the code you're using, you're basically asking HikaShop to pick a HikaShop menu item randomly for the Itemid parameter.
So the first one it finds is "hikashop-menu-for-module-342". If you deactivate it, it will pick another one.
The best however is to create a specific menu item listing categories with the "main category" being the main brand entry under which all the brands are in your shop. That way, that menu item will be taken in priority over other random menu items of HikaShop.
And the alias will always be the one of that menu item. That's the best I think.

3. If the links of your module don't work after disabling that menu item, it simply means that this menu item is selected in the "menu item" setting of the module. So pick another one there.

4. You can also fill in the canonical URL of the brands and activate the "force canonical URLs on listings" setting to "use canonical if specified" in the HikaShop configuration so that it will use the URL you want, regardless of how you configured your menu items and modules.

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#277358](#277358) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[brand name link - how to control](/forum/25-install-update/891718-brand-name-link-how-to-control#277358 "Hi ,  I have made at product listing menu item, i works well and looks good  I have a brand name with a link under each product.  But how can it be, that the fist and last iterms links to (Alias: hikashop-menu-for-module-342) but all other links to the right one - category/bandname  You can see it   swebs.dk/api/index.php/women  Thanks in advanced")*

Hi , i thnik i found a solution there can be used.

I disabled the 342 module - now all link to the same in product list menu item

For the module 342 i made at new menu item category listing

So new it all make (some:-) ) senece

How ever i stille have a huge Confusion rearging category links - i will post a new topic about that.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MTcxOC1icmFuZC1uYW1lLWxpbmstaG93LXRvLWNvbnRyb2w/dG1wbD1tYXJrZG93bg==) 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.060 seconds

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