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

 

 

#   Tabs don't work after adding options 



 

 



 

##  

 



- **[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")**
- [![jfischer_hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile") Topic Author
- [ Offline](/forum/user/60459-jfischer-hika)
 
 Less More- Posts: 51
- Thank you received: 3
- 
- 
 
 

 

 

    4 years 3 months ago -  4 years 3 months ago [\#342956](#342956) by [jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")  *[Tabs don't work after adding options](/forum/26-product-category-display/904679-tabs-dont-work-after-adding-options#342956 "-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am having an issue on my product page after adding options to the product.

After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.
I cannot change tabs and no text is displayed under any tabs.
This only happens when i add options to the product.

Do you know what is causing the tabs to stop functioning?")* was created by *[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")* 

 -- HikaShop version -- : 4.6.0  
-- Joomla version -- : 3.10.10  
-- PHP version -- : 8.0.20  
-- Browser(s) name and version -- : firefox  
  
Hello,  
  
I am having an issue on my product page after adding options to the product.  
  
After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.  
I cannot change tabs and no text is displayed under any tabs.  
This only happens when i add options to the product.  
  
Do you know what is causing the tabs to stop functioning? 

 

 Last edit: 4 years 3 months ago by [jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile"). 

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDQ2NzktdGFicy1kb24tdC13b3JrLWFmdGVyLWFkZGluZy1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)
 
 Less More- Posts: 86279
- Thank you received: 14262
- 
- 
 
 

 

 

    4 years 3 months ago [\#342962](#342962) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Tabs don't work after adding options](/forum/26-product-category-display/904679-tabs-dont-work-after-adding-options#342962 "-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am having an issue on my product page after adding options to the product.

After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.
I cannot change tabs and no text is displayed under any tabs.
This only happens when i add options to the product.

Do you know what is causing the tabs to stop functioning?")* 

 Hi,  
  
There is probably a javascript error for some reason.  
Can you provide the URL of a product page with the issue as well as a user account since your website is in maintenance so that we can check on the situation ?  
That should enable us to understand what's going on and tell you what to do. 

 

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

 

 

 

- **[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")**
- [![jfischer_hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile") Topic Author
- [ Offline](/forum/user/60459-jfischer-hika)
 
 Less More- Posts: 51
- Thank you received: 3
- 
- 
 
 

 

 

    4 years 3 months ago [\#342973](#342973) by [jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")  Replied by *[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")* on topic *[Tabs don't work after adding options](/forum/26-product-category-display/904679-tabs-dont-work-after-adding-options#342973 "-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am having an issue on my product page after adding options to the product.

After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.
I cannot change tabs and no text is displayed under any tabs.
This only happens when i add options to the product.

Do you know what is causing the tabs to stop functioning?")* 

 Yes, I agree it is likely a Javascript error or some code that is preventing it from loading.  
  
I sent a PM with the information you asked for. 

 

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDQ2NzktdGFicy1kb24tdC13b3JrLWFmdGVyLWFkZGluZy1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)
 
 Less More- Posts: 86279
- Thank you received: 14262
- 
- 
 
 

 

 

    4 years 3 months ago [\#342981](#342981) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Tabs don't work after adding options](/forum/26-product-category-display/904679-tabs-dont-work-after-adding-options#342981 "-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am having an issue on my product page after adding options to the product.

After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.
I cannot change tabs and no text is displayed under any tabs.
This only happens when i add options to the product.

Do you know what is causing the tabs to stop functioning?")* 

 Hi,  
  
From what I can see, the issue is two folds:  
- You have the "Synchronized add to cart" setting activated in the HikaShop configuration. You probably want to turn off that setting.  
- You have a view override of product / option made via the menu Display&gt;Views which contains old javascript code and thus that new option's javascript it not compatible with the old code of the view override. 

 

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

 

 

 

- **[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")**
- [![jfischer_hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile") Topic Author
- [ Offline](/forum/user/60459-jfischer-hika)
 
 Less More- Posts: 51
- Thank you received: 3
- 
- 
 
 

 

 

    4 years 3 months ago [\#342993](#342993) by [jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")  Replied by *[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer_hika's Profile")* on topic *[Tabs don't work after adding options](/forum/26-product-category-display/904679-tabs-dont-work-after-adding-options#342993 "-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am having an issue on my product page after adding options to the product.

After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.
I cannot change tabs and no text is displayed under any tabs.
This only happens when i add options to the product.

Do you know what is causing the tabs to stop functioning?")* 

 Ok,  
  
The synchronize add to cart setting was causing the issue. I disabled it and the tabs are now functioning again.  
I also changed the view/options to include the code that was missing.  
  
I did not realize that creating view overrides where going to cause problems. I thought it would be safe to update Hikashop with the overrides in place.  
  
How would I know if there is updated code in the views that will cause compatibility issues with older view overrides?  
Do I need to recreate the overrides every time I update Hikashop?  
This seems counter intuitive to the idea of overriding views.  
  
Thank You 

 

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDQ2NzktdGFicy1kb24tdC13b3JrLWFmdGVyLWFkZGluZy1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)
 
 Less More- Posts: 86279
- Thank you received: 14262
- 
- 
 
 

 

 

    4 years 3 months ago [\#342996](#342996) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Tabs don't work after adding options](/forum/26-product-category-display/904679-tabs-dont-work-after-adding-options#342996 "-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am having an issue on my product page after adding options to the product.

After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.
I cannot change tabs and no text is displayed under any tabs.
This only happens when i add options to the product.

Do you know what is causing the tabs to stop functioning?")* 

 Hi,  
  
We try to make new code backward compatible, at least as long as new features are not activated.  
So normally, you don't have to redo your overrides.  
But it's hard to know whether you'll have to redo them or not.  
It depends on what we change, how your shop is setup and how you do your overrides.  
Also, you need to be careful of the version number when you update. When it's a minor update (from 4.6.0 to 4.6.1 it means we changed less critical things). When it's a major update (from 4.6.1 to 5.0.0 for example, it means we changed core functions of HikaShop and you might need to adapt more things).  
  
Now, there is a way to minimize issues with view overrides (and that's not only for HikaShop but for any extension, including Joomla's views themselves). When you do the override, instead of keeping the whole code and modifying it, it's better to require the original file and modify variables before, or change the HTML after.  
Here is an example for product / option : Code:

&lt;?php // at the beginning you can change data in the attributes of $this so that it will affect the rendering in the original view file ob_start(); // start a new buffer require_once(HIKASHOP_ROOT.'components/com_hikashop/views/product/tmpl/option.php'); // load the original view file $html = ob_get_clean(); // get the HTML generated and store it in $html $html = str_replace('', '', $html); // you can use str_replace or preg_replace to replace things in the HTML echo $html; // display the HTML of the view



  
Doing it like that, your override will automatically get the code modifications of the original view file when you update. So there is a lot less chance that something would break.  
However, it means less freedom in what you can change in the view file. But for small changes like adding classes, or extra text, etc you should be able to do it like that.  
Also, don't forget that you can also use translation overrides (to change text) and hidden options or even trigger events to change / add things to views without creating a view override.  
To me, the view override of the whole code of the view is really the last resort when I can't do what I want any other way in order to minimize the troubles for future me. 

 

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

 

 

 

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)
 
 Less More- Posts: 2143
- Thank you received: 747
- 
- [](http://www.inphase.one)
- 
 
 

 

 

    4 years 3 months ago [\#342997](#342997) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Tabs don't work after adding options](/forum/26-product-category-display/904679-tabs-dont-work-after-adding-options#342997 "-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am having an issue on my product page after adding options to the product.

After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.
I cannot change tabs and no text is displayed under any tabs.
This only happens when i add options to the product.

Do you know what is causing the tabs to stop functioning?")* 

> nicolas wrote: But it's hard to know whether you'll have to redo them or not.

  
Hi,  
I don't find it hard. For each new version's [ changelog](https://www.hikashop.com/support/documentation/56-hikashop-changelog.html) there is - thankfully - a link to the "list of all the files changed". In that list, a quick scan tells you which view files have been changed, if any. 

---

 Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)  
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings)) 

 

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDQ2NzktdGFicy1kb24tdC13b3JrLWFmdGVyLWFkZGluZy1vcHRpb25zP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)
 
 Less More- Posts: 86279
- Thank you received: 14262
- 
- 
 
 

 

 

    4 years 3 months ago [\#342998](#342998) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Tabs don't work after adding options](/forum/26-product-category-display/904679-tabs-dont-work-after-adding-options#342998 "-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.10
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am having an issue on my product page after adding options to the product.

After adding any options to the product the tabs for description, specifications etc., are no longer are functioning.
I cannot change tabs and no text is displayed under any tabs.
This only happens when i add options to the product.

Do you know what is causing the tabs to stop functioning?")* 

 Hi,  
  
Sure. What I mean is that even with that list, in most cases you shouldn't need to redo your overrides. But yes, if a view file is listed in the changelog and you made an override on it, it's best to check your override is still working after the update. 

 

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

 

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

 

  [](#top)