Source: https://cannoninstitute.gnosisconnect.com/cart/descriptionbeforelogin.php?course=32DE1C34-4195-47B1-9F08-2174394FB6A7
Timestamp: 2018-04-22 04:56:48
Document Index: 26575618

Matched Legal Cases: ['art 2', 'art 1', 'art 2', 'art 3', 'art 4', 'art 5', 'art 6', 'art 5', 'art,2']

Understanding FHA Today
access_time 07:00 Hours
Understanding FHA Handbook 4000.1
Office Hours: 9am-5pm & Mon-Fri
Office Telephone: 480-730-4801
E-mail: info@cannonedu.org (Note: Email preferred 48 hours to respond)
1. Pair the mortgagee’s requirements with those of the appraiser, in order to help clarify the appraiser’s responsibilities, and
2. To reinforce that appraisers are not loan qualification decision‐makers, but that they do play a critical role in the decision-making process.
Preparing and FHA Appraisal- Available online in course
Access to Gnosis
This course will be delivered entirely online through the course management system Gnosis. You will use your Gnosis account to login to the course from the Gnosis login page.
In Gnosis, you will access online lessons, course materials, and resources. At designated times you will participate in self-paced activities using Gnosis and alternative Internet-based technologies. Activities will consist of reading, assessments, and surveys.
Gnosis Access
This course will be delivered online through a course management system named Gnosis.
To access this course on Gnosis you will need access to the Internet and a supported Web browser (Internet Explorer, Firefox, Safari, Chrome).
If you need technical assistance at any time during the course or to report a problem with Gnosis you can:
Visit the Gnosis Student Resources Page
Review Gnosis Student Orientation
Submit a Gnosis Problem Form
Important Note: This syllabus, along with course assignments and due dates, are subject to change. It is the student’s responsibility to check Gnosis for corrections or updates to the syllabus. Any changes will be clearly noted in course announcement or through Cannon
Part 2: Course Objectives
Over the course of many years, appraisers had been placed in positions and taken on roles which didn’t fall under their realm of responsibility. According to HUD, one of the primary functions of the new Handbook was returning the decision‐making process (property eligibility for an FHA‐insured mortgage) back its rightful owner – the MORTGAGEE.
Identify the locations of the HUD 4000.1 Handbook for download and/or reference so that the FHA Roster Appraiser has the Handbook available for research and referral
Provide an overview of the HUD Handbook, in its entirety, so the appraiser understands the responsibilities of the mortgagee and the appraiser
Pair the appraiser’s requirements and responsibilities with those of the mortgagee to help the appraiser better understand the need for strict compliance with the handbook
The material presented in this course will benefit:
The appraiser who desires to become an FHA Roster Appraiser,
The appraiser who misunderstands the requirements of the Handbook, and
The appraiser who has been sanctioned by HUD and required to take a 7‐hour Appraising for FHA course in order to remain in good standing on the FHA Roster.
Module 01: Navigating the FHA Handbook 4000.1
Where to find the FHA Handbook 4000.1
Doing business with the FHA
Module 02: Title Insured Housing Programs Forward Mortgages
Initial documentation process
Selection of a qualified FHA Appraiser
Transferring existing appraisals
HUD-92541
Module 03: General Appraiser Requirements
Property compliance with new and existing property
Legal and land use considerations
Module 04: Characteristics of Property Improvements
Minimum property requirements and minimum property
Acceptable appraisal reporting forms and protocol
Module 05: Valuation and Reporting Protocol
Photographs, exhibits and map requirements
Development of Market Value
Module 06: Property Acceptability Criteria for Manufactured Housing
Mastery Quiz Part 1
Mastery Quiz Part 2
Mastery Quiz Part 3
Mastery Quiz Part 4
Mastery Quiz Part 5
Mastery Quiz Part 6
Viewing Grades in Gnosis
Points you receive for graded activities will be posted to the Gnosis Grade Book. Click on the My Grades link on the left navigation to view your points.
Important note: For more information about grading at Cannon Institute, visit the academic policies and grading section of the university catalog.
Part 5: Course Policies
Students are expected to participate in all online activities as listed on the course calendar. You are expected to complete the course within the 3 month period as stated in the orientation.
Cannon Institute will be using Gnosis tracking tool, discussions, chat sessions, and group work, to monitor participation in the course.
If you find that you have any trouble keeping up with assignments or other aspects of the course, make sure you let your instructor know as early as possible. As you will find, building rapport and effective relationships are key to becoming an effective professional. Make sure that you are proactive in informing your instructor when difficulties arise during the semester so that we can help you find a solution.
All assignments for this course will be submitted electronically through Gnosis unless otherwise instructed. Assignments must be submitted by the given deadline or special permission must be requested from instructor before the due date. Extensions will not be given beyond the next assignment except under extreme circumstances.
All discussion assignments must be completed by the assignment due date and time. Late or missing discussion assignments will effect the student’s grade.
It is the student’s responsibility to understand when they need to consider disenrolling from a course. Refer to the Cannon Institute Course Schedule for dates and deadlines for registration. After this period, a serious and compelling reason is required to drop from the course. Serious and compelling reasons includes: (1) documented and significant change in work hours, leaving student unable to attend class, or (2) documented and severe physical/mental illness/injury to the student or student’s family.
Under emergency/special circumstances, students may petition for an incomplete grade.
As a student in this course (and at this university) you are expected to maintain high degrees of professionalism, commitment to active learning and participation in this class and also integrity in your behavior in and out of the classroom.
At Cannon Institute, “cheating is the act of obtaining or attempting to obtain credit for academic work through the use of any dishonest, deceptive, or fraudulent means.”
“Plagiarism is a form of cheating. At Sac State, “plagiarism is the use of distinctive ideas or works belonging to another person without providing adequate acknowledgement of that person’s contribution.”
Important Note: Any form of academic dishonesty, including cheating and plagiarism, may be reported to Cannon Institute
Course policies are subject to change. It is the student’s responsibility to check Cannon Institute for corrections or updates to the syllabus. Any changes will be posted in Cannon Institute.
Sorry but the class has been sold out or the quantity requested is no more available. Please contact admin (info@cannonedu.com) for any further support.
'); return false; } } //var quantity = $(this).parent().find('.quantity').val(); var courseType = $(this).attr('coursetype'); var userType = 1; //alert(courseId+" "+quantity+" "+courseType+" "+course_guid +" "+$(this).parents().find('.quantity').attr('id')); //return false; $.ajax({ type:"post", url:wwwroot+'/cart/cart_ajax.php?action=checkuserIslogedIn', data:{ course_guid:course_guid, courseId:courseId, quantity:quantity, courseType:courseType, userType:userType, referal_code:referal_code }, success:function(data){ arr1=JSON.parse(data); url=window.location.pathname; var filename = url.substring(url.lastIndexOf('/')+1); if(arr1['success']==true){ if(filename=='catalogbeforelogin.php') { window.location.href=wwwroot+'/cart/catalog.php'; } else { arr[course_guid]={0:quantity,1:courseType,2:courseId,3:userType,4:referal_code}; updateCartCount(); addToCart(arr,userType); } } else { if(filename=='catalog.php') { window.location.href=wwwroot+'/cart/catalogbeforelogin.php'; } else { arr[course_guid]={0:quantity,1:courseType,2:courseId,3:userType,4:referal_code}; updateCartCount(); addToCart(arr,userType); } } } }); }); function roundToTwo(num) { return +(Math.round(num + "e+2") + "e-2"); } // coupon related function code start... $("#validate_coupon").click(function(){ var coupon_code = $.trim($('#coupon_code').val()); var err = 0; if(coupon_code == 0 || coupon_code == '') { err = 1; alert('Please enter valid coupon code.'); }else { $('#card_num').removeClass("error"); } if (err == 0) { $.ajax({ type: "post", url : wwwroot+'/cart/cart_ajax.php?action=validatecoupon', data:{couponCode:coupon_code}, dataType:'json', success:function(data1) { if (data1.success == false) { alert(data1.response.err_msg); } else { data=JSON.parse(data1.response.data) var calc = calculateDiscount(data,coupon_code); if (calc != false) { setCouponCodeSession(); } } } }); } }); function calculateDiscount(data, coupon_code) { if(data.ecommerce_coupons_course_type == 1){ individualorall=$('#individualorall').val(); if(individualorall == 0 && individualorall != ''){ alert('Individual Coupn not allowed'); return false; } courseidStr = data.courseid; var courseidArr = courseidStr.split(','); couponUseStatus = 0; for(var i=0; i < courseidArr.length; i++){ totalprice = $(".product_row span[cid="+courseidArr[i]+"][course_type^='1']").attr('itemprice'); if(typeof totalprice !== "undefined"){ couponUseStatus = 1; var cart_val = totalprice; var amout_after_discount = cart_val; if (parseInt(cart_val) < parseInt(data.coupon_value) && data.coupon_type == 'F') { alert("Coupon Value is $" + data.coupon_value + " that should be lower than Total Cost."); return false; }else if (data.coupon_type == 'F') { amout_after_discount = cart_val - data.coupon_value; } else if (data.coupon_type == 'P') { var discount_per = roundToTwo((cart_val * data.coupon_value) / 100); amout_after_discount = cart_val - discount_per; } iteamquantity = $(".product_row span[cid="+courseidArr[i]+"][course_type^='1']").attr('iteamquantity'); amout_after_discount=(parseFloat(amout_after_discount) * parseFloat(iteamquantity)); //amout_after_discount=roundToTwo(amout_after_discount); $(".product_row span[cid="+courseidArr[i]+"][course_type^='1'].original_price").addClass('linethrough') $(".product_row span[cid="+courseidArr[i]+"][course_type^='1'].discounted_price").html('$'+amout_after_discount.toFixed(2)); $(".product_row span[cid="+courseidArr[i]+"][course_type^='1'].discounted_price").attr('discountprice',amout_after_discount.toFixed(2)); continue; } } programidStr = data.programid; var courseidArr = programidStr.split(','); for(var i=0; i < courseidArr.length; i++){ totalprice = $(".product_row span[cid="+courseidArr[i]+"][course_type^='3']").attr('itemprice'); if(typeof totalprice !== "undefined"){ couponUseStatus = 1; var cart_val = totalprice; var amout_after_discount = cart_val; if (parseInt(cart_val) < parseInt(data.coupon_value) && data.coupon_type == 'F') { alert("Coupon Value is $" + data.coupon_value + " that should be lower than Total Cost."); return false; }else if (data.coupon_type == 'F') { amout_after_discount = cart_val - data.coupon_value; } else if (data.coupon_type == 'P') { var discount_per = roundToTwo((cart_val * data.coupon_value) / 100); amout_after_discount = cart_val - discount_per; } //alert(courseidArr[i]+" disc "+discount_per+" amontfer"+amout_after_discount); iteamquantity = $(".product_row span[cid="+courseidArr[i]+"][course_type^='3']").attr('iteamquantity'); amout_after_discount = (parseFloat(amout_after_discount) * parseFloat(iteamquantity)); //alert(courseidArr[i]+" "+amout_after_discount); //amout_after_discount=roundToTwo(amout_after_discount); $(".product_row span[cid="+courseidArr[i]+"][course_type^='3'].original_price").addClass('linethrough') $(".product_row span[cid="+courseidArr[i]+"][course_type^='3'].discounted_price").html('$'+amout_after_discount.toFixed(2)); $(".product_row span[cid="+courseidArr[i]+"][course_type^='3'].discounted_price").attr('discountprice',amout_after_discount.toFixed(2)); continue; } } classidStr = data.classid; var courseidArr = classidStr.split(','); for(var i=0; i < courseidArr.length; i++){ totalprice = $(".product_row span[course_id="+courseidArr[i]+"][course_type^='2']").attr('itemprice'); if(typeof totalprice !== "undefined"){ couponUseStatus = 1; var cart_val = totalprice; var amout_after_discount = cart_val; if (parseInt(cart_val) < parseInt(data.coupon_value) && data.coupon_type == 'F') { alert("Coupon Value is $" + data.coupon_value + " that should be lower than Total Cost."); return false; }else if (data.coupon_type == 'F') { amout_after_discount = cart_val - data.coupon_value; } else if (data.coupon_type == 'P') { var discount_per = roundToTwo((cart_val * data.coupon_value) / 100); amout_after_discount = cart_val - discount_per; } iteamquantity = $(".product_row span[course_id="+courseidArr[i]+"][course_type^='2']").attr('iteamquantity'); amout_after_discount=(parseFloat(amout_after_discount) * parseFloat(iteamquantity)); //amout_after_discount=roundToTwo(amout_after_discount); $(".product_row span[course_id="+courseidArr[i]+"][course_type^='2'].original_price").addClass('linethrough') $(".product_row span[course_id="+courseidArr[i]+"][course_type^='2'].discounted_price").html('$'+amout_after_discount.toFixed(2)); $(".product_row span[course_id="+courseidArr[i]+"][course_type^='2'].discounted_price").attr('discountprice',amout_after_discount.toFixed(2)); continue; } } if(couponUseStatus==0){ alert('Coupon code item not available in cart'); } else { $("#coupon_code").val(''); $('#individualorall').val(1); amount_after_discount=0; $(".product_row").each(function(){ price = $(this).find('.original_price').attr('totalprice'); discount = $(this).find('.discounted_price').attr('discountprice'); if(typeof discount !== "undefined"){ amount_after_discount=parseFloat(amount_after_discount)+parseFloat(discount); }else{ amount_after_discount=parseFloat(amount_after_discount)+parseFloat(price); } }); //alert(totalprice); $('#amount').val(amount_after_discount); coupon_code_hidden=$('#coupon_code_hidden').val(); if(coupon_code_hidden==''){ coupon_code_hidden=coupon_code; }else{ coupon_code_hidden=coupon_code_hidden+","+coupon_code; } $('#coupon_code_hidden').val(coupon_code_hidden); $('.all.discounted_price').html('$' + amount_after_discount.toFixed(2));/*.toFixed(2)*/ /* $("#validate_coupon").hide(); $("#remove_coupon").show(); $("#coupon_code").attr('disabled','disabled'); //#122626 */ $("#coupon_code").val(''); $(".all.original_price").addClass('linethrough'); checkPaymentAmountZeroOrNot(amount_after_discount) } } else { individualorall=$('#individualorall').val(); if(individualorall == 1 && individualorall != ''){ alert('cart specific Coupon not allowed'); return false; } var cart_val = $.trim($('#total_amount').val()); var amout_after_discount = cart_val; if (parseInt(cart_val) < parseInt(data.coupon_value) && data.coupon_type == 'F') { alert("Coupon Value is $" + data.coupon_value + " that should be lower than Total Cost."); return false; }else if (data.coupon_type == 'F') { amout_after_discount = cart_val - data.coupon_value; } else if (data.coupon_type == 'P') { var discount_per = (cart_val * data.coupon_value) / 100; amout_after_discount = cart_val - discount_per; } amout_after_discount=roundToTwo(amout_after_discount); $('#amount').val(amout_after_discount); $('#coupon_code_hidden').val(coupon_code); $('.all.discounted_price').html('$' + amout_after_discount.toFixed(2));/*.toFixed(2)*/ $("#validate_coupon").hide(); $("#remove_coupon").show(); $("#coupon_code").attr('disabled','disabled');//#122626 $("#coupon_code").val(''); $(".all.original_price").addClass('linethrough'); checkPaymentAmountZeroOrNot(amout_after_discount) $('#individualorall').val(0); return true; } } function checkPaymentAmountZeroOrNot(amount_after_discount){ if(amount_after_discount==0){ $('#submitid').val('Submit'); $('#carddetail').addClass('paymentboxdisable'); $('#cardno1').addClass('paymentboxdisable'); $('#expdate1').addClass('paymentboxdisable'); $('#cardcode1').addClass('paymentboxdisable'); $('#pay_pal').val('Submit'); $('#payplalog').addClass('paymentboxdisable'); $('#payplalog').hide(); }else{ $('#submitid').val('pay'); $('#carddetail').removeClass('paymentboxdisable'); $('#carddetail').removeClass('paymentboxdisable'); $('#carddetail').removeClass('paymentboxdisable'); $('#carddetail').removeClass('paymentboxdisable'); $('#pay_pal').val('Pay via PayPal'); $('#payplalog').show(); $('#payplalog').removeClass('paymentboxdisable'); } } $("#remove_coupon").click(function () { removeCouponCode(); }); function removeCouponCode() { var cart_val = $.trim($('#total_amount').val()); checkPaymentAmountZeroOrNot(1); $('#amount').val(cart_val); $('#coupon_code_hidden').val(''); $('#coupon_code').val(''); $('.discounted_price').html(''); $("#validate_coupon").show(); $("#remove_coupon").hide(); $("#coupon_code").removeAttr('disabled');//#122626 $(".original_price").removeClass('linethrough'); $('#coupon_code_hidden').val(); $('#individualorall').val(''); $.ajax({ type: "post", url : wwwroot+'/cart/cart_ajax.php?action=unsetCouponCodeSession', dataType:'json', success:function(data1) { } }); } function setCouponCodeSession() { var coupon_code = $('#coupon_code_hidden').val(); var revised_prise = $('#amount').val(); $.ajax({ type: "post", url : wwwroot+'/cart/cart_ajax.php?action=setCouponCodeSession', data:{couponCode:coupon_code,revised_prise:revised_prise}, dataType:'json', success:function(data1) { } }); } // end coupon /* $(".update-cart").click(function(){ var courseId = $(this).attr('cid'); var newQuantity = parseInt($(this).parent().find('.quantity').val()); var currCartCount = parseInt($(".cart_count").html()); var quantityhidVal = parseInt($(this).parent().find('.quantity-hidden').val()); if(newQuantity == '' || newQuantity == '0' || newQuantity == 0){ $(this).parent().find('.quantity').val(quantityhidVal); alert("Please enter the course quantity."); return false; } if(newQuantity>maxLicense && loggedinUserRole != adminRole){ $(this).parent().find('.quantity').val(quantityhidVal); $(this).parent().find('.quantity').focus(); alert("For Purchases over 100 Users, Please Contact us directly: Maria Meyers at: (212) 951-7302 or mmeyers@redatashield.com."); return false; } var newCartCount = currCartCount + newQuantity; newCartCount = newCartCount - quantityhidVal; var curr_arr = {}; arr[courseId] = newQuantity; curr_arr[courseId] = newQuantity; updateCartCount(); updateToCart(curr_arr); $.ajax({ type: "post", url: wwwroot+'/cart/cart_ajax.php?action=getCoursePrice', data: { courseId: courseId, userDepartment: userDepartment, userId: userId, quantity: newQuantity, sesskey: sesskey, }, dataType: 'json', success: function(data) { var couponCode = $('#coupon-applied').val(); var jsonData = $.parseJSON(data.response['data']); //alert(JSON.stringify(jsonData)); $('#quantity-hidden'+courseId).val(newQuantity); $('#unit-price'+courseId).html(number_format(jsonData.standard_1_year_price,2,'.',',')); var courseTotal1year = parseFloat(jsonData.standard_1_year_price * newQuantity); var courseTotalyear_old = parseFloat($("#field_stand_1_"+courseId).val() * quantityhidVal); var total_cart = parseFloat($("#year1_stand_total").val()); total_cart = total_cart + courseTotal1year - courseTotalyear_old; total_cart = total_cart.toFixed(2); courseTotal1year = courseTotal1year.toFixed(2); $(".cart_total").html(number_format(total_cart,2,'.',',')); var coursePrice = jsonData.standard_1_year_price; $('#course-total'+courseId).html(number_format(courseTotal1year,2,'.',',')); if(couponCode != 0 && couponCode != ''){ $(".apply-code").trigger('click'); } else { for(var i=1;i<=3;i++){ if(i == 2){ courseTotal1year = jsonData.standard_2_year_price* newQuantity; coursePrice = jsonData.standard_2_year_price; }else{ if(i == 3){ courseTotal1year = jsonData.standard_3_year_price* newQuantity; coursePrice = jsonData.standard_3_year_price; } } var pricing = coursePrice; if(jsonData.is_direct_sale == 0){ courseTotal1year = parseFloat(courseTotal1year)*i; coursePrice = coursePrice*i; var pricing = coursePrice/i; } var appendStr = "_"+i+"_"+courseId; var cart_total = parseFloat($("#year"+i+"_stand_total").val()); var course_total_stand = $("#course_total_stand"+appendStr).val(); course_total_stand = parseFloat(course_total_stand); var newCartTotal = cart_total + courseTotal1year - course_total_stand; newCartTotal = parseFloat(newCartTotal); newCartTotal = newCartTotal.toFixed(2); coursePrice = coursePrice.toFixed(2); courseTotal1year = courseTotal1year.toFixed(2); $("#label_qty"+appendStr).html(newQuantity); $("#field_qty"+appendStr).val(newQuantity); $("#label_price"+appendStr).find(".general-price").html(number_format(pricing,2,'.',',')); $("#label_price"+appendStr).find(".line-through").html(number_format(pricing,2,'.',',')); $("#field_stand"+appendStr).val(coursePrice); $("#course_total_price_div"+appendStr).find(".general-price").html(number_format(courseTotal1year,2,'.',',')); $("#course_total_price"+appendStr).val(courseTotal1year); $("#course_total_stand"+appendStr).val(courseTotal1year); $(".general-price_t"+i).html(number_format(newCartTotal,2,'.',',')); $("#year"+i+"_stand_total").val(newCartTotal); if(i == 1){ var price1year = newCartTotal; }else{ var savingsD = i*price1year - newCartTotal; $(".saving-val_"+i).html(number_format(savingsD,2,'.',',')); } } } } }); $(this).hide(); }); */ $(".coupon_code").keyup(function(e){ $(".apply-code").show(); }); $(".coupon_code").blur(function(e){ $(".apply-code").show(); }); $(".cart_list").click(function(){ cartCount = parseInt($('.cart_count').html()); //if(cartCount != 0){ if(loggedinUserRole == learnerRole){ var userId = ""; window.location.href = wwwroot+'/cart/cartview.php?user='+userId; }else{ window.location.href = wwwroot+'/cart/cartview.php'; } //} }); /* $(".apply-code").click(function(e){ var couponCode = $(this).parent().find('#coupon_code').val(); if(couponCode == '' || couponCode == 0){ var couponCode = $(this).parent().parent().find('.coupon-applied.row').find('#coupon-applied').val(); } //couponCode = 'SUN4NSNW'; if(couponCode != '' && couponCode != 0){ $.ajax({ type:"post", url:wwwroot+'/cart/cart_ajax.php?action=validatecoupon', data:{ couponCode: couponCode, userDepartment: userDepartment, userId: userId, sesskey: sesskey, }, dataType: 'json', success: function(data) { var success = data.success; var error = data.error; if(success == 1 || success == true){ var jsonData = $.parseJSON(data.response['data']); for(var i=1;i<=3;i++){ var cartTotal = 0; var s_cartTotal = 0; $.each(jsonData, function( index, value ) { courseId = value.course_id; newQuantity = value.quantity; var block_total = 0; courseTotal1year = value.preferred_1_year_price* newQuantity; s_courseTotalyear = value.standard_1_year_price* newQuantity; coursePrice = value.preferred_1_year_price; s_coursePrice = value.standard_1_year_price; if(i == 2){ courseTotal1year = value.preferred_2_year_price* newQuantity; coursePrice = value.preferred_2_year_price; s_courseTotalyear = value.standard_2_year_price* newQuantity; s_coursePrice = value.standard_2_year_price; }else{ if(i == 3){ courseTotal1year = value.preferred_3_year_price* newQuantity; coursePrice = value.preferred_3_year_price; s_courseTotalyear = value.standard_3_year_price* newQuantity; s_coursePrice = value.standard_3_year_price; } } var pricing = coursePrice; var pricingthrough = s_coursePrice; if(value.is_direct_sale == 0 || value.is_direct_sale == '0'){ courseTotal1year = parseFloat(courseTotal1year)*i; coursePrice = coursePrice*i; s_courseTotalyear = s_courseTotalyear*i; pricingthrough = s_coursePrice*i; var pricing = coursePrice/i; } coursePrice = parseFloat(coursePrice); s_coursePrice = parseFloat(s_coursePrice); courseTotal1year = parseFloat(courseTotal1year); s_courseTotalyear = parseFloat(s_courseTotalyear); cartTotal += parseFloat(courseTotal1year); s_cartTotal += parseFloat(s_courseTotalyear); var appendStr = "_"+i+"_"+courseId; var cart_total = parseFloat($("#year"+i+"_stand_total").val()); coursePrice = coursePrice.toFixed(2); courseTotal1year = courseTotal1year.toFixed(2); cart_total = cart_total.toFixed(2); s_courseTotalyear = s_courseTotalyear.toFixed(2); s_coursePrice = s_coursePrice.toFixed(2); $("#label_price"+appendStr).find(".general-price").html(number_format(pricing,2,'.',',')); $("#label_price"+appendStr).find(".line-through").html(number_format(pricingthrough,2,'.',',')).show(); $("#course_total_price_div"+appendStr).find(".general-price").html(number_format(courseTotal1year,2,'.',',')); //$("#course_total_price_div"+appendStr).find(".line-through").html(s_courseTotalyear).show(); $(".year"+i+"-through").html(cart_total).show(); $("#label_qty"+appendStr).html(newQuantity); $("#field_qty"+appendStr).val(newQuantity); $("#course_total_stand"+appendStr).val(s_courseTotalyear); $("#course_total_pref"+appendStr).val(courseTotal1year); $("#field_stand"+appendStr).val(s_coursePrice); $("#field_pref"+appendStr).val(coursePrice); }); cartTotal = cartTotal.toFixed(2); s_cartTotal = s_cartTotal.toFixed(2); $(".general-price_t"+i).html(number_format(cartTotal,2,'.',',')); $("#year"+i+"_pref_total").val(cartTotal); $("#year"+i+"_stand_total").val(s_cartTotal); $(".year"+i+"-through").html(number_format(s_cartTotal,2,'.',',')); if(i == 1){ var price1year = cartTotal; }else{ var savingsD = i*price1year - cartTotal; $(".saving-val_"+i).html(number_format(savingsD,2,'.',',')); } } $(".course-data").find(".line-through").show(); $("#coupon_code").hide(); $("#coupon-applied-span").html(couponCode); $('#coupon-applied').val(couponCode); $(".apply-code").hide(); $(".coupon-applied").show(); }else{ alert(data.response['err_msg']); } } }); }else{ alert(""); } }); */ $(document).on("click",".another-code",function(){ $(".coupon-applied").hide(); $('#coupon_code').val(''); $('#coupon_code').show(); $(".apply-code").show(); }); $(document).on("click",".remove-code",function(){ $.ajax({ type: "post", url: wwwroot+'/cart/cart_ajax.php?action=removecoupon', data: { userDepartment: userDepartment, userId: userId, sesskey: sesskey, }, dataType: 'json', success: function(data) { location.reload();	} }); }); $(document).on("click","#checkout",function(){ window.location.href = wwwroot+'/cart/checkout.php'; }); $(document).on("click",".selection-button",function(){ $(".selection-button").val('select'); $(".selection-button").removeClass('selected-button'); $(this).val('selected'); $("#year-sel").val($(this).attr('rel')); $(this).addClass('selected-button'); }); $('.price_admin').keyup(function(e){ // Allow: tab, escape, enter if ($.inArray(e.keyCode, [9, 27, 13]) !== -1 || // Allow: Ctrl+A, Command+A (e.keyCode == 65 && ( e.ctrlKey === true || e.metaKey === true ) ) || // Allow: home, end, left, right, down, up (e.keyCode >= 35 && e.keyCode <= 40)) { // let it happen, don't do anything return; } if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) { e.preventDefault(); } var quantityOriginal = $(this).parent().find('.price-hidden').val(); if(quantityOriginal != $(this).val()){ $(this).parent().find('.update-price').show(); }else{ $(this).parent().find('.update-price').hide(); } $(this).focus(); }); /* $(".update-price").click(function(){ var courseId = $(this).attr('cid'); var directSale = $(this).attr('dirS'); var newPrice = parseFloat($(this).parent().find('.price_admin').val()); var oldPrice = parseFloat($(this).parent().find('.price-hidden').val()); var newQuantity = $('#quantity-hidden'+courseId).val(); $.ajax({ type: "post", url: wwwroot+'/cart/cart_ajax.php?action=updatePrice', data: { renew: '0', courseId: courseId, userDepartment: userDepartment, userId: userId, newPrice: newPrice, sesskey: sesskey, }, dataType: 'json', success: function(data) { for(var i=1;i<=3;i++){ var s_cartTotal = parseFloat($("#year"+i+"_stand_total").val()); var cartTotal = $("#year"+i+"_pref_total").val(); var block_total = 0; var appendStr = "_"+i+"_"+courseId; standard_year_price = $('#field_stand'+appendStr).val(); pre_year_price = parseFloat($('#field_pref'+appendStr).val()); pre_year_price_total = pre_year_price* newQuantity; if(directSale == 1 || directSale == '1' || directSale == "1"){ preferred_year_price = newPrice; }else{ preferred_year_price = newPrice*i; } courseTotal1year = preferred_year_price* newQuantity; coursePrice = parseFloat(preferred_year_price); s_courseTotalyear = standard_year_price* newQuantity; s_coursePrice = parseFloat(standard_year_price); cartTotal = cartTotal - pre_year_price_total; courseTotal1year = parseFloat(courseTotal1year); s_courseTotalyear = parseFloat(s_courseTotalyear); cartTotal += parseFloat(courseTotal1year); //s_cartTotal += parseFloat(s_courseTotalyear); var cart_total = parseFloat($("#year"+i+"_stand_total").val()); cartTotal = cartTotal.toFixed(2); s_cartTotal = s_cartTotal.toFixed(2); coursePrice = coursePrice.toFixed(2); s_coursePrice = s_coursePrice.toFixed(2); courseTotal1year = courseTotal1year.toFixed(2); s_courseTotalyear = s_courseTotalyear.toFixed(2); cart_total = cart_total.toFixed(2); $("#label_price"+appendStr).find(".general-price").html(coursePrice/i); //$("#label_price"+appendStr).find(".line-through").html(s_coursePrice).show(); $("#course_total_price_div"+appendStr).find(".general-price").html(number_format(courseTotal1year,2,'.',',')); $("#course_total_price_div"+appendStr).find(".line-through").html(number_format(s_courseTotalyear,2,'.',',')).show(); $(".year"+i+"-through").html(cart_total).show(); $("#label_qty"+appendStr).html(newQuantity); $("#field_qty"+appendStr).val(newQuantity); $("#course_total_stand"+appendStr).val(s_courseTotalyear); $("#course_total_pref"+appendStr).val(courseTotal1year); $("#field_stand"+appendStr).val(s_coursePrice); $("#field_pref"+appendStr).val(coursePrice); $(".general-price_t"+i).html(cartTotal); $("#year"+i+"_pref_total").val(cartTotal); $("#year"+i+"_stand_total").val(s_cartTotal); $(".year"+i+"-through").html(s_cartTotal); if(i == 1){ var price1year = cartTotal; }else{ var savingsD = i*price1year - cartTotal; $(".saving-val_"+i).html(number_format(savingsD,2,'.',',')); } } } }); $(this).hide(); }); */ }); function number_format(number, decimals, dec_point, thousands_sep) { number = (number + '').replace(/[^0-9+\-Ee.]/g, ''); var n = !isFinite(+number) ? 0 : +number, prec = !isFinite(+decimals) ? 0 : Math.abs(decimals), sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep, dec = (typeof dec_point === 'undefined') ? '.' : dec_point, s = '', toFixedFix = function(n, prec) { var k = Math.pow(10, prec); return (Math.round(n * k) / k).toFixed(prec); }; // Fix for IE parseFloat(0.55).toFixed(0) = 0; s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.'); if(s[0].length > 3) { s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep); } if ((s[1] || '').length < prec) { s[1] = s[1] || ''; s[1] += new Array(prec - s[1].length + 1).join('0'); } return '$'+s.join(dec); } // unuse function $('.list-container .quantity,.grid-container .quantity,.cart_quantity,.dec_quantity').keydown(function(e){ //console.log($(this).attr('id')+" "+$(this).val()); // Allow: backspace, delete, tab, escape, enter if($.inArray(e.keyCode, [46, 8, 9, 27, 13]) !== -1 || // Allow: Ctrl+A, Command+A (e.keyCode == 65 && ( e.ctrlKey === true || e.metaKey === true ) ) || // Allow: home, end, left, right, down, up (e.keyCode >= 35 && e.keyCode <= 40)) { // let it happen, don't do anything return; } // Ensure that it is a number and stop the keypress if(parseInt($(this).val().length)>=4) { e.preventDefault(); } if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) { e.preventDefault(); } }); $('.list-container .quantity,.grid-container .quantity').keyup(function(e){ var classpernt = $(this).attr('class').split(' '); $('.list-container #list_quantity'+classpernt[1]+',.grid-container #grid_quantity'+classpernt[1]).val($(this).val()); }); /* $('.seatlimtfunction').keydown(function(){ $(this).attr('recent',$(this).val()); }); */ $('.seatlimtfunction').keyup(getseatLimt); //$('.seatlimtfunction').change(getseatLimt); function getseatLimt(cguid){ cguid=$(this).attr('cguid'); recentseat=$(this).attr('recent'); seatvalue=$(this).val(); $('.'+cguid).removeClass('errorCLass'); $.ajax({ type:"post", url :wwwroot+'/cart/cart_ajax.php?action=get_seatLimt', data:{ courseid:cguid, }, dataType:'json', success :function(data1) { seatCount=JSON.parse(data1.response.data); //alert(seatCount); if(seatCount < seatvalue && seatCount!='') { $('.'+cguid).parent().find('.inline_content').remove(); $('.'+cguid).parent().append('
x Sorry but the class has been sold out or the quantity requested is no more available. Please contact admin (info@cannonedu.com) for any further support.