';
$.each(['price','manufacturer','option','attribute','sticker','stock','review','standard'], function(i,value) {
$('#oct-product-filter-data [data-type="'+value+'"] > div').each(function(index) {
var $this = $(this);
var $items = $this.find('input[type=\'checkbox\']:checked');
$.each($items, function(index) {
if (index == 0) {
checkbox_item += '
'+$(this).parent().parent().parent().find('.name').html()+'
';
}
haveSelectedOptions = 1;
checkbox_item += '
';
checkbox_item += ' ';
checkbox_item += ' ';
checkbox_item += '
';
});
});
$('#oct-product-filter-data [data-type="'+value+'"] > div').each(function(index) {
var $this = $(this);
var $items = $this.find('input[type=\'radio\']:checked');
$.each($items, function(index) {
if (index == 0) {
checkbox_item += '
'+$(this).parent().parent().parent().find('.name').html()+'
';
}
haveSelectedOptions = 1;
checkbox_item += '
';
checkbox_item += ' ';
checkbox_item += ' ';
checkbox_item += '
';
});
});
$('#oct-product-filter-data [data-type="'+value+'"] > div').each(function(index) {
var $this = $(this);
var $items = $this.find('select option:selected');
$.each($items, function(index) {
if ($(this).val()) {
if (index == 0) {
checkbox_item += '
'+$(this).parent().parent().parent().parent().find('.name').html()+'
';
}
haveSelectedOptions = 1;
checkbox_item += '
';
checkbox_item += ' ';
checkbox_item += ' ';
checkbox_item += '
';
}
});
});
});
checkbox_item += '
';
if(haveSelectedOptions > 0) {
checkbox_item += '