").addClass("animated fadeIn slideDown"); } $('#add_to_cart_button').addClass('disabled'); } if ( success_handler != null && shipping_valid == true ) success_handler(); } } function afterAddToCart(response) { if (response.success) { updateModal(response); $("#added_to_cart_success_dialog").modal('show'); // Set a cookie to maintain compatibility with old cart code document.cookie = "CART_ID=" + encodeURIComponent(response.cart_id)+"; path=/; expires=Wednesday, 09-Nov-2099 23:12:40 GMT"; } else { alert(response.error_msg); } } function updateModal(response) { if ( AddToCartManager.getType() == 1 ) { $("#added_to_cart_success_dialog_title").html("Added to Your List"); $("#checkout_button").html("Proceed"); $("#checkout_button").attr("href", "/_CGI/VIEW_QUOTE_BUILDER.HTML"); } if ( response.sale_price_string ) $("#add_to_cart_sale_price").html(response.sale_price_string); if ( response.product_configuration_description) $("#product_configuration_description").html("Option(s): " + response.product_configuration_description); } function prepopulateZipCodeContainer() { zip_code_container_original_html = $('#zip_code_container').html(); $('#zip_code_container').html(""); var label = " Delivery & Pickup Options