<% include ../styles.ejs %> <%- include ../header.ejs %>
    <% var grandTotal = 0; var course_submonth = 0; var course_submonthdiscount = 0; var course_subyear = 0; var course_subyeardiscount = 0; var installment_interest = 0; if(cartsummery.length > 0){ for(var i=0; i < cartsummery.length;i++){ %>
  • <%- cartsummery[i].course.name %>

    <% var coursefee = cartsummery[i].course.course_fee; if(cartsummery[i].course.course_discount!=0){ coursefee = cartsummery[i].course.course_fee - (cartsummery[i].course.course_fee * cartsummery[i].course.course_discount)/100; } grandTotal +=coursefee; course_submonth += cartsummery[i].course.subcribepermonth; course_submonthdiscount += cartsummery[i].course.subcribepermonthdiscount; course_subyear += cartsummery[i].course.subcribeperyear; course_subyeardiscount += cartsummery[i].course.subcribeperyeardiscount; installment_interest += cartsummery[i].course.installmentinterest; %>

    $<%= coursefee %> <% if(cartsummery[i].course.course_discount!=0){ %> $<%= cartsummery[i].course.course_fee %> <% } %>

  • <% } } if(bundlecart && bundlecart.length > 0){ for(var b=0; b< bundlecart.length; b++){ %>
  • <%- bundlecart[b].bundlecourse.bundlecourse_title %>

    <% var coursefee = bundlecart[b].bundlecourse.bundlecourse_price; if(bundlecart[b].bundlecourse.discount!=0){ coursefee = bundlecart[b].bundlecourse.bundlecourse_price - (bundlecart[b].bundlecourse.bundlecourse_price * bundlecart[b].bundlecourse.discount)/100; } grandTotal +=coursefee; course_submonth += bundlecart[b].bundlecourse.subcribepermonth; course_submonthdiscount += bundlecart[b].bundlecourse.subcribepermonthdiscount; course_subyear += bundlecart[b].bundlecourse.subcribeperyear; course_subyeardiscount += bundlecart[b].bundlecourse.subcribeperyeardiscount; installment_interest += bundlecart[b].bundlecourse.installmentinterest; %>

    $<%= coursefee %> <% if(bundlecart[b].bundlecourse.discount!=0){ %> $<%= bundlecart[b].bundlecourse.bundlecourse_price %> <% } %>

  • <% } } if(mytest && mytest.length > 0){ for(var t=0; t< mytest.length; t++){ %>
  • Student Test - <%- mytest[t].coursetest.name %>

    <% var testfee = mytest[t].coursetest.testprice; if(mytest[t].coursetest.discount!=0){ testfee = mytest[t].coursetest.testprice - (mytest[t].coursetest.testprice * mytest[t].coursetest.testdiscount)/100; } grandTotal +=testfee; %>

    $<%= testfee %> <% if(mytest[t].coursetest.testdiscount!=0){ %> $<%= mytest[t].coursetest.testprice %> <% } %>

  • <% } } if(certificte && certificte.length > 0){ for(var b=0; b< certificte.length; b++){ %>
  • Ceritificate for <%- certificte[b].course.name %>/<%- certificte[b].chapter.name %>

    <% var coursefee = certificte[b].chapter.certificateamount; if(certificte[b].chapter.certificatediscount!=0){ coursefee = certificte[b].chapter.certificateamount - (certificte[b].course.certificateamount * certificte[b].chapter.certificatediscount)/100; } grandTotal +=coursefee; %>

    $<%= coursefee %> <% if(certificte[b].chapter.certificatediscount!=0){ %> $<%= certificte[b].chapter.certificateamount %> <% } %>

  • <% } } if(testcertificte && testcertificte.length > 0){ for(var b=0; b< testcertificte.length; b++){ %>
  • Ceritificate for <%- testcertificte[b].coursetest.name %>

    <% var coursefee = testcertificte[b].coursetest.certificateamount; if(testcertificte[b].coursetest.certificatediscount!=0){ coursefee = testcertificte[b].coursetest.certificateamount - (testcertificte[b].coursetest.certificateamount * testcertificte[b].coursetest.certificatediscount)/100; } grandTotal +=coursefee; %>

    $<%= coursefee %> <% if(testcertificte[b].coursetest.certificatediscount!=0){ %> $<%= testcertificte[b].coursetest.certificateamount %> <% } %>

  • <% } } %>

Order confirmatiom mail sent to <%= gaippData.email %>

<% if(gaippData.billing_new !="entered"){ %>

<%= gaippData.first_name %> <%= gaippData.last_name %> <%= gaippData.mobile %>

<%= gaippData.mailing_address.line1 %>,<%= gaippData.mailing_address.city %>,<%= gaippData.mailing_address.country %> - <%= gaippData.mailing_address.zip %>

<% }else{ %>

<%= gaippData.billing_address.first_name %> <%= gaippData.billing_address.last_name %> <%= gaippData.billing_address.phone %>

<%= gaippData.billing_address.line1 %>,<%= gaippData.billing_address.city %>,<%= gaippData.billing_address.country %> - <%= gaippData.billing_address.zip %>

<% } %>

Price Details

Price $ <%= grandTotal %>

Delivery Charges Free

Amount Payable $ <%= grandTotal %>

<% include ../footer.ejs%> <% include ../scripts.ejs %>