Mostrados
2
productos
de
2
'};
return htmlItem;
}
function load_products_list_7947658(){
$('.mb-mod-productlist[data-idmodule="7947658"] .mb-product-list').trigger('loadProductsList',[false,$('.mb-mod-productlist[data-idmodule="7947658"] .mb-product-list').data('currentpage')+1,function() {
}]);
}
function reload_products_list_7947658(){
$('.mb-mod-productlist[data-idmodule="7947658"] .mb-product-list').trigger('loadProductsList',[true, mabisy.getUrlParameter('lp',1),function() {
}]);
}
function reloadOrderList7947658(value,page,launchAjax) {
if ($('.mb-mod-productlist[data-idmodule="7947658"] .mb-product-list').hasClass('mb-mod-product-list-ajax') && launchAjax) {
$('.mb-mod-productlist[data-idmodule="7947658"] .mb-product-list').data('ordertype',value);
$('.mb-mod-productlist[data-idmodule="7947658"] .mb-product-list').data('currentpage',1);
$('.mb-mod-productlist[data-idmodule="7947658"] .mb-product-list').trigger('loadProductsList',[true, 1,function() {
}]);
} else {
var url = location.href;
try {
var ourl = new URL(location.href);
if (page <= 1){
if (ourl.search.indexOf('?lp=1&') > -1) {
ourl.search = ourl.search.replace('?lp=1&','?');
} else if (ourl.search.indexOf('?lp=1') > -1) {
ourl.search = ourl.search.replace('?lp=1','');
} else if (ourl.search.indexOf('&lp=1') > -1) {
ourl.search = ourl.search.replace('&lp=1','');
}
} else {
if (ourl.search.indexOf('lp=1') > -1) {
ourl.search = ourl.search.replace('lp=1','lp='+page);
} else {
if (ourl.search.indexOf('?') > -1) {
ourl.search = ourl.search + '&lp=' + page;
} else {
ourl.search = ourl.search + '?lp=' + page;
}
}
}
url = ourl.toString();
} catch (err) {
console.error(err);
url = location.href;
if (page <= 1){
if (url.indexOf('?lp=1&') > -1) {
url = url.replace('?lp=1&','?');
} else if (url.indexOf('?lp=1') > -1) {
url = url.replace('?lp=1','');
} else if (url.indexOf('&lp=1') > -1) {
url = url.replace('&lp=1','');
}
} else {
if (url.indexOf('lp=1') > -1) {
url = url.replace('lp=1','lp='+page);
} else {
if (url.indexOf('?') > -1) {
url = url + '&lp=' + page;
} else {
url = url + '?lp=' + page;
}
}
}
}
var form = $('
').attr('type', 'hidden').attr('name', 'pOrd7947658').attr('value', value);
input.appendTo(form);
var input2 = $('
').attr('type', 'hidden').attr('name', 'pPage7947658').attr('value', page);
input2.appendTo(form);
$('body').append(form);
form.submit();
}
}
document.addEventListener("DOMContentLoaded", function(event) {
try {
configFilterButton7947658();
configViewsButtons7947658();
configAjaxList7947658();
$('#pOrder7947658').change(function(){
try{ga('send', 'event', 'Filtros', 'Cambiar orden', $(this).find("option:selected").text());}catch(err){console.log(err);}
$('.filter-order select.input-control').each(function(){
$(this).val($('#pOrder7947658').val());
});
});
} catch (err) {
console.error('Error loading .mb-mod-productlist[data-idmodule="7947658"] script: ' + err);
}
});
/*]]>*/
-->