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

#   Not displaying the correct template on subdomains

##

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

Less More

- Posts: 22
- Thank you received: 1
-
-

10 years 8 months ago [\#232444](#232444) by [valete](/forum/user/34811-valete "View valete's Profile")  *[Not displaying the correct template on subdomains](/forum/26-product-category-display/882874-not-displaying-the-correct-template-on-subdomains#232444 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Good morning,  I ran into a problem with hikashop nog displaying the correct template with the product display on subdomains. A little explaining in advanced:  We have multiple sites running on the same Joomla backend which are controlled by a virtual domain controller. This virtual domain controller is in charge of dispaying the websites template and menu items depending on the access URL.  Each website has it's own product category displayed by hikashop. It gave me some problems in the past but you managed to fix this for me.  Another problem has surfaced now:  When I look at the product display (both listing and detail) in the normal URLS, the basic website template is not changed. When I do the same for the subdomains the general website template is being changed to the first template in my template folder.  Is there a way to alter the the the php in the product listing and product detail view so it won't meddle with the general template?  Kind regards,  Chantal van Ree")* was created by *[valete](/forum/user/34811-valete "View valete's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Good morning,

I ran into a problem with hikashop nog displaying the correct template with the product display on subdomains. A little explaining in advanced:

We have multiple sites running on the same Joomla backend which are controlled by a virtual domain controller.
This virtual domain controller is in charge of dispaying the websites template and menu items depending on the access URL.

Each website has it's own product category displayed by hikashop. It gave me some problems in the past but you managed to fix this for me.

Another problem has surfaced now:

When I look at the product display (both listing and detail) in the normal URLS, the basic website template is not changed. When I do the same for the subdomains the general website template is being changed to the first template in my template folder.

Is there a way to alter the the the php in the product listing and product detail view so it won't meddle with the general template?

Kind regards,

Chantal van Ree

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI4NzQtbm90LWRpc3BsYXlpbmctdGhlLWNvcnJlY3QtdGVtcGxhdGUtb24tc3ViZG9tYWlucz90bXBsPW1hcmtkb3du) 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: 86578
- Thank you received: 14322
-
-

10 years 8 months ago [\#232458](#232458) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Not displaying the correct template on subdomains](/forum/26-product-category-display/882874-not-displaying-the-correct-template-on-subdomains#232458 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Good morning,  I ran into a problem with hikashop nog displaying the correct template with the product display on subdomains. A little explaining in advanced:  We have multiple sites running on the same Joomla backend which are controlled by a virtual domain controller. This virtual domain controller is in charge of dispaying the websites template and menu items depending on the access URL.  Each website has it's own product category displayed by hikashop. It gave me some problems in the past but you managed to fix this for me.  Another problem has surfaced now:  When I look at the product display (both listing and detail) in the normal URLS, the basic website template is not changed. When I do the same for the subdomains the general website template is being changed to the first template in my template folder.  Is there a way to alter the the the php in the product listing and product detail view so it won't meddle with the general template?  Kind regards,  Chantal van Ree")*

Hi,

HikaShop has no code to change the template being used on the pages.
If you have a different template between the listing and some products from it, it probably means that you've specified a canonical URL in these products and that the canonical URL goes to another menu item than the menu item of the listing, and that you configured different templates for different menu items and that you have the "force canonical URLs on listings" setting of the HikaShop configuration activated.
So please check these.

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

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

Less More

- Posts: 22
- Thank you received: 1
-
-

10 years 8 months ago [\#232579](#232579) by [valete](/forum/user/34811-valete "View valete's Profile")  Replied by *[valete](/forum/user/34811-valete "View valete's Profile")* on topic *[Not displaying the correct template on subdomains](/forum/26-product-category-display/882874-not-displaying-the-correct-template-on-subdomains#232579 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Good morning,  I ran into a problem with hikashop nog displaying the correct template with the product display on subdomains. A little explaining in advanced:  We have multiple sites running on the same Joomla backend which are controlled by a virtual domain controller. This virtual domain controller is in charge of dispaying the websites template and menu items depending on the access URL.  Each website has it's own product category displayed by hikashop. It gave me some problems in the past but you managed to fix this for me.  Another problem has surfaced now:  When I look at the product display (both listing and detail) in the normal URLS, the basic website template is not changed. When I do the same for the subdomains the general website template is being changed to the first template in my template folder.  Is there a way to alter the the the php in the product listing and product detail view so it won't meddle with the general template?  Kind regards,  Chantal van Ree")*

Hi Nicolas,

I checked all the canonical URL's, and there are none. SEF setting is set to No and both category's and products have no specified canonical URL's in them.
But it gave me an idea. I tried using the canonical URL in order to fix this. But unfortunately this did not solve my problem.

Kind regards,

Chantal

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI4NzQtbm90LWRpc3BsYXlpbmctdGhlLWNvcnJlY3QtdGVtcGxhdGUtb24tc3ViZG9tYWlucz90bXBsPW1hcmtkb3du) 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: 86578
- Thank you received: 14322
-
-

10 years 8 months ago [\#232657](#232657) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Not displaying the correct template on subdomains](/forum/26-product-category-display/882874-not-displaying-the-correct-template-on-subdomains#232657 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Good morning,  I ran into a problem with hikashop nog displaying the correct template with the product display on subdomains. A little explaining in advanced:  We have multiple sites running on the same Joomla backend which are controlled by a virtual domain controller. This virtual domain controller is in charge of dispaying the websites template and menu items depending on the access URL.  Each website has it's own product category displayed by hikashop. It gave me some problems in the past but you managed to fix this for me.  Another problem has surfaced now:  When I look at the product display (both listing and detail) in the normal URLS, the basic website template is not changed. When I do the same for the subdomains the general website template is being changed to the first template in my template folder.  Is there a way to alter the the the php in the product listing and product detail view so it won't meddle with the general template?  Kind regards,  Chantal van Ree")*

Hi,

In any case, as far as I can see, the problem is in the way the virtual domain controller handle the switch of the template.
There should be something to change in it as there is no reason it should behave differently on different pages of the same menu item.
I would recommend contacting the developer of the virtual domain controller you're using so that he can have a look at the issue.

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

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

Less More

- Posts: 22
- Thank you received: 1
-
-

10 years 7 months ago [\#234290](#234290) by [valete](/forum/user/34811-valete "View valete's Profile")  Replied by *[valete](/forum/user/34811-valete "View valete's Profile")* on topic *[Not displaying the correct template on subdomains](/forum/26-product-category-display/882874-not-displaying-the-correct-template-on-subdomains#234290 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Good morning,  I ran into a problem with hikashop nog displaying the correct template with the product display on subdomains. A little explaining in advanced:  We have multiple sites running on the same Joomla backend which are controlled by a virtual domain controller. This virtual domain controller is in charge of dispaying the websites template and menu items depending on the access URL.  Each website has it's own product category displayed by hikashop. It gave me some problems in the past but you managed to fix this for me.  Another problem has surfaced now:  When I look at the product display (both listing and detail) in the normal URLS, the basic website template is not changed. When I do the same for the subdomains the general website template is being changed to the first template in my template folder.  Is there a way to alter the the the php in the product listing and product detail view so it won't meddle with the general template?  Kind regards,  Chantal van Ree")*

Hi Nicholas,

Neither Virtual Domains nor hikashop caused the problem.

Problem was caused by a FTP upload of the banner to the wrong folder (of the wrong template) resulting in this problem. Hikashop used the correct path only leading to an incorrect image.

Kind regards,

Chantal

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

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