ZC v1.5.6c
There seems to be an issue with the easyResponsiveTabs on the product_info page. I'm in the process of migrating a 1.5.5f site to 1.5.6c so it's not live yet.
Loading a product info page is error free but clicking on a non-selected tab causes a 'ReferenceError: $info is not defined' error in my browser console (both Chrome and Firefox). The page then hangs/inoperative in Firefox but not Chrome.
The tpl_product_info_display.php code in question is:
Code:
<script src="includes/templates/westminster_new/jscript/easyResponsiveTabs.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#horizontalTab').easyResponsiveTabs({
type: 'default', //Types: default, vertical, accordion
width: 'auto', //auto or any width like 600px
fit: true, // 100% fit in a container
activate: function(event) { // Callback function if tab is switched
var $tab = $(this);
var $name = $('span', $info);
$name.text($tab.text());
$info.show();
}
});
$('#verticalTab').easyResponsiveTabs({
type: 'vertical',
width: 'auto',
fit: true
});
});
</script>
You can see the javascript code is called after the easyresponsiveTabs.js - and is also after the jquery.
To establish whether it's just me, the website is this recent post also has the same problem: https://www.zen-cart.com/showthread....73#post1362473, I believe it uses the v2.0 of this mod.
If anyone else with the latest version of this mod, on ZC 1.5.6c, can confirm it is an issue, that would be great.
Bookmarks