Hi,
you can modify some file. In html/com_virtuemart/productdetails/default.php you have to have this structure:
- Code: Select all
<ul id="gkProductTabs">
<li class="gkProductTabActive"><span></span></li>
<li><span></span></li>
</ul>
This code is for tabs you will click. Code for containers should look like this:
- Code: Select all
<div id="gkProductTab1" class="gkProductTab">
</div>
<div id="gkProductTab2" class="gkProductTab gkUnvisible">
</div>
Then you need to add to js/gk.scripts.js
- Code: Select all
if(document.id('gkProductTabs')) {
document.id('gkComponent').addEvent('click', function(e){
var evt = new Event(e).target;
if((window.ie && evt.nodeName == 'SPAN') || (!window.ie && evt.get('tag') == 'span')) {
if($(evt).getParent().getParent().getProperty('id') == 'gkProductTabs') {
$$('.gkProductTab').addClass('gkUnvisible');
$$('#gkProductTabs li').setProperty('class', '');
var num = 0;
$$('#gkProductTabs li').each(function(el, i){
if(el == evt.getParent()){ num = i; }
});
$$('.gkProductTab')[num].removeClass('gkUnvisible');
$$('#gkProductTabs li')[num].setProperty('class', 'gkProductTabActive');
}
} else if((window.ie && evt.nodeName == 'LI') || (!window.ie && evt.get('tag') == 'li')) {
if($(evt).getParent().getProperty('id') == 'gkProductTabs') {
$$('.gkProductTab').addClass('gkUnvisible');
$$('#gkProductTabs li').setProperty('class', '');
var num = 0;
$$('#gkProductTabs li').each(function(el, i){
if(el == evt.getParent()){ num = i; }
});
$$('.gkProductTab')[num].removeClass('gkUnvisible');
$$('#gkProductTabs li')[num].setProperty('class', 'gkProductTabActive');
}
}
});
}
inside window.addEvent function. Last thing you need to copy are css styles for classes. You will find them in css yourshop files.