Advanced Featured Products
Availability: Brand: Dell UPC: Model #: Dell ADP-90FB 90 Watt Power Adapter
//
set_product_info();
$(window).resize(function() {
set_product_info();
});
});
$('#add_to_cart').bind('click', function() {
$.ajax({
url: 'index.php?route=tb/cartCallback',
type: 'post',
data: $('#product_add_to_cart_form input[type=\'text\'], #product_add_to_cart_form input[type=\'hidden\'], #product_add_to_cart_form input[type=\'radio\']:checked, #product_add_to_cart_form input[type=\'checkbox\']:checked, #product_add_to_cart_form select, #product_add_to_cart_form textarea'),
dataType: 'json',
success: function(json) {
$("#product_options p.s_error_msg").remove();
if (json['error']) {
if (json['error']['profile']) {
$('#option-payment_profile').append('
' + json['error']['profile'] + '
');
}
if (json['error']['warning']) {
productNotice(json['title'], json['thumb'], json['error']['warning'], 'failure');
$('.warning').fadeIn('slow');
}
for (i in json['error']) {
$('#option-' + i).append('
' + json['error'][i] + '
');
}
}
if (json['success']) {
productNotice(json['title'], json['thumb'], json['success'], 'success');
$('#cart_menu span.s_grand_total').html(json['total_sum']);
$('#cart_menu div.s_cart_holder').html(json['html']);
}
}
});
return false;
});