<% include ../styles.ejs %> <%- include ../header.ejs %>

Your Cart

<% var grandTotal = 0; for(var i=0; i< cart.length; i++){ %> <% var coursefee = cart[i].course.course_fee; if(cart[i].course.course_discount!=0){ coursefee = cart[i].course.course_fee - (cart[i].course.course_fee * cart[i].course.course_discount)/100; } grandTotal +=coursefee; %> <% } if(bundlecart && bundlecart.length > 0){ for(var b=0; b< bundlecart.length; b++){ %> <% 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; %> <% } } if(mytest && mytest.length > 0){ for(var t=0; t< mytest.length; t++){ %> <% var testfee = mytest[t].coursetest.testprice; if(mytest[t].coursetest.testdiscount!=0){ testfee = mytest[t].coursetest.testprice - (mytest[t].coursetest.testprice * mytest[t].coursetest.testdiscount)/100; } grandTotal +=testfee; %> <% } } if(certificte && certificte.length > 0){ for(var c=0; c< certificte.length; c++){ %> <% var coursefee = certificte[c].chapter.certificateamount; if(certificte[c].chapter.certificatediscount!=0){ coursefee = certificte[c].chapter.certificateamount - (certificte[c].chapter.certificateamount * certificte[c].chapter.certificatediscount)/100; } grandTotal +=coursefee; %> <% } } if(testcertificte && testcertificte.length > 0){ for(var c=0; c< testcertificte.length; c++){ %> <% var coursefee = testcertificte[c].coursetest.certificateamount; if(testcertificte[c].coursetest.certificatediscount!=0){ coursefee = testcertificte[c].coursetest.certificateamount - (testcertificte[c].coursetest.certificateamount * testcertificte[c].coursetest.certificatediscount)/100; } grandTotal +=coursefee; %> <% } } %> <% if(cart.length > 0 || bundlecart.length > 0 || certificte.length > 0 || mytest.length > 0 || testcertificte.length > 0){ %> <% }else{ %> <% } %>
Course Price Remove

<%= cart[i].course.name %>

<%- cart[i].course.introduction.substring(0,300) %>
$<%= coursefee %>

<%= bundlecart[b].bundlecourse.bundlecourse_title %>

<%- bundlecart[b].bundlecourse.description.substring(0,300) %>
$<%= coursefee %>

Student Test - <%= mytest[t].coursetest.name %>

<% var desc = mytest[t].coursetest.description; var noHTML = /(<([^>]+)>)/ig; // regex for removing HTML tags var clean_desc = desc.replace(noHTML, ''); // remove all html tags %>
$<%= testfee %>

Certificate for <%= certificte[c].course.name %> / <%= certificte[c].chapter.name %>

$<%= coursefee %>

Certificate for <%= testcertificte[c].coursetest.name %>

$<%= coursefee %>
Total 1.99
Total: $<%= grandTotal %> Checkout
No Course Found
No Course Found
<% include ../footer.ejs%> <% include ../scripts.ejs %>