We want to integrate the virtuemart-styles from StoreBox in Simplicity template.
Is it possible without big mods?
<?php if($option == 'com_virtuemart' && ($view == 'productdetails' || $view == 'manufacturer')) : ?>
<link rel="stylesheet" href="<?php echo JURI::base(); ?>templates/<?php echo $this->template; ?>/css/vmframe.css" type="text/css" />
<?php endif; ?>
$this->API->addCSS($this->API->URLtemplate() . '/css/vm.css');
3) gk_storebox\layouts\blocks\tools\cart.php
<?php if($option == 'com_virtuemart' && ($view == 'productdetails' || $view == 'manufacturer')) : ?>
<link rel="stylesheet" href="<?php echo JURI::base(); ?>templates/<?php echo $this->template; ?>/css/vmframe.css" type="text/css" />
<?php endif; ?>
TPL_GK_LANG_VM_INC_TAX="inc. tax:"
TPL_GK_LANG_VM_VIEW="View"
TPL_GK_LANG_VM_ZOOM="zoom"
// animate on init
/* VM */
window.addEvent('domready', function() {
var tabs = document.id('product-tabs');
// if tabs exists
if(tabs) {
// initialization
tabs.getElement('li').addClass('active');
var contents = document.id('product-tabs-content');
contents.getChildren('div').setStyle('display', 'none');
contents.getElement('div').addClass('active');
// add events to the tabs
tabs.getElements('li').each(function(tab, i) {
tab.addEvent('click', function() {
var toggle = tab.getProperty('data-toggle');
contents.getChildren('div').removeClass('active');
contents.getElement('.' + toggle).addClass('active');
tabs.getElements('li').removeClass('active');
tab.addClass('active');
});
});
}
var products = document.getElements('.browse-view .product');
var categories = document.getElements('.category-view .category');
var f_products = document.getElements('.featured-view .product');
var l_products = document.getElements('.latest-view .product');
var t_products = document.getElements('.topten-view .product');
var r_products = document.getElements('.recent-view .product');
[products, categories, f_products, l_products, t_products, r_products].each(function(p) {
if(p.length > 0) {
p.each(function(item,i) {
item.addEvents({
"mouseenter": function() {
item.addClass('active');
},
"mouseleave": function() {
item.removeClass('active');
}
});
});
}
});
var productZoom = document.getElements('.productDetails .main-image');
if(productZoom.length > 0) {
productZoom.each(function(item,i) {
var overlay = item.getElement('.product-overlay');
var link = item.getElement('a');
if(overlay) {
overlay.inject(link, 'bottom');
}
item.addEvents({
"mouseenter": function() {
item.addClass('active');
},
"mouseleave": function() {
item.removeClass('active');
}
});
});
}
});
window.addEvent('touchstart', function(e) {
if(e.target.hasClass('modal') || e.target.hasClass('ask-a-question')) {
window.location.href = e.target.getProperty('href');
}
});