Producto añadido correctamente, ¿Cómo quiere continuar?
10
');}
var height = $('.main').outerHeight();
var width = $('.main').outerWidth();
$('.ui-slider-handle').css('cursor','pointer');
$('#resultLoading').css({
'width':'100%',
'height':'100%',
'position':'fixed',
'z-index':'10000000',
'top':'0',
'left':'0'
});
$('#resultLoading .bg').css({
'background':'#ffffff',
'opacity':'0.5',
'width':'100%',
'height':'100%',
'position':'absolute',
'top':'0'
});
$('#resultLoading>div:first').css({
'width': '100%',
'text-align': 'center',
'position': 'absolute',
'left': '0',
'top': '50%',
'font-size':'16px',
'z-index':'10',
'color':'#ffffff'
});
$('.block-layered-nav a').on('click', function(e){if(!$(this).parent().hasClass('slider-range')){sliderAjax($(this).attr('href'));}e.preventDefault();});
});
/*DONOT EDIT THIS CODE*/
var old_class;
function sliderAjax(url) {
if (!active) {
active = true;
jQuery(function($) {
if($(".col-main .products-grid").attr("class"))
old_class = $(".col-main .products-grid").attr("class");
oldUrl = url;
$('#resultLoading .bg').height('100%');
$('#resultLoading').fadeIn(300);
var param = "ajaxcatalog=true";
if(url.indexOf("?")==-1)
param = "?"+param;
else
param = "&"+param;
try {
$('body').css('cursor', 'wait');
$.ajax({
url: url+param,
dataType: 'json',
type: 'post',
data: data,
success: function(data) {
callback();
if (data.viewpanel) {
if ($('.block-layered-nav')) {
$('.block-layered-nav').empty();
$('.block-layered-nav').replaceWith(data.viewpanel)
}
}
if (data.productlist) {
$('.col-main .category-products').empty();
$('.col-main .category-products').replaceWith(data.productlist)
}
$(".col-main .category-products").scrollToMe();
var hist = url.split('?');
if(window.history && window.history.pushState){
window.history.pushState('GET', data.title, url);
}
$('body').find('.toolbar select').removeAttr('onchange');
$('#resultLoading .bg').height('100%');
$('#resultLoading').fadeOut(300);
$('body').css('cursor', 'default');
$('body').find('.toolbar select').removeAttr('onchange');
$('#resultLoading .bg').height('100%');
$('#resultLoading').fadeOut(300);
$('body').css('cursor', 'default');
$('.block-layered-nav a').on('click', function(e){if(!$(this).parent().hasClass('slider-range')){sliderAjax($(this).attr('href'));}e.preventDefault();});
$("a.product-image img.defaultImage").each(function(){
var default_img = $(this).attr("src");
if(!default_img)
default_img = $(this).attr("data-src");
var thumbnail_img = $(this).parent().children("img.hoverImage").attr("src");
if(!thumbnail_img)
thumbnail_img = $(this).parent().children("img.hoverImage").attr("data-src");
if(default_img){
if(default_img.replace("/small_image/","/thumbnail/")==thumbnail_img){
$(this).parent().children("img.hoverImage").remove();
$(this).removeClass("defaultImage");
}
}
});
/* moving action links into product image area */
$(".move-action .item .details-area .actions").each(function(){
$(this).parent().parent().children(".product-image-area").append($(this));
});
if(old_class)
$(".col-main .products-grid").attr("class", old_class);
}
})
} catch (e) {}
});
active = false
}
return false
}
function callback(){
}
Cobre