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

#   Product category pointing to URL

##

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

Less More

- Posts: 72
- Thank you received: 4
-
-

13 years 2 months ago [\#122442](#122442) by [Batas](/forum/user/9486-batas "View Batas's Profile")  *[Product category pointing to URL](/forum/25-install-update/861772-product-category-pointing-to-url#122442 "Hi,  looking forward to find someone who could make out Hika configuration so that it could be possible to choose to make a link from Hika product category to any URL. I mean to be able to redirect to another site by clicking on product category. The background for such configuration is a wish to display category's products on subdomain page.  Related post:   www.hikashop.com/forum/4-how-to/861399-m...s-hika-business.html  Waiting for any kind of proposal. Thank you.  -- HikaShop version -- Business -- Joomla version -- : 2.5")* was created by *[Batas](/forum/user/9486-batas "View Batas's Profile")*

Hi,

looking forward to find someone who could make out Hika configuration so that it could be possible to choose to make a link from Hika product category to any URL. I mean to be able to redirect to another site by clicking on product category.
The background for such configuration is a wish to display category's products on subdomain page.

Related post:
[ www.hikashop.com/forum/4-how-to/861399-m...s-hika-business.html](http://www.hikashop.com/forum/4-how-to/861399-multi-sites-with-jms-hika-business.html)

Waiting for any kind of proposal.
Thank you.

-- HikaShop version -- Business
-- Joomla version -- : 2.5

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg2MTc3Mi1wcm9kdWN0LWNhdGVnb3J5LXBvaW50aW5nLXRvLXVybD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 2 months ago -  13 years 2 months ago [\#122450](#122450) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product category pointing to URL](/forum/25-install-update/861772-product-category-pointing-to-url#122450 "Hi,  looking forward to find someone who could make out Hika configuration so that it could be possible to choose to make a link from Hika product category to any URL. I mean to be able to redirect to another site by clicking on product category. The background for such configuration is a wish to display category's products on subdomain page.  Related post:   www.hikashop.com/forum/4-how-to/861399-m...s-hika-business.html  Waiting for any kind of proposal. Thank you.  -- HikaShop version -- Business -- Joomla version -- : 2.5")*

Hi,

1. Create a custom category field via the menu Display&gt;Custom fields.
2. In each category enter the link of the category in the custom field.
3. In the file "listing_img_title" of the view "category" (if you're displaying your listing with a div layout and a "image and title" item box layout), that you can edit via the menu Display&gt;Views, just change the line: Code:

&lt;?php $link = $this-&gt;getLink($this-&gt;row-&gt;category_id,$this-&gt;row-&gt;alias);?&gt;

to: Code:

&lt;?php $link = $this-&gt;row-&gt;LINK;?&gt;

where LINK is replaced by the column name of your custom field.
4. Enjoy.

Last edit: 13 years 2 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 72
- Thank you received: 4
-
-

13 years 2 months ago [\#122458](#122458) by [Batas](/forum/user/9486-batas "View Batas's Profile")  Replied by *[Batas](/forum/user/9486-batas "View Batas's Profile")* on topic *[Product category pointing to URL](/forum/25-install-update/861772-product-category-pointing-to-url#122458 "Hi,  looking forward to find someone who could make out Hika configuration so that it could be possible to choose to make a link from Hika product category to any URL. I mean to be able to redirect to another site by clicking on product category. The background for such configuration is a wish to display category's products on subdomain page.  Related post:   www.hikashop.com/forum/4-how-to/861399-m...s-hika-business.html  Waiting for any kind of proposal. Thank you.  -- HikaShop version -- Business -- Joomla version -- : 2.5")*

thank you very much for really fast response, Nicolas! ![:)](/media/kunena/emoticons/3.png ":)")

unfortunately got error message on home page:
*Parse error: syntax error, unexpected ')' in /home/........./html/com\_hikashop/category/listing\_img\_title.php on line 10*

![:(](/media/kunena/emoticons/22.png ":(")

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

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

Less More

- Posts: 72
- Thank you received: 4
-
-

13 years 2 months ago -  13 years 2 months ago [\#122461](#122461) by [Batas](/forum/user/9486-batas "View Batas's Profile")  Replied by *[Batas](/forum/user/9486-batas "View Batas's Profile")* on topic *[Product category pointing to URL](/forum/25-install-update/861772-product-category-pointing-to-url#122461 "Hi,  looking forward to find someone who could make out Hika configuration so that it could be possible to choose to make a link from Hika product category to any URL. I mean to be able to redirect to another site by clicking on product category. The background for such configuration is a wish to display category's products on subdomain page.  Related post:   www.hikashop.com/forum/4-how-to/861399-m...s-hika-business.html  Waiting for any kind of proposal. Thank you.  -- HikaShop version -- Business -- Joomla version -- : 2.5")*

noticed just now that I've posted on wrong topic.
it is supposed to be posted under the topic COMMERCIAL JOBS.

Sorry.

Last edit: 13 years 2 months ago by [Batas](/forum/user/9486-batas "View Batas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg2MTc3Mi1wcm9kdWN0LWNhdGVnb3J5LXBvaW50aW5nLXRvLXVybD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 2 months ago [\#122605](#122605) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product category pointing to URL](/forum/25-install-update/861772-product-category-pointing-to-url#122605 "Hi,  looking forward to find someone who could make out Hika configuration so that it could be possible to choose to make a link from Hika product category to any URL. I mean to be able to redirect to another site by clicking on product category. The background for such configuration is a wish to display category's products on subdomain page.  Related post:   www.hikashop.com/forum/4-how-to/861399-m...s-hika-business.html  Waiting for any kind of proposal. Thank you.  -- HikaShop version -- Business -- Joomla version -- : 2.5")*

I had made a typo in my previous message's code. It's fixed now.

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

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

Less More

- Posts: 72
- Thank you received: 4
-
-

13 years 2 months ago -  13 years 2 months ago [\#122780](#122780) by [Batas](/forum/user/9486-batas "View Batas's Profile")  Replied by *[Batas](/forum/user/9486-batas "View Batas's Profile")* on topic *[Categories pointing to different URLs (subdomains)](/forum/25-install-update/861772-product-category-pointing-to-url#122780 "Hi,  looking forward to find someone who could make out Hika configuration so that it could be possible to choose to make a link from Hika product category to any URL. I mean to be able to redirect to another site by clicking on product category. The background for such configuration is a wish to display category's products on subdomain page.  Related post:   www.hikashop.com/forum/4-how-to/861399-m...s-hika-business.html  Waiting for any kind of proposal. Thank you.  -- HikaShop version -- Business -- Joomla version -- : 2.5")*

Thank you for your efforts, Nicolas!

unfortunately by changing the code in that way I got every category pointing not to my wished URL but to home page... :woohoo:
besides, I tried to change custom field to "text" instead of "link" and nevertheless all categories were just pointing to home page again.

Anyway, I figured out a plan B: to use extension for 301 URL redirection. It seems working.
But still not sure how it affects SEO... ![:unsure:](/media/kunena/emoticons/18.png ":unsure:")

Last edit: 13 years 2 months ago by [Batas](/forum/user/9486-batas "View Batas's Profile").

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

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