var products = [];
products[211] = ["Holder Strap For Sunglasses", 7, "HighPoint Eye Vision", "Crafted from durable silicone and nylon rope, this eyewear retainer may help keep your glasses secure and within easy reach during outdoor activities or everyday use. Its lightweight, comfortable design may help provide long-lasting wear without discomfort. The adjustable strap, compatible with frame ends over 4.5mm, may help ensure a flexible fit for most head and neck sizes. Backed by a lifetime warranty, it may help offer added confidence in quality and support.", "
", "2 Pcs", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[212] = ["Eye Glass Repair Kit", 8.49, "HighPoint Eye Vision", "This comprehensive eyeglass and sunglass repair kit may help you with all your repair needs. It includes a variety of tiny screws, washers, nuts, and silicone nose pads, alongside a precision screwdriver bit set with magnetic tips for easy handling. With multiple types and sizes of nose pads, and all components neatly organized in a small, portable case, this kit may help anyone who wears glasses to easily perform repairs at home or on the go.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[213] = ["Glasses Cleaning Kit", 9.99, "HighPoint Eye Vision", "This all-in-one glasses care kit may help keep your lenses clean, fog-free, and secure with a complete set of cleaning and repair essentials. The specially designed tools and microfiber materials may help remove dust, smudges, and buildup from all lens shapes without leaving residue. The anti-fog spray may help maintain clear vision for longer periods in various weather conditions. Non-slip accessories and adjustment tools may help improve fit and comfort, offering a convenient and reliable eyewear care solution.
Lens Cleaner Ingredients:Purified Water (Aqua) â gentle, lens-safe base, Isopropyl Alcohol (5â20%) â dissolves oils, fingerprints, and smudges, Non-Ionic Surfactants â lift dirt and debris without streaking Anti-Fog Agents (e.g., Polyethylene Glycol or similar polymers) â maintain long-lasting clarity, pH Stabilizers â keep the solution safe for all lens types, Preservatives (e.g., Phenoxyethanol) â prevent microbial growth, Fragrance-Free Additives â optional, leave no scent or residue.
Formulated Without: Ammonia, Acetone, and Harsh solvents", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[214] = ["Eyeglasses Holder Stand", 11.49, "HighPoint Eye Vision", "Crafted with a sturdy PVC body and a stylish canvas-look finish, this eyeglass holder features a soft plush interior that may help protect lenses from scratches. Its tip-proof base and compact size make it suitable for use on a nightstand, desk, or coffee table. The design may help keep your glasses clean by reducing exposure to dirt and residue. It may also help prevent bent frames or misplaced eyewear, keeping your essentials organized and within easy reach.", "
", "2 Pcs", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[215] = ["Adjustable Shower Goggles", 19.95, "HighPoint Eye Vision", "These shower lash goggles come in a convenient 2-pack and may help provide reliable eye protection during showers and daily routines. Crafted with durable polycarbonate lenses, they may help resist splashes and impacts while offering lightweight comfort for extended wear. The adjustable strap and ergonomic design may help create a secure, comfortable fit with clear visibility. Suitable for home or travel use, they may help protect eyebrow extensions and sensitive eye areas from water and irritation.", "
", "2 Pcs", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[216] = ["Cateyes Sunglasses", 24.95, "HighPoint Eye Vision", "Crafted with high-quality materials like polycarbonate, these sunglasses may help provide enhanced strength, flexibility, and lasting comfort. Tinted lenses may help support reliable protection by blocking of UV rays during everyday outdoor activities. Designed with shatter-resistant lenses, they may help improve durability and long-term performance. Combining modern style with thoughtful craftsmanship, they may help deliver affordable quality along with dependable customer support.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[227] = ["BiFocal Reading Sunglasses", 29.99, "HighPoint Eye Vision", "This lightweight, durable, and stylish bifocal reading sunglasses may help support clearer vision under the sun while protecting your eyes during outdoor reading. Featuring UV protection with UVA and UVB coverage, they may help shield your eyes from harmful rays. The polycarbonate bifocal lenses combine regular sunglasses on top with nearly invisible reading power at the bottom, which may help reduce the need for multiple pairs. Designed for comfort and precision, they may help promote long-term ease during reading and distance viewing outdoors.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[228] = ["Ski Goggles", 34.95, "HighPoint Eye Vision", "Experience adventure like never before with 4K Live Streaming Goggles. Capture ultra HD photos and videos, stream live to your phone via the app, and share instantly on social media. Built for durability and performance, these impact-resistant, helmet-compatible goggles provide full UV protection and anti-fog lenses for clear vision in any condition. Rechargeable and expandable up to 128GB, theyâre ready for every journey.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[229] = ["Hiking Glass", 39.95, "HighPoint Eye Vision", "These professional hiking polarized sunglasses may help support clearer vision and enhanced eye protection during sports and adventure activities. Designed with UV protection and multi-layer polarized lenses, they may help reduce glare while blocking harmful UVA and UVB rays. The windproof side shields and durable metal frame construction may help protect your eyes from dust, sand, and harsh outdoor conditions. With a comfortable design and risk-free purchase policy, they may help provide reliable performance for various outdoor pursuits.", "
", "2 Pcs", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[230] = ["Blue Light Blocking Gaming Glass", 44.95, "HighPoint Eye Vision", "Our blue light blocking glasses feature a lightweight carbon fiber temple and durable aluminum-magnesium frame for comfortable, all-day wear. The amber lenses may help filter harmful blue light and provide full UV protection, supporting visual comfort during extended screen use. They may help reduce digital eye strain, glare, and discomfort while enhancing contrast and focus. Ideal for gaming, work, or late-night device use, they may also help support a healthier sleep cycle.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
products[231] = ["Swimming Glass", 49.95, "HighPoint Eye Vision", "This product is designed to provide clear visibility for competitive swimming. The lenses are equipped with an anti-fog technology that can be reactivated by swiping the inner surface with a finger while submerged in water. The goggles feature a low-profile, hydrodynamic design to minimize drag and offer a wide field of vision. They are built for stability during dives, with soft silicone seals for a secure fit. The lenses are made from durable polycarbonate, and the goggles come with five interchangeable nose bridges to ensure a customized fit. They are suitable for indoor and low-light swimming conditions.", "
", "", "By placing an order with us you will be charged $ __prc__ + $0.00 for S&H for __altnm__ of HighPoint Eye Vision __prdname__. If you are not completely satisfied with your purchase of HighPoint Eye Vision __prdname__ at any time, please call (877) 470-4669 or email info@highpointeyevision.com, Monday - Friday, 9AM - 6PM. 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 highpointeyevision.com."];
console.log(products);
var orderedItems = [];
var orderedTotQty = 0;
var maxQty = 10;
var shipRates = false;
var handling = 0;
var carturl = "cart.php";
// Function to check item exists in cart
var checkItemExists = function(itemId) {
var order = $.cookie('order');
if (!order) {
return false;
} 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) {
return true;
}
}
}
return false;
}
//Funtion adds Items to Cart
var addItem = function(itemId, Qty, showFullCart) {
if (typeof showFullCart === "undefined") {
showFullCart = false;
}
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(showFullCart, '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, showFullCart) {
if (typeof showFullCart === "undefined") {
showFullCart = false;
}
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(true, '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 += ""+ quantity +"
" + products[prodId][0] + "
$" + sub_total.toFixed(2) + " " + "" + products[prodId][5] + "