Rules book dating pdf dating men australia advice

form_id.length === 0 rules book dating pdf-86

$('#' + form_id).submit(); } // begin j Query functions (function($) { $(document).ready(function() { }); })(j Query); // used for j Query.find() function function get_wid_from_pid(pid) { find_wid = pid.replace(/\{/g, "\\{"); find_wid = find_wid.replace(/\}/g, "\\}"); return find_wid; } // Catches "enter" keypress on quantity fields, updates quantity appropriately function catch_quantity_enter(e, pid) { var qty = get_qty_from_pid(pid); //get current addon settings var addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); var code = Code || e.which; if (code == 13) { submit_cart_changes(pid, qty, 0, addon, addon_type, tuckbox, tuckbox_size); e.prevent Default(); return false; } } // get the quantity value associated with the given pid function get_qty_from_pid(pid) { var find_wid = get_wid_from_pid(pid); var qty_field = j Query.find("#qty_" + find_wid)[0]; var qty = 0; if (qty_field) { qty = parse Int($(qty_field).val()); } return qty; } // get the old (previous) quantity value associated with the given pid function get_oldqty_from_pid(pid) { var find_wid = get_wid_from_pid(pid); var qty_field = $("#qty_" + find_wid)[0]; var oldqty = 1; if (qty_field) { oldqty = $(qty_field).attr('oldval'); } return oldqty; } // get the addon value associated with the given pid function get_addon_from_pid(pid) { var find_wid = get_wid_from_pid(pid); var addon_field = $("#addon_checkbox_" + find_wid)[0]; var addon = '0'; if (addon_field) { if ($(addon_field).attr('checked')) { addon = '1'; } } else { //this section handles the addon/tuckbox radio buttons var radio_input_name = "addon_radio_" + find_wid; var selected_option = $("input[name='" + radio_input_name + "']:checked").val(); if (selected_option == 'SD' || selected_option == 'LD') { addon = '1'; } } return addon; } // get the addon type for line item function get_addon_type(pid) { var find_wid = get_wid_from_pid(pid); var addon_field = $("#addon_checkbox_" + find_wid)[0]; if (addon_field) { var addon_type = $(addon_field).val(); } else { //this section handles the addon/tuckbox radio buttons var radio_input_name = "addon_radio_" + find_wid; var selected_option = $("input[name='" + radio_input_name + "']:checked").val(); if (selected_option == 'SD' || selected_option == 'LD') { addon_type = selected_option; } } return addon_type; } // get the tuckbox value associated with the given pid function get_tuckbox_from_pid(pid) { var find_wid = get_wid_from_pid(pid); var tuckbox_field = $("#tuckbox_checkbox_" + find_wid)[0]; var tuckbox = '0'; if (tuckbox_field) { if ($(tuckbox_field).attr('checked')) { tuckbox = '1'; } } else { //this section handles the addon/tuckbox radio buttons var radio_input_name = "addon_radio_" + find_wid; var selected_option = $("input[name='" + radio_input_name + "']:checked").val(); if (selected_option == 'SD' || selected_option == 'LD') { tuckbox = '0'; } else if (selected_option 0) { tuckbox = '1'; } } return tuckbox; } // get the tuckbox size for line item function get_tuckbox_size(pid) { var find_wid = get_wid_from_pid(pid); var tuckbox_field = $("#tuckbox_checkbox_" + find_wid)[0]; if (tuckbox_field) { var tuckbox_type = $(tuckbox_field).val(); } else { //this section handles the addon/tuckbox radio buttons var radio_input_name = "addon_radio_" + find_wid; var selected_option = $("input[name='" + radio_input_name + "']:checked").val(); if (selected_option == 'SD' || selected_option == 'LD') { tuckbox_type = '0'; } else if (selected_option 0) { tuckbox_type = selected_option; } } return tuckbox_type; } // User has typed a number in a quantity text box function set_quantity_directly(pid) { var qty = get_qty_from_pid(pid); //get current addon settings var addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); submit_cart_changes(pid, qty, 0, addon, addon_type, tuckbox, tuckbox_size); } // User has clicked the "-" icon to decrease the quantity by 1 function set_quantity_decrease(pid) { var find_wid = get_wid_from_pid(pid); var qty = get_qty_from_pid(pid); var decrease_button = $("#decrease_" + find_wid)[0]; var button_status = $(decrease_button).attr('disabled'); qty = qty - 1; //get current addon settings var addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); submit_cart_changes(pid, qty, 0, addon, addon_type, tuckbox, tuckbox_size); } // User has clicked the "+" icon to increase the quantity by 1 function set_quantity_increase(pid) { var find_wid = get_wid_from_pid(pid); var qty; qty = get_qty_from_pid(pid, true); var increase_button = $("#increase_" + find_wid)[0]; var button_status = $(increase_button).attr('disabled'); qty = qty + 1; //get current addon settings var addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); submit_cart_changes(pid, qty, 0, addon, addon_type, tuckbox, tuckbox_size); } // Added by Pablo García (2014-08-01): User has added a new product to cart from product_listing module // Updated by Pablo García (2014-08-04): No need for calculate visible qty function set_quantity_hidden_increase(pid, qty, callback) { submit_cart_hidden_increase(pid, qty, 0, 0, 0, callback); } // User has clicked addon checkbox // Set addon to value of checkbox function set_addon(pid) { var qty = get_qty_from_pid(pid); var wishlist = 0; var new_addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); submit_cart_changes(pid, qty, wishlist, new_addon, addon_type); } // User has clicked tuckbox checkbox // Set tuckbox to value of checkbox function set_tuckbox(pid) { var qty = get_qty_from_pid(pid); var wishlist = 0; var new_addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var new_tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); submit_cart_changes(pid, qty, wishlist, new_addon, addon_type, new_tuckbox, tuckbox_size); } // User has clicked addon/tuckbox radio button // Set addon and tuckbox based on value of selected radio button function set_addon_radio(pid) { var find_wid = get_wid_from_pid(pid); var qty = get_qty_from_pid(pid); var radio_input_name = "addon_radio_" + find_wid; var wishlist = 0; var new_addon_setting = $("input[name='" + radio_input_name + "']:checked").val(); var addon_type = get_addon_type(pid); var tuckbox_size = get_tuckbox_size(pid); if (new_addon_setting == 'SD' || new_addon_setting == 'LD') { new_addon = '1'; new_tuckbox = '0'; } else if (new_addon_setting 0) { new_addon = '0'; new_tuckbox = '1'; } else { new_addon = '0'; new_tuckbox = '0'; } submit_cart_changes(pid, qty, wishlist, new_addon, addon_type, new_tuckbox, tuckbox_size); } // User has clicked the "X" icon to remove the item from the cart function remove_item_from_cart(pid) { var find_wid = get_wid_from_pid(pid); var remove_button = $("#remove_" + find_wid)[0]; var button_status = $(remove_button).attr('disabled'); var qty = 0; //get current addon settings var addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); submit_cart_changes(pid, qty, 0, addon, addon_type, tuckbox, tuckbox_size); } // User has clicked the "undo" icon to restore an item previously // removed the item from the cart function undo_remove_item_from_cart(pid) { var qty = get_oldqty_from_pid(pid); //ignore wishlist var wishlist = 0; //restore current addon setting var addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); submit_cart_changes(pid, qty, 0, addon, addon_type, tuckbox, tuckbox_size); } // User has clicked the "list" icon to move the item from the cart // to the wishlist function move_item_to_wishlist(pid) { var find_wid = get_wid_from_pid(pid); var wishlist_button = $("#wishlist_" + find_wid)[0]; var button_status = $(wishlist_button).attr('disabled'); var qty = 0; var wishlist = 1; //get current addon settings var addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); submit_cart_changes(pid, qty, 0, addon, addon_type, tuckbox, tuckbox_size); } // User has clicked the "undo" icon to restore an item previously // moved from the cart to the wishlist function undo_move_item_to_wishlist(pid) { var qty = get_oldqty_from_pid(pid); var wishlist = -1; //restore current addon setting var addon = get_addon_from_pid(pid); var addon_type = get_addon_type(pid); var tuckbox = get_tuckbox_from_pid(pid); var tuckbox_size = get_tuckbox_size(pid); submit_cart_changes(pid, qty, 0, addon, addon_type, tuckbox, tuckbox_size); } // Javascript sets display to "waiting" // Javascript submits data to php: // * product ID // * new quantity of item // * wishlist action (1 == move to, 0 == ignore, -1 == move from) // * new addon setting (1 == addon added by customer, 0 == no addon selected for this product) // * type of addon for this item (PS, LS, SD, LD, TB) // * new tuckbox setting (1 == tuckbox added by customer, 0 == no tuckbox selected for this product) // * tuckbox size (0 == no tuckbox associated with product; otherwise card count based size for tuckbox) // PHP returns data to javascript: // * product IDs // * old quantity of each item // * new quantity of each item // * new addon setting of each item // * line-item subtotal // * cart subtotal // * if bulk book price is in effect // * if bulk card price is in effect // * new tuckbox setting of each item // * tuckbox size associated with cards, if any // Javascript updates displayed text on page function submit_cart_changes(pid, qty, wishlist, addon, addon_type, tuckbox, tuckbox_size) { var find_wid = get_wid_from_pid(pid); var wishlist_button = $("#wishlist_" + find_wid)[0]; var wishlist_working = $("#wishlist_working_" + find_wid)[0]; var wishlist_undo = $("#wishlist_undo_" + find_wid)[0]; var wishlist_text = $("#wishlist_text_" + find_wid)[0]; var remove_button = $("#remove_" + find_wid)[0]; var remove_working = $("#remove_working_" + find_wid)[0]; var remove_undo = $("#remove_undo_" + find_wid)[0]; var remove_text = $("#remove_text_" + find_wid)[0]; var qty_field = $("#qty_" + find_wid)[0]; var decrease_button = $("#decrease_" + find_wid)[0]; var increase_button = $("#increase_" + find_wid)[0]; var addon_checkbox = $("#addon_checkbox_" + find_wid)[0]; var tuckbox_checkbox = $("#tuckbox_checkbox_" + find_wid)[0]; var current_qty = get_qty_from_pid(pid); qty = parse Int(qty); // wishlist == 1 == move to wishlist // wishlist == 0 == ignore // wishlist == -1 == move from wishlist if (typeof wishlist === 'undefined') { wishlist = 0; } else { wishlist = parse Int(wishlist); } // addon = new addon checkbox setting if (typeof addon === 'undefined') { addon = '0'; } // tuckbox = new tuckbox checkbox setting if (typeof tuckbox === 'undefined') { tuckbox = '0'; } // Javascript sets display to "waiting" if (qty == 0) { if (wishlist == 1) { // move to wishlist $(wishlist_button).hide(); $(wishlist_working).show(); $(remove_button).attr('disabled', 'disabled'); } else if (current_qty 0) { // remove from cart $(remove_button).hide(); $(remove_working).show(); $(wishlist_button).attr('disabled', 'disabled'); } $(qty_field).attr('disabled', 'disabled'); $(decrease_button).attr('disabled', 'disabled'); $(increase_button).attr('disabled', 'disabled'); $(addon_checkbox).attr('disabled', 'disabled'); } else { if (wishlist == -1) { // undo move to wishlist $(wishlist_working).show(); $(wishlist_undo).hide(); $(wishlist_text).hide(); } else if (current_qty == 0) { // undo remove from cart $(remove_working).show(); $(remove_undo).hide(); $(remove_text).hide(); } } update Cart = { // Javascript submits data to php: // * product ID // * new quantity of item // * wishlist action (1 == move to, 0 == ignore, -1 == move from) // * new addon setting (1 == on, 0 == off) // * current addon setting, for undos // * type of eligible addon // * current tuckbox setting, for undos // * tuckbox size data: { inputs: find_wid, code: 'update', qty: qty, wishlist: wishlist, addon: addon, addon_type: addon_type, tuckbox: tuckbox, tuckbox_size: tuckbox_size }, cb Scs: function(result) { // PHP returns data to javascript: // result.cartsize number of items in cart // result.wishsize number of items in wishlist // result.livecount number of live items in cart // result.cart_bulk_book_cost if bulk book price is in effect // result.cart_bulk_card_cost if bulk card price is in effect // result.old_bulk_card_cost if bulk card price was in effect before update (need for tuckbox/addon flags) // '1' if admin or manufacturer for labels // result.stotal cart subtotal // result.lineitems multidimensional array // wid escaped product ID // oldqty old quantity of each item // qty new quantity of each item // wishlist wishlist action (1 == moved to, 0 == ignored, -1 == moved from) // wisherror wishlist error message // is_bulk_book_cost if bulk book price is in effect // is_bulk_card_cost if bulk card price is in effect // lutotal line-item unit price // ltotal line-item subtotal // addontotal line-item addon total cost // addon new addon checkbox setting: 0 = false, 1 = true // addontext text for addon checkbox label // tuckboxtext text for tuckbox checkbox label // addon_eligible type of addon this item is eligible for // tuckboxtotal line-item tuckbox total cost // tuckbox new tuckbox checkbox setting: 0 = false, 1 = true // tuckbox_size size of tuckbox associated with product, if any // result.checkout boolean, if the cart can be checked out or not.

// result.checkout_messages messages relevant to the checkout.

// result.has_premium_card boolean, if the cart contains a card on premium stock var subtotal = $('#subtotal')[0]; // Javascript updates displayed text on page update Cart Widget(result.cartsize); update Wish Widget(result.wishsize); document.forms["cart_contents"].elements["cart_live_products_count"].value = result.livecount; if (result.livecount 0) { // high volume stock warning commented out 2015-12-11; retain for quick restoration if needed // if (result.has_premium_card == true) { // Element By Id('bulk_discount_message').inner HTML = ""; // } else { Element By Id('bulk_discount_message').inner HTML = "BULK_PRICE_POD_CARD"; // } } else { Element By Id('bulk_discount_message').inner HTML = ""; } $(subtotal).text(result.stotal); // loop through return.lineitems array for (var index in result.lineitems) { var lineitem = result.lineitems[index]; var lwishlist_wrapper = $('#wishlist_wrapper_' + lineitem.wid)[0]; var lwishlist_button = $('#wishlist_' + lineitem.wid)[0]; var lwishlist_working = $('#wishlist_working_' + lineitem.wid)[0]; var lwishlist_undo = $('#wishlist_undo_' + lineitem.wid)[0]; var lwishlist_text = $('#wishlist_text_' + lineitem.wid)[0]; var lremove_wrapper = $('#remove_wrapper_' + lineitem.wid)[0]; var lremove_button = $('#remove_' + lineitem.wid)[0]; var lremove_working = $('#remove_working_' + lineitem.wid)[0]; var lremove_undo = $('#remove_undo_' + lineitem.wid)[0]; var lremove_text = $('#remove_text_' + lineitem.wid)[0]; var lqty_field = $('#qty_' + lineitem.wid)[0]; var ldecrease_button = $('#decrease_' + lineitem.wid)[0]; var lincrease_button = $('#increase_' + lineitem.wid)[0]; var lutotal = $('#lutotal_' + lineitem.wid)[0]; var ltotal = $('#ltotal_' + lineitem.wid)[0]; var laddon_text = $('#laddon_text_' + lineitem.wid)[0]; var laddon_qty = $('#laddon_qty_' + lineitem.wid)[0]; var laddon_price = $('#laddon_price_' + lineitem.wid)[0]; var laddon_end_text = $('#laddon_end_text_' + lineitem.wid)[0]; var laddon_flag = $("#laddon_flag_" + lineitem.wid)[0]; var laddon_checkbox = $("#addon_checkbox_" + lineitem.wid)[0]; var laddon_div = $("#addon_" + lineitem.wid)[0]; var ltuckbox_text = $('#ltuckbox_text_' + lineitem.wid)[0]; var ltuckbox_qty = $('#ltuckbox_qty_' + lineitem.wid)[0]; var ltuckbox_price = $('#ltuckbox_price_' + lineitem.wid)[0]; var ltuckbox_end_text = $('#ltuckbox_end_text_' + lineitem.wid)[0]; var ltuckbox_flag = $("#ltuckbox_flag_" + lineitem.wid)[0]; //update addon text if (== 1) { //deckboxes if (lineitem.addon_eligible == 'SD' || lineitem.addon_eligible == 'LD') { $(laddon_text).html(lineitem.addontext + ' (+'); $(laddon_qty).html(' '); $(laddon_end_text).html(')'); //screens } else if (lineitem.addon_eligible == 'LS' || lineitem.addon_eligible == 'PS') { if (== '1') { $(laddon_text).html(lineitem.addontext + ' (+ '); } else { $(laddon_text).html(lineitem.addontext + ' (Total '); } $(laddon_qty).html(' '); $(laddon_end_text).html(')'); } if (lineitem.tuckbox_size 1) { //deckboxes if (lineitem.addon_eligible == 'SD' || lineitem.addon_eligible == 'LD') { //$(laddon_text).html(lineitem.addontext + ' (+'); //retain this line in case needed for forced line break $(laddon_text).html(lineitem.addontext + ' (+'); $(laddon_qty).html(' '+lineitem.qty+' '); $(laddon_end_text).html(')'); //screens } else if (lineitem.addon_eligible == 'LS' || lineitem.addon_eligible == 'PS') { if (== '1') { $(laddon_text).html(lineitem.addontext + ' (+ '); } else { $(laddon_text).html(lineitem.addontext + ' (Total '); } $(laddon_qty).html(' '+lineitem.qty+' '); $(laddon_end_text).html(')'); } if (lineitem.tuckbox_size 0) { //tuckboxes $(ltuckbox_text).html(lineitem.tuckboxtext + ' (+'); $(ltuckbox_qty).html(' '+lineitem.qty+' '); $(ltuckbox_end_text).html(')'); } } // update addon/tuckbox flag visibility if (== lineitem.oldqty) { //fade slow if just an addon change if (lineitem.addon == '1' && lineitem.tuckbox == '0') { $(ltuckbox_flag).hide(); $(laddon_flag)To('slow', 1); } else if (lineitem.addon == '0' && lineitem.tuckbox == '1') { $(laddon_flag).hide(); $(ltuckbox_flag)To('slow', 1); } else { $(ltuckbox_flag).hide(); $(laddon_flag)To('slow', 0); } } else if (== 0 && lineitem.oldqty 0) { //removed from cart or moved to wishlist //resolve addon flag, addon checkbox, and tuckbox flag visibility if (lineitem.addon == '0' && lineitem.tuckbox == '1') { $(ltuckbox_flag)To(0, .2); } else if (lineitem.addon == '1' && lineitem.tuckbox == '0') { $(laddon_flag)To(0, .2); } } else { // update within cart if (lineitem.addon == '0' && lineitem.tuckbox == '1') { $(laddon_flag)To('slow', 0); $(laddon_flag).hide(); $(ltuckbox_flag)To('slow', 1); $(laddon_div)To('slow', 1); } else if (lineitem.addon == '1' && lineitem.tuckbox == '0') { $(ltuckbox_flag)To('slow', 0); $(ltuckbox_flag).hide(); $(laddon_flag)To('slow', 1); } else { $(ltuckbox_flag)Out(); $(laddon_flag)To('slow', 0); //need one of these to still be present to maintain space } } // update wishlist and remove buttons, and // fade row in or out, as appropriate if (== 0) { if (lineitem.wishlist == 1) { // moved to wishlist $(lremove_wrapper)Class('fade'); var faded_items = $('#row_' + + ' div.fade'); if (lineitem.wisherror) { $(faded_items)To('slow', 1); $(lwishlist_working).hide(); $(lwishlist_button).show(); $(lqty_field).remove Prop('disabled'); $(laddon_checkbox).remove Prop('disabled'); $(lwishlist_text).html(lineitem.wisherror); $(lwishlist_text).show(); } else { $(faded_items)To(0, .2); //rehide addon/tuckbox flags as appropriate (they are inside lwishlist_wrapper div) if (lineitem.addon == '0' && lineitem.tuckbox == '1') { $(laddon_flag).hide(); $(ltuckbox_flag)To(0, .2); } else if (lineitem.addon == '1' && lineitem.tuckbox == '0') { $(ltuckbox_flag).hide(); $(laddon_flag)To(0, .2); } else { $(ltuckbox_flag).hide(); $(laddon_flag).hide(); } $(lwishlist_working).hide(); $(lwishlist_undo).show(); $(lwishlist_text).show(); } } else if (lineitem.oldqty 0 && !

lineitem.wisherror) { // removed from cart $(lwishlist_wrapper)Class('fade'); var faded_items = $('#row_' + + ' div.fade'); $(faded_items)To(0, .2); //rehide addon/tuckbox flags as appropriate (they are inside lwishlist_wrapper div) if (lineitem.addon == '0' && lineitem.tuckbox == '1') { $(laddon_flag).hide(); $(ltuckbox_flag)To(0, .2); } else if (lineitem.addon == '1' && lineitem.tuckbox == '0') { $(ltuckbox_flag).hide(); $(laddon_flag)To(0, .2); } else { $(ltuckbox_flag).hide(); $(laddon_flag).hide(); } $(lremove_working).hide(); $(lremove_undo).show(); $(lremove_text).show(); $(lwishlist_text).hide(); } } else { if (lineitem.wishlist == -1) { // undone move to wishlist var faded_items = $('#row_' + + ' div.fade'); $(lremove_wrapper).remove Class('fade'); $(faded_items)To(0, 1); $(lwishlist_working).hide(); $(lwishlist_button).show(); $(lremove_button).remove Attr('disabled'); $(lqty_field).remove Prop('disabled'); $(ldecrease_button).remove Attr('disabled'); $(lincrease_button).remove Attr('disabled'); if (lineitem.addon == '0' && lineitem.tuckbox == '1') { $(laddon_flag).hide(); $(ltuckbox_flag)To(0, 1); } else if (lineitem.addon == '1' && lineitem.tuckbox == '0') { $(ltuckbox_flag).hide(); $(laddon_flag)To(0, 1); } else { $(ltuckbox_flag).hide(); $(laddon_flag).hide(); } } else if (lineitem.wishlist == 0 && lineitem.wisherror) { //move to wishlist clicked when not logged in $(lwishlist_working).hide(); $(lwishlist_button).show(); $(lremove_button).remove Attr('disabled'); $(lqty_field).remove Prop('disabled'); $(ldecrease_button).remove Attr('disabled'); $(lincrease_button).remove Attr('disabled'); $(laddon_checkbox).remove Prop('disabled'); if (lineitem.wisherror) { $(lwishlist_text).html(lineitem.wisherror); $(lwishlist_text).show(); } } else if (lineitem.oldqty == 0) { // undone remove from cart var faded_items = $('#row_' + + ' div.fade'); $(lwishlist_wrapper).remove Class('fade'); $(faded_items)To(0, 1); if (lineitem.addon == '0' && lineitem.tuckbox == '1') { $(laddon_flag).hide(); $(ltuckbox_flag)To(0, 1); } else if (lineitem.addon == '1' && lineitem.tuckbox == '0') { $(ltuckbox_flag).hide(); $(laddon_flag)To(0, 1); } else { $(ltuckbox_flag).hide(); $(laddon_flag).hide(); } $(lremove_working).hide(); $(lremove_button).show(); $(lwishlist_button).remove Attr('disabled'); $(lqty_field).remove Prop('disabled'); $(ldecrease_button).remove Attr('disabled'); $(lincrease_button).remove Attr('disabled'); $(laddon_checkbox).remove Prop('disabled'); } } // store the old quantity into an attribute for later if (lineitem.oldqty !

= lineitem.qty) { $(lqty_field).attr('oldval', parse Int(lineitem.oldqty)); } // update addon and tuckbox prices $(laddon_price).text(lineitem.addontotal); $(ltuckbox_price).text(lineitem.tuckboxtotal); // update quantity $(lqty_field).val(lineitem.qty); // update line-item unit price var spaces = '\u00a0\u00a0\u00a0\u00a0'; var new_lutotal = 'X' + spaces + lineitem.lutotal + spaces + '='; $(lutotal).text(new_lutotal); var lutotal_number = parse Float(/\d*\.?

\d+/gm.exec(lineitem.lutotal)); if(lutotal_number) { $(lutotal).attr('item_price', lutotal_number); } // update line-item subtotal $(ltotal).text(lineitem.ltotal); var ltotal_number = parse Float(/\d*\.?

\d+/gm.exec(lineitem.ltotal)); if(ltotal_number) { $(ltotal).attr('item_price', ltotal_number); } // Update the checkout form message and buttons.

if (result.checkout == true) { enable_checkout(); } else { disable_checkout(result.checkout_messages); } } } }; ajax Queue.schedule(update Cart); } function enable_checkout() { // Set message.

$('#card_and_book_message').html(''); // Show button, enable click.

If you are having trouble accessing your Online Student Edition because the Access Code is wrong, please ask your teacher.

For additional information check out the Frequently Asked Questions on the SEG Technical Support Web site.

Tags: , ,