var products = []; products[211] = ["Advertising Funnel Setup (Checklist)", 1.5, "Empire Wave", "Setting up a successful advertising funnel involves a strategic approach to guide potential customers through distinct stages: awareness, interest, decision, and action. This checklist provides a framework to ensure you're addressing key elements at each stage, from initial brand exposure to nurturing leads and ultimately driving conversions.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[212] = ["Social Media Marketing Influence", 67, "Empire Wave", "This ebook provides a strategic framework for understanding and implementing social media marketing influence. Discover how to integrate influencer collaborations into your broader marketing efforts to reach new audiences, build trust, and drive meaningful results.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[213] = ["Affiliate Marketing School", 67, "Empire Wave", "Your journey into successful affiliate marketing starts here. The Affiliate Marketing School ebook provides a structured learning path, covering everything from the basics to more advanced techniques. Equip yourself with the knowledge to thrive in the affiliate world.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[214] = ["Cost per Action Marketing Mastery", 67, "Empire Wave", "This ebook provides a strategic guide to Cost per Action (CPA) marketing, a crucial element of performance-based advertising. Learn how to implement effective CPA strategies across various platforms to acquire valuable leads and customers while controlling your advertising costs.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[215] = ["Marketing Plan Simplified", 67, "Empire Wave", "Understand the essential components of a successful marketing plan with this concise ebook. From situation analysis to implementation and measurement, we simplify the process to help you create a focused and effective strategy.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[216] = ["Cold Email Marketing", 67, "Empire Wave", "Master the art of cold email marketing with this essential ebook. Learn proven strategies for crafting compelling emails that get opened, build rapport, and drive conversions, even when reaching out to new contacts.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[217] = ["Mastering Digital Products", 67, "Empire Wave", "Turn your ideas into income with our Mastering Digital Products ebook. Learn the essential steps to create, launch, and sell digital products that resonate with your audience and drive revenue.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[228] = ["Money Psychology in Business ", 67, "Empire Wave", "Gain a deeper understanding of how money psychology influences business decisions. This ebook delves into the emotional drivers behind financial choices, equipping you with strategies to make more informed and effective financial decisions for your business growth.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[229] = ["How To Build A Website", 67, "Empire Wave", "Your digital marketing success hinges on having a strong online presence, and that starts with a powerful website. This course isn't just about building any website; it's about creating a marketing machine that attracts customers, showcases your expertise, and acts as the central hub for all your digital efforts. Learn the essential steps to build a website that not only looks professional but also seamlessly integrates with your marketing strategies to drive real results.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[230] = ["SEO Domination", 67, "Empire Wave", "To truly succeed online, visibility is key, and dominating search engines is paramount. Our SEO Domination training equips you with advanced strategies to climb rankings and capture significant organic traffic. You'll master website optimization, keyword research, link building, and algorithm navigation, turning visitors into loyal customers.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[231] = ["Mastering Organic Traffic", 67, "Empire Wave", "Our "Mastering Organic Traffic" course will equip you with the skills to create valuable content that resonates with your audience, ranks high in search results, and naturally attracts engagement on social media. By consistently delivering valuable information, you'll build trust and authority, making your website the go-to destination for your industry.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[232] = ["Starter Bundle (2 Ebooks)", 95, "Empire Wave", "Our Starter Bundle is the ideal entry point. Get 2 courses designed to provide you with foundational knowledge and practical insights. It's the perfect way to start building your expertise and see what's possible.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[233] = ["Growth Bundle (3 Ebooks)", 97, "Empire Wave", "Accelerate your progress with our Growth Bundle! Get 3 courses strategically combined to build a more comprehensive skillset in digital marketing. This package offers a deeper dive into essential topics, empowering you to tackle more complex challenges and achieve significant growth.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[234] = ["Advanced Bundle (5 Ebooks)", 195, "Empire Wave", "Elevate your expertise to the highest level with our Advanced Bundle. Get 5 meticulously curated courses designed to provide you with a complete and sophisticated skillset in online marketing, now including the crucial element of Social Media Marketing Influence. This package is your ultimate resource for mastering complex concepts and techniques across website creation, SEO Dominance, Business Psychology, Digital Product Mastery, and leveraging social media to build influence and drive results.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[235] = ["Advanced+ Bundle (6 Ebooks)", 197, "Empire Wave", "Take your digital marketing skills to an elite level with our Advanced+ Bundle. This in-depth package includes 6 courses, providing you with a comprehensive understanding of advanced analytics and cutting-edge automation, alongside crucial areas like website creation, SEO Dominance, Business Psychology, Cold Email Marketing, Social Media Marketing Influence, and Developing a Marketing Plan Simplified. This bundle is for those committed to mastering the intricacies of digital marketing.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[236] = ["Pro Bundle (8 Ebooks)", 295, "Empire Wave", "Establish yourself as a digital marketing authority with our Pro Bundle. This extensive package provides you with 8 courses, offering unrivaled depth and breadth of knowledge across all essential digital marketing disciplines.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; products[237] = ["Complete Collection (10 Ebooks)", 297, "Empire Wave", "Transform your digital marketing skills with our Complete Collection. This comprehensive package includes all 10 courses, ensuring you gain expertise in every critical area, from foundational website creation and development to advanced SEO strategies for organic dominance and help you gain the confidence and expertise to conquer any digital challenge.", "", "By clicking the Complete Checkout button and submitting this order, I agree that my card will be charged $ __prc__ for __prdname__. I will receive a confirmation email for my purchase. If this product is not right for me, or I have any questions, contact customer service with any questions by calling 1-855-744-5416 or e-mailing support@theempirewave.com. Charges will appear on my credit card statements billed as Empire Wave. Thank you for your business."]; console.log(products); var orderedItems = []; var orderedTotQty = 0; var maxQty = 10; var shipRates = false; var handling = 0; var carturl = "cart.php"; //Funtion adds Items to Cart var addItem = function(itemId, Qty) { orderedTotQty = $.cookie('orderedTotQty'); if (!orderedTotQty) { orderedTotQty = 0; } Qty = parseInt(Qty); if(Qty > maxQty) { alert("Maximum " + maxQty + " of this product can be selected in a single order"); return false; } var order = $.cookie('order'); if (!order) { order = itemId + "-" + Qty; orderedItems[itemId] = Qty; } else { var itemExists = false; var items = order.split("|"); order = ""; for (var i = 0; i < items.length; i = i + 1) { var position = items[i].indexOf("-"); var prodId = items[i].substring(0, position); var quantity = parseInt(items[i].substring(position + 1)); if (order != "") { order += "|"; } if (prodId == itemId) { alert("Product already exist in cart"); return false; if((quantity + Qty) > maxQty) { alert("Maximum " + maxQty + " of this product can be selected in a single order"); return false; } quantity += Qty; order += prodId + "-" + quantity; itemExists = true; } else { order += prodId + "-" + quantity; } orderedItems[prodId] = quantity; } if (!itemExists) { if (order != "") { order += "|"; } order += itemId + "-" + Qty; orderedItems[itemId] = Qty; } } orderedTotQty = parseInt(orderedTotQty); orderedTotQty += Qty; $('.cartqty').html(orderedTotQty); $.cookie('order', order); $.cookie('orderedTotQty', orderedTotQty); var url = window.location.pathname; var filename = url.substring(url.lastIndexOf('/') + 1); if (filename == carturl) { showCart(false, 'add', itemId); } else { $(location).attr('href', carturl); } }; //Funtion decrements Items to Cart var removeItem = function(itemId, Qty) { Qty = parseInt(Qty); var order = $.cookie('order'); if (!order) { orderedItems[itemId] = 0; refreshRow(itemId); } else { var items = order.split("|"); order = ""; for (var i = 0; i < items.length; i = i + 1) { var position = items[i].indexOf("-"); var prodId = items[i].substring(0, position); var quantity = parseInt(items[i].substring(position + 1)); if (prodId == itemId) { quantity -= Qty; if (quantity > 0) { if (order != "") { order += "|"; } order += prodId + "-" + quantity; } itemExists = true; orderedItems[prodId] = quantity; refreshRow(itemId); } else { if (order != "") { order += "|"; } order += prodId + "-" + quantity; orderedItems[prodId] = quantity; } } } orderedTotQty -= Qty; $('.cartqty').html(orderedTotQty); $.cookie('order', order); $.cookie('orderedTotQty', orderedTotQty); var url = window.location.pathname; var filename = url.substring(url.lastIndexOf('/') + 1); if (filename == carturl) { showCart(false, 'remove', itemId); } else { $(location).attr('href', carturl); } }; //Funtion sets Item quantity on the Cart var setItemQty = function(itemId, Qty) { Qty = parseInt(Qty); if(Qty > maxQty || Qty < 0) { return false; } var order = $.cookie('order'); orderedTotQty = 0; if (!order) { orderedItems[itemId] = 0; } else { var items = order.split("|"); order = ""; for (var i = 0; i < items.length; i = i + 1) { var position = items[i].indexOf("-"); var prodId = items[i].substring(0, position); var quantity = parseInt(items[i].substring(position + 1)); if (prodId == itemId) { quantity = Qty; if (order != "") { order += "|"; } order += prodId + "-" + quantity; itemExists = true; } else { if (order != "") { order += "|"; } order += prodId + "-" + quantity; } orderedItems[prodId] = quantity; orderedTotQty += quantity; } } $('.cartqty').html(orderedTotQty); $.cookie('order', order); $.cookie('orderedTotQty', orderedTotQty); var url = window.location.pathname; var filename = url.substring(url.lastIndexOf('/') + 1); if (filename == carturl) { showCart(false, 'set', itemId); } else { $(location).attr('href', carturl); } }; var removeRowItem = function(itemId) { var order = $.cookie('order'); if (!order) { orderedTotQty = 0; } else { var items = order.split("|"); order = ""; orderedTotQty = 0; orderedItems = null; orderedItems = new Array(); for (var i = 0; i < items.length; i = i + 1) { var position = items[i].indexOf("-"); var prodId = items[i].substring(0, position); var quantity = parseInt(items[i].substring(position + 1)); if (prodId == itemId) { } else { if (order != "") { order += "|"; } order += prodId + "-" + quantity; orderedTotQty += quantity; orderedItems[prodId] = quantity; } } } if($('#prow-' + itemId).length == 1) { $('#prow-' + itemId).remove(); } $.cookie('order', order); $.cookie('orderedTotQty', orderedTotQty); showCart(false, 'removerow', itemId); qtysum = $('.cart-box2 .qtybox').length; $('.tophdr-list3 .span1').html("( "+ qtysum + ")"); }; //Emptying the cart var emptyCart = function() { var order = $.cookie('order'); order = ""; orderedTotQty = 0; orderedItems = null; orderedItems = new Array(); $.cookie('order', order); $.cookie('orderedTotQty', orderedTotQty); if($('[id^="prow-"]').length > 0) { $('[id^="prow-"]').each(function(){ $(this).remove(); }); } showCart(false, 'empty'); qtysum = $('.cart-box2 .qtybox').length; $('.tophdr-list3 .span1').html("("+ qtysum + ")"); }; //Displaying the cart items & calculations function showTotalPrice() { var cartHtml = ""; var total = 0; var shipping = 0; var grand_total = 0; var sub_total = 0; var shippingType = ''; var order = $.cookie('order'); orderedTotQty = $.cookie('orderedTotQty'); if($('#shippingCountry').val() == '') { shippingType = ''; } else if($('#shippingCountry').val() == 'US') { shippingType = 'US'; } else { shippingType = 'INTERNATIONAL'; } if (!order) { orderedTotQty = 0; } else { var items = order.split("|"); if(shipRates) { shipping = shipRates * 1.0; } for (var i = 0; i < items.length; i = i + 1) { var position = items[i].indexOf("-"); var prodId = items[i].substring(0, position); var quantity = parseInt(items[i].substring(position + 1)); var prodType = products[prodId][6]; if (prodId != "" && quantity > 0) { if(prodType == "access"){ sub_total = round((quantity * products[prodId][1]), 2); }else{ sub_total = round((products[prodId][1]), 2); } //sub_total_gbp = round((quantity * products[prodId][6]), 2); if(prodType == "access"){ total += (quantity * products[prodId][1]); }else{ total += (products[prodId][1]); } //total += (quantity * products[prodId][1]); //total_gbp +=(quantity * products[prodId][6]) } } total = round(total, 2); } var snh = shipping + handling; //if(shipping == 0) { // snh = shipping; //} console.log(snh); grand_total = total + snh; $('#total-price').html('$' + total.toFixed(2)); $('#shipping-price').html('$' + snh.toFixed(2)); $('#grand-total').html('$' + total.toFixed(2)); }; // Refresh row content with updated quantity / price for a product function refreshRow(pid) { pid = parseInt(pid); quantity = orderedItems[pid]; sub_total = round((quantity * products[pid][1]), 2); $('#prow-' + pid + ' .tot-price').html('$' + sub_total.toFixed(2) + ' USD'); $('#prow-' + pid + ' .qtybox').val(quantity); $('#prow-' + pid + ' .dispqty').html(quantity); } function replaceAllStr(str, find, rstr) { //return str.replace(new RegExp(escapeRegExp(find), 'g'), replace); //return str.replace(/find/g, '\\$&'); return str.replace(new RegExp(find, "g"), rstr); } //Displaying the cart items & calculations function showCart(showFullCart, act, itm) { var cartHtml = ""; var order = $.cookie('order'); orderedTotQty = $.cookie('orderedTotQty'); if (!order) { orderedTotQty = 0; if($('[id^="prow-"]').length == 0) { $("#cartBox").html("

You have not selected any product...

  Browse Products"); } showTotalPrice(); return false; } else { var items = order.split("|"); var total = 0; var shipping = 0; var grand_total = 0; orderedTotQty = parseInt(orderedTotQty); //console.log('showFullCart'); //console.log(showFullCart); if (typeof showFullCart === "undefined") { return false; } else if(showFullCart == false) { if ((typeof act !== "undefined") && (typeof itm !== "undefined")) { if((act == 'add' || act == 'set' || act == 'remove') && itm > 0) { refreshRow(itm); } else if(act == 'removerow' && itm > 0) { itm = parseInt(itm); } } showTotalPrice(); return false; } orderedItems = null; orderedItems = new Array(); cartHtml += "
Order Summary Price
"; cartHtml += "
Order Summary QtyUnit PriceTotal
"; var total = 0; var term_htm =''; for (var i = 0; i < items.length; i = i + 1) { var position = items[i].indexOf("-"); var prodId = items[i].substring(0, position); var quantity = parseInt(items[i].substring(position + 1)); var prodType = products[prodId][6]; if (prodId != "" && quantity > 0) { orderedItems[prodId] = quantity; if(prodType == "access"){ var sub_total = round((quantity * products[prodId][1]), 2); }else{ var sub_total = round((products[prodId][1]), 2); } //var sub_total_gbp = round((quantity * products[prodId][6]), 2); total += sub_total; //total_gbp += sub_total_gbp; termTxt = products[prodId][5]; termTxt = replaceAllStr(termTxt, ' __prc__', products[prodId][1].toFixed(2)); termTxt = replaceAllStr(termTxt, '__prdname__', products[prodId][0]); termTxt = replaceAllStr(termTxt, '__prdqnty__', products[prodId][5]); term_htm += '' + termTxt + ''; cartHtml += "
" + "
" + "

" + products[prodId][4] + " "+ quantity +"

" + "
" + "

" + products[prodId][0] + "

" + "

Qty: "+ quantity +"

" + "

$" + sub_total.toFixed(2) + "

" + "
" + "
" + "" + ""+ "
"+ quantity +"
" + "
$" + (products[prodId][1]).toFixed(2) + "
" + "
" } } cartHtml += "
"; cartHtml += "
" +"
" +"
    " +"
  • Sub Total: $" + total.toFixed(2) + "
  • " +"
  • Sales Tax: $0.00
  • " +"
  • Total: $" + total.toFixed(2) + "
  • " +"
" +"
" +"
"; cartHtml += "
" cartHtml += "

These courses are delivered in a digital format. No physical product is shipped.

" if (cartHtml != "") { $("#cartBox").html(cartHtml); $(".cart-box").html(cartHtml); $(".trm_1").html(term_htm); } else { $("#cartBox").html(" Loading..."); $(".cart-box").html('You have not selected any product... '); } return false; } }; var round = function(value, decimals) { return Number(Math.round(value + 'e' + decimals) + 'e-' + decimals); };