var products = []; products[211] = ["Advertising Funnel Setup (Checklist)", 1.5, "PB Labs", "Master the art of converting prospects into paying customers with our Advertising Funnel Optimization Checklist! This essential guide breaks down each critical stage—from grabbing attention with compelling ads to nurturing leads with targeted content and closing sales with irresistible offers. Discover how to create a seamless journey that builds trust, addresses objections, and maximizes conversions at every touchpoint.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[212] = ["6-Figure Digital Products", 67, "PB Labs", "Unlock the secrets to a 6-figure online business with our digital product mastery course! Learn how to create, market, and sell profitable information products that generate passive income 24/7 – no inventory, no shipping, just scalable digital sales. While success requires focused effort, our proven blueprint shows you how to turn your knowledge into recurring revenue streams. This is your gateway to building a sustainable, location-independent business with unlimited earning potential.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[213] = ["Digital Customer Service Excellence", 67, "PB Labs", "Master the art of exceptional digital customer service with our comprehensive online course ebook! Learn proven strategies to engage customers across live chat, email, and social media—turning interactions into loyalty-building experiences. Discover how to resolve issues efficiently, personalize support, and use automation tools without losing the human touch. ", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[214] = ["Ecommerce With Shopify", 67, "PB Labs", "Launch and grow a profitable online store with our Ecommerce With Shopify course ebook! Learn step-by-step how to set up your Shopify store, optimize product listings, drive traffic with digital marketing, and convert visitors into loyal customers. Packed with proven strategies for SEO, paid ads, email marketing, and conversion optimization.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[215] = ["Facebook Ad Mastery", 67, "PB Labs", "Unlock the power of paid advertising with our Facebook Ad Mastery course ebook! Learn step-by-step how to create high-converting campaigns, target the right audiences, and optimize your ads for maximum ROI. From beginner basics to advanced scaling strategies, this guide reveals the exact frameworks used by top marketers to generate consistent leads and sales. ", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[216] = ["Google Search Ads Unlocked", 67, "PB Labs", "Dominate search engine results and drive high-quality leads with Google Search Ads Unlocked—your ultimate guide to profitable paid search campaigns! Learn how to structure winning ad groups, laser-target high-intent keywords, and craft irresistible ad copy that converts. This ebook reveals advanced bidding strategies, quality score hacks, and budget optimization techniques used by top-performing marketers.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[217] = ["How to Find Niche & Stand Out", 67, "PB Labs", "Discover the secrets to finding a profitable niche and building a standout brand with our How to Find Your Niche & Stand Out course ebook! Learn step-by-step how to identify underserved markets, validate demand, and position yourself as the go-to expert even in crowded industries.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[228] = ["Instagram Ads Success", 67, "PB Labs", "Turn Instagram into your profit powerhouse with Instagram Ads Success the ultimate guide to creating scroll-stopping ads that convert! Learn how to craft visually compelling campaigns, laser-target your dream customers, and optimize for maximum ROI. This ebook reveals the exact strategies top brands use to drive sales, from story ads that engage to carousel ads that educate and convert. ", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[229] = ["How To Build A Website", 67, "PB Labs", "Whether you're launching a blog, online store, or business site, this step-by-step guide walks you through choosing the right platform, designing for maximum impact, and optimizing for speed and SEO. Learn insider tips for selecting templates, crafting compelling content, and setting up essential plugins to make your site both beautiful and functional. ", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[230] = ["SEO Domination", 67, "PB Labs", "Crush the competition and dominate search rankings with SEO Domination—your ultimate guide to unlocking organic traffic at scale! This power-packed ebook reveals the same advanced strategies top agencies use to skyrocket websites to page one. Master keyword research, on-page optimization, and backlink building while avoiding costly penalties.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[231] = ["Affiliate Marketing School", 67, "PB Labs", "Discover how to choose profitable niches, promote high-converting products, and build a loyal audience that trusts your recommendations. This ebook reveals the exact strategies top affiliates use to generate consistent sales through SEO, content marketing, and social media—without needing your own product. Turn your influence into income and create a scalable online business with unlimited earning potential!", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[232] = ["Starter Bundle (2 Ebooks)", 95, "PB Labs", "Begin your journey with our carefully curated bundle featuring two essential courses: 6-Figure Digital Products and Digital Customer Service Excellence. Gain foundational knowledge and practical insights to kickstart your expertise and witness the potential of digital skills firsthand.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[233] = ["Growth Bundle (3 Ebooks)", 97, "PB Labs", "Supercharge Your Digital Marketing with Our Growth Bundle. Dive deeper into essential digital marketing topics, equipping yourself to handle complex challenges and achieve significant growth in your online endeavors.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[234] = ["Advanced Bundle (5 Ebooks)", 195, "PB Labs", "Unlock elite digital mastery with our Advanced Bundle. This comprehensive collection brings together our five most advanced ebooks, providing you with a complete blueprint for achieving online dominance and maximizing your revenue potential.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[235] = ["Advanced+ Bundle (6 Ebooks)", 197, "PB Labs", "Dominate every corner of digital marketing with our Advanced+ Bundle—The ultimate 6-in-1 success system! This elite collection arms you with battle-tested strategies across all critical profit channels:", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[236] = ["Pro Bundle (8 Ebooks)", 295, "PB Labs", "Become an unstoppable digital force with our Pro Bundle—The ultimate 8-in-1 empire building system! This all-encompassing collection gives you every weapon you need to dominate online business:", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. Thank you for your business."]; products[237] = ["Complete Collection (10 Ebooks)", 297, "PB Labs", "Master the entire digital landscape with our Complete Collection. This comprehensive package gives you access to all 10 courses, ensuring you build expertise in every critical area, from website fundamentals to advanced SEO. Gain the confidence and skills to conquer any digital challenge and achieve online success.", "", "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-833-860-6011 or e-mailing support@pushblabs.com. Charges will appear on my credit card statements as PB Labs. 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); };