- Posts: 29
- Thank you received: 2
Interaction with 2JTabs
- wirthconsulting
-
Topic Author
- Offline
Less
More
14 years 6 months ago #44819
by wirthconsulting
Interaction with 2JTabs was created by wirthconsulting
We have Hikashop installed on Joomla 1.23 and Hikahop 1.5.6. On our product pages we also use the plugin 2JTabs (
2joomla.net
) which adds a really handy tabbed feature to the content.
Both elements (Hikashop and 2JTabs) work fine together except where Hikashop displays a product option (characteristic) e.g. dropdown field. Like on this page: www.wirthconsulting.com.au/social-media-...2-month-subscription
When a user clicks an option from the “Analysis Type” characteristics field on this page, the tabs below (e.g. ‘How it works’) no longer work.
Essentially if you change the Analysis Type field, then try to click one of the tabs, the URL changes - for example to: www.wirthconsulting.com.au/social-media-...ion#twoj_fragment3-2
So the text "#twoj_fragment3-2" (or similar) is added to the end of the URL. We contacted 2JTabs and they advised us that it was a Hikashop issue - they said the additional code on the end of the URL "breaks the scenario of the page by replacing the link".
I've never seen this additional code being added to the end of a Hikashop URL when the characteristics changes on other sites we have installed Hikashop.
But it definitely looks like some type of interaction bug between Hikashop and 2JTabs so wondering if Hikashop has an answer?
Thanks for advising,
B.
Both elements (Hikashop and 2JTabs) work fine together except where Hikashop displays a product option (characteristic) e.g. dropdown field. Like on this page: www.wirthconsulting.com.au/social-media-...2-month-subscription
When a user clicks an option from the “Analysis Type” characteristics field on this page, the tabs below (e.g. ‘How it works’) no longer work.
Essentially if you change the Analysis Type field, then try to click one of the tabs, the URL changes - for example to: www.wirthconsulting.com.au/social-media-...ion#twoj_fragment3-2
So the text "#twoj_fragment3-2" (or similar) is added to the end of the URL. We contacted 2JTabs and they advised us that it was a Hikashop issue - they said the additional code on the end of the URL "breaks the scenario of the page by replacing the link".
I've never seen this additional code being added to the end of a Hikashop URL when the characteristics changes on other sites we have installed Hikashop.
But it definitely looks like some type of interaction bug between Hikashop and 2JTabs so wondering if Hikashop has an answer?
Thanks for advising,
B.
Please Log in or Create an account to join the conversation.
14 years 6 months ago #44983
by nicolas
Replied by nicolas on topic Re: Interaction with 2JTabs
It's because the description of the product is changed dynamically when you change a characteristic. And since the JS code of the tabs of your plugin is not dynamic, the tabs don't work once copied.
The fix is quite simple, just edit the file "show" of the view "product" via the menu Display->Views and remove the code:
That will remove the update of the description when the characteristics are changed and thus avoid that problem.
The fix is quite simple, just edit the file "show" of the view "product" via the menu Display->Views and remove the code:
Code:
<div id="hikashop_product_description_<?php echo $variant_name;?>" style="display:none;">
<?php echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$variant->product_description));?>
</div>
The following user(s) said Thank You: wirthconsulting
Please Log in or Create an account to join the conversation.
- wirthconsulting
-
Topic Author
- Offline
Less
More
- Posts: 29
- Thank you received: 2
14 years 5 months ago - 14 years 5 months ago #45073
by wirthconsulting
Replied by wirthconsulting on topic Re: Interaction with 2JTabs
Brilliant! thanks very much Nicolas - you are a gem!
Last edit: 14 years 5 months ago by wirthconsulting.
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds