var products = [];
products[210] = ["Facial Makeup Remover", 1.95, "Try MBFL Brands", "Effortlessly cleanse your skin with our gentle Facial Makeup Remover. Designed to remove even the most stubborn makeup, it leaves your skin feeling fresh, clean, and hydrated. Suitable for all skin types, this formula is free from harsh chemicals, ensuring a soothing experience without irritation.", "", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[211] = ["Honeycomb Bath Scrub", 1.89, "Try MBFL Brands", "This luxurious scrub combines the natural exfoliating power of honeycomb with nourishing ingredients to leave your skin feeling smooth and rejuvenated. Gently buffs away dead skin cells, revealing a brighter, softer complexion. Ideal for all skin types, its sweet, soothing scent turns every bath into a spa-like experience.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[212] = ["Curly Mink Eyelashes", 1.99, "Try MBFL Brands", "Enhance your eyes with our Curly Mink Eyelashes. Crafted from high-quality mink fur, these lashes provide a natural yet glamorous look with their perfect curl and luxurious volume. Lightweight and comfortable, they are easy to apply and reusable, making them ideal for both everyday wear and special occasions. ", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[213] = ["Silicone Scalp Massager", 12.49, "Try MBFL Brands", "Designed with soft, flexible bristles, this massager gently stimulates your scalp to promote circulation and encourage healthy hair growth. Perfect for use in the shower or on dry hair, it helps to evenly distribute shampoo or conditioner, ensuring a deep clean while providing a relaxing massage. ", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[214] = ["12 Pcs Makeup Brush Set", 49.99, "Try MBFL Brands", "This comprehensive collection includes brushes for foundation, powder, blush, eyeshadow, and more, ensuring a flawless application every time. Crafted with soft, high-quality synthetic bristles, each brush is designed for precision and ease of use. ", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[215] = ["Artificial Fingernails", 59.99, "Try MBFL Brands", "Designed for a natural look and comfortable fit, these nails are perfect for adding instant length and style. Easy to apply and durable, they come in various shapes, sizes, and designs to suit any occasion. Our Artificial Fingernails provide a flawless finish that lasts. Ideal for both at-home use and professional salons, achieve salon-quality nails effortlessly.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[216] = ["Travel Cosmetic Mirror", 69.99, "Try MBFL Brands", "Compact and lightweight, this mirror easily fits into your purse or travel bag, ensuring you always have a perfect reflection at hand. Featuring a sleek, foldable design with a protective cover, it opens to reveal a clear, distortion-free mirror. Ideal for touch-ups, makeup application, or quick checks throughout the day, this essential accessory combines convenience with elegance, making it a must-have for every traveler.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[217] = ["Facial Massager Machine ", 119.99, "Try MBFL Brands", "This advanced device combines gentle vibrations with innovative technology to enhance blood circulation, reduce puffiness, and promote a radiant complexion. Suitable for all skin types, it features multiple intensity settings for a customized massage experience. Compact and easy to use, itâs perfect for incorporating into your daily skincare routine, helping to lift and tone your facial muscles while delivering a relaxing, spa-like treatment at home.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[218] = ["Eye Massager", 159.99, "Try MBFL Brands", "Designed to alleviate eye strain, reduce dark circles, and improve blood circulation, this device uses gentle vibrations and soothing heat therapy to rejuvenate tired eyes. With adjustable settings, it offers a personalized massage experience to suit your needs. Compact and portable, it's perfect for use at home, in the office, or while traveling. Treat your eyes to the comfort they deserve with our innovative Eye Massager.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[219] = ["Wax Heater Machine", 189.99, "Try MBFL Brands", "Designed for convenience and efficiency, this compact device quickly heats wax to the perfect temperature for smooth and effective hair removal. Suitable for use with both hard and soft wax, it features a removable inner pot for easy cleaning and maintenance. With adjustable temperature settings, it ensures safe and comfortable use on different areas of the body. ", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[220] = ["Foot & Calf Massager ", 199.99, "Try MBFL Brands", "This innovative device offers a rejuvenating massage experience from the comfort of your home. With multiple massage modes and intensity levels, it targets specific areas of your feet and calves, providing customized relief. The adjustable settings allow you to tailor the massage to your preferences, while the ergonomic design ensures optimal comfort during use. ", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[221] = ["Face Therapy Machine", 239.99, "Try MBFL Brands", "Harnessing the power of advanced technology, this device offers a range of therapeutic treatments to rejuvenate and enhance your complexion. From reducing fine lines and wrinkles to improving skin tone and texture, it provides targeted therapy tailored to your skincare needs. With adjustable settings and multiple modes, you can personalize your treatment for optimal results. ", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for One Time for __prdname__. If you are not completely satisfied with your purchase __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[235] = ["Skin Tag Serum (2 Bottles)", 129.88, "Try MBFL Brands", "Crafted with premium ingredients to support your skincare needs, this serum offers an effective and easy way to remove skin tags. Designed to help you achieve clear, blemish-free skin, the blend of high-quality active ingredients makes it an ideal choice for daily use.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for Try MBFL Brands __prdname__. If you are not completely satisfied with your purchase of Try MBFL Brands __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[236] = ["Skin Tag Serum (4 Bottles)", 189.88, "Try MBFL Brands", "Crafted with premium ingredients to support your skincare needs, this serum offers an effective and easy way to remove skin tags. Designed to help you achieve clear, blemish-free skin, the blend of high-quality active ingredients makes it an ideal choice for daily use.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for Try MBFL Brands __prdname__. If you are not completely satisfied with your purchase of Try MBFL Brands __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[237] = ["Skin Tag Serum (6 Bottles)", 239.88, "Try MBFL Brands", "Crafted with premium ingredients to support your skincare needs, this serum offers an effective and easy way to remove skin tags. Designed to help you achieve clear, blemish-free skin, the blend of high-quality active ingredients makes it an ideal choice for daily use.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for Try MBFL Brands __prdname__. If you are not completely satisfied with your purchase of Try MBFL Brands __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[238] = ["Skin Tag Serum (2 Bottles) Monthly", 129.88, "Try MBFL Brands", "Crafted with premium ingredients to support your skincare needs, this serum offers an effective and easy way to remove skin tags. Designed to help you achieve clear, blemish-free skin, the blend of high-quality active ingredients makes it an ideal choice for daily use.", "
", "", "By placing an order with us you will be charged monthly $ __prc__ + $0.00 for S&H for Try MBFL Brands __prdname__. If you are not completely satisfied with your purchase of Try MBFL Brands __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[239] = ["Skin Tag Serum (4 Bottles) Monthly", 189.88, "Try MBFL Brands", "Crafted with premium ingredients to support your skincare needs, this serum offers an effective and easy way to remove skin tags. Designed to help you achieve clear, blemish-free skin, the blend of high-quality active ingredients makes it an ideal choice for daily use.", "
", "", "By placing an order with us you will be charged monthly $ __prc__ + $0.00 for S&H for Try MBFL Brands __prdname__. If you are not completely satisfied with your purchase of Try MBFL Brands __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[240] = ["Skin Tag Serum (6 Bottles) Monthly", 239.88, "Try MBFL Brands", "Crafted with premium ingredients to support your skincare needs, this serum offers an effective and easy way to remove skin tags. Designed to help you achieve clear, blemish-free skin, the blend of high-quality active ingredients makes it an ideal choice for daily use.", "
", "", "By placing an order with us you will be charged monthly $ __prc__ + $0.00 for S&H for Try MBFL Brands __prdname__. If you are not completely satisfied with your purchase of Try MBFL Brands __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
products[324] = ["Anti Wrinkle Cream (2 Bottles)", 59.99, "Try MBFL Brands", "Crafted with premium ingredients to support your skincare needs, this anti-wrinkle cream offers an effective and easy way to reduce the appearance of wrinkles. Designed to help you achieve smooth, youthful-looking skin, the blend of high-quality active ingredients makes it an ideal choice for daily use.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for Try MBFL Brands __prdname__. If you are not completely satisfied with your purchase of Try MBFL Brands __prdname__ at any time, please call (844) 308-0048 or email care@trymbflbrands.com, Monday-Saturday: 9 am to 5 pm EST. You will receive your package within 2-5 business days of payment via USPS First Class Mail. I agree that my credit card charge will appear as Try MBFL Brands."];
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();
$('#term-' + itemId).remove();
}
$.cookie('order', order);
$.cookie('orderedTotQty', orderedTotQty);
showCart(false, 'removerow', itemId);
};
//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();
});
}
$(".trm_1").hide();
showCart(false, 'empty');
};
//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));
if (prodId != "" && quantity > 0) {
sub_total = round((quantity * products[prodId][1]), 2);
total += (quantity * products[prodId][1]);
}
}
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('$ ' + grand_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 += "" + products[prodId][4] + " " + products[prodId][0] + ""+ quantity +"
" + "