Cameras & Gear Products
var stockmsg = '<%= product.outOfStockMsg %>';
if(stockmsg.length < 2) {
document.getElementById('stockmsg').style.display = "inline-block";
}
 
  
 MPN# 
  
 SKU# 
  
// Get variables
var prodManage = <%= product.quantity.quantityManagement %>;
var prodQty = <%= product.quantity.total %>;
 
 <%  if(product.quantity.quantityManagement) {
	if(product.quantity.total > 0) { %> 
 
  
We currently have <%= product.quantity.total %> in stock.
 
<% };
} %><% console.log(product) %>
    <% console.log(cart) %>
 
Foto Care Protection Plan
 
 Purchase a Foto Care Protection Plan for cameras or lenses.
 

 Add an Extended Warranty – 3 years 
 
 
 
Price: $49.99
 
// Get variables
var prodPrice = <%= product.finalPrice %>;
var prodCat = "<%= product.category[1].id %>";
var digitalCamera = "a58a8268-4946-4121-8912-f53ba8efa0ea";
var slrLenses = "1c2d2aa8-6eda-4c6e-9b23-a49316b6450e";
// Run script for filtered categories
if(prodCat == digitalCamera || prodCat == slrLenses) {
    // Parse all entries
    for (var x of warranty3List) {
        if(x[0] > prodPrice) {
            my3Warranty(x[1][0], x[1][1]);
            break;
        }
    }
}
// Update info in widget
function my3Warranty(link, price) {
    document.getElementById("warranty3Link").href = link;
    document.getElementById("war3Price").innerHTML = price;
    document.getElementById("warranty3Box").style.display = 'block';
    document.getElementById("warranty").style.display = 'block';
    }
 
Financing available through
var totalPrice = <%= product.finalPrice %>;
if(totalPrice > 299.99) {
	$("#flexitidiv").show();
  }
 
Equal payments over 6 months at 0% interest*
Price match for the best price!
Our warranty ensures we won't be beat on price.
var prodName = '<%= product.name %>';
    var prodUrl = '<%= url %>';
    console.log(prodName);
    console.log(prodUrl);
    function myTime() {
        document.getElementById('prodUrl').value = prodUrl;
        document.getElementById('prodName').value = prodName;
        console.log('Good!');
        }
 
   
 PRICE MATCH 
 
