Interaction with 2JTabs

  • Posts: 29
  • Thank you received: 2
12 years 7 months ago #44819

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.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 7 months ago #44983

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:

<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>
That will remove the update of the description when the characteristics are changed and thus avoid that problem.

The following user(s) said Thank You: wirthconsulting

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 2
12 years 7 months ago #45073

Brilliant! thanks very much Nicolas - you are a gem!

Last edit: 12 years 7 months ago by wirthconsulting.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum