' + json['error']['option'][i] + '
');
}
}
}
if (json['error']['recurring']) {
$('select[name=\'recurring_id\']').after('
' + json['error']['recurring'] + '
');
}
// Highlight any found errors
$('.text-danger').parent().addClass('has-error');
}
if (json['success']) {
// Advanced Pop-up Cart
if (window.apc && window.apc.conf) {
if (window.apc.conf.open_when_added || window.apc.conf.replace_button) {
apc.OpenWhenAdded(json['success']);
apc.UpdateMiniCart();
setTimeout(function() {
apc.ReplaceButton($("input[name='product_id']").val());
}, 100);
return;
}
}
// End of Advanced Pop-up Cart
$('.breadcrumb').after('
' + json['success'] + '
');
$('#cart > button').html('
' + json['total'] + '');
$('html, body').animate({ scrollTop: 0 }, 'slow');
$('#cart > ul').load('index.php?route=common/cart/info ul li');
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
//-->
');
}
if (json['success']) {
alert(json['success']);
$(node).parent().find('input').val(json['code']);
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}
}, 500);
});
//-->
');
}
if (json['success']) {
$('#review').after('
' + json['success'] + '
');
$('input[name=\'name\']').val('');
$('textarea[name=\'text\']').val('');
$('input[name=\'rating\']:checked').prop('checked', false);
}
}
});
});
$(document).ready(function() {
$('.thumbnails').magnificPopup({
type:'image',
delegate: 'a',
gallery: {
enabled: true
}
});
});
//-->
Esse site utiliza cookies
Usamos cookies para melhorar sua experiência na loja. Consulte mais informações na nossa Central de privacidade.