@jmontes
Go to oc-content/themes/veronika/js/global.js
Find block under line:
// FANCYBOX - SUBCATEGORY OPEN ON HOMEPAGE
Replace the code of block bellow (few lines) with:
$(document).on('click', '.open-home-cat', function(e){
e.preventDefault();
// Check if contains subcategories
var subcatCount = $('#ct' + $(this).attr('rel')).find('.middle > a').length;
var catUrl = $('#ct' + $(this).attr('rel')).find('.head > a').attr('href');
if(subcatCount > 0) {
if (!!$.prototype.fancybox) {
$.fancybox({
'padding': 0,
'width': 640,
'height': 430,
'autoSize': false,
'autoDimensions': false,
'wrapCSS': 'home-cat',
'content': '<div class="cat-tab">' + $('#ct' + $(this).attr('rel')).html() + '</div>'
});
}
} else {
window.location.href = catUrl;
}
});
20 bucks please ....
... hope it worked, do not have categories without subcategories...