<% console.log(product) %>;
<% console.log(cart) %>;
// Get brand
var prodBrand = "<%= product.brand %>";
// Create a Map for brand logo and brand pages
var brandData = new Map([
["Canon", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/canon.png", "/shop/brands/canon"]],
["Cinestill", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/cinestillfilm.png", "/shop/brands/cinestill"]],
["Fujifilm", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/fujifilm_logo.png", "/shop/brands/fujifilm"]],
["Godox", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/godox.png", "/shop/brands/godox"]],
["Ilford", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/iford-logo.png", "/shop/brands/ilford"]],
["Laowa", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/laowa-lens-logo.png", "/shop/brands/laowa"]],
["Lomography", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/lomography-logo.png", "/shop/brands/lomography"]],
["Manfrotto", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/manfrotto.png", "/shop/brands/manfrotto"]],
["Nikon", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/nikon.png", "/shop/brands/nikon"]],
["OM System", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/om-system-logo.png", "/shop/brands/om-system"]],
["Panasonic", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/logo_panasonic.gif", "/shop/brands/panasonic"]],
["Polaroid", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/polaroid.png", "/shop/brands/polaroid"]],
["ProMaster", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/promaster.png", "/shop/brands/promaster"]],
["Savage Universal", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/savage-logo.png", "/shop/brands/savage-universal"]],
["Sigma", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/logo-sigma.png", "/shop/brands/sigma"]],
["Sirui", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/sirui.png", "/shop/brands/sirui"]],
["Sony", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/sony.png", "/shop/brands/sony"]],
["Tamron", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/tamron.png", "/shop/brands/tamron"]],
["Zeiss", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/zeiss.png", "/shop/brands/zeiss"]]
]);
// Run script to find brand match
for (var x of brandData) {
if(prodBrand === x[0]) {
document.getElementById("brandPageDiv").style.display = "inline-block";
document.getElementById("brandPageLink").href = x[1][1];
document.getElementById("brandPageImg").src = x[1][0];
document.getElementById("brandPageImg").alt = x[0];
break;
}
}
In Stock
var stockmsg = '<%= product.outOfStockMsg %>';
if(stockmsg.length < 2) {
document.getElementById('stockmsg').style.display = "inline-block";
}
// Get brand
var prodBrand = "<%= product.brand %>";
// Create a Map for brand logo and brand pages
var brandData = new Map([
["Canon", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/canon.png", "/shop/brands/canon"]],
["Cinestill", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/cinestillfilm.png", "/shop/brands/cinestill"]],
["Fujifilm", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/fujifilm_logo.png", "/shop/brands/fujifilm"]],
["Godox", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/godox.png", "/shop/brands/godox"]],
["Ilford", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/iford-logo.png", "/shop/brands/ilford"]],
["Laowa", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/laowa-lens-logo.png", "/shop/brands/laowa"]],
["Lomography", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/lomography-logo.png", "/shop/brands/lomography"]],
["Manfrotto", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/manfrotto.png", "/shop/brands/manfrotto"]],
["Nikon", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/nikon.png", "/shop/brands/nikon"]],
["OM System", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/om-system-logo.png", "/shop/brands/om-system"]],
["Panasonic", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/logo_panasonic.gif", "/shop/brands/panasonic"]],
["Polaroid", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/polaroid.png", "/shop/brands/polaroid"]],
["ProMaster", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/promaster.png", "/shop/brands/promaster"]],
["Savage Universal", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/savage-logo.png", "/shop/brands/savage-universal"]],
["Sigma", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/logo-sigma.png", "/shop/brands/sigma"]],
["Sirui", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/sirui.png", "/shop/brands/sirui"]],
["Sony", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/sony.png", "/shop/brands/sony"]],
["Tamron", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/tamron.png", "/shop/brands/tamron"]],
["Zeiss", ["https://irp.cdn-website.com/f1f0e0dc/dms3rep/multi/zeiss.png", "/shop/brands/zeiss"]]
]);
// Run script to find brand match
for (var x of brandData) {
if(prodBrand === x[0]) {
document.getElementById("brandPageDiv").style.display = "block";
document.getElementById("brandPageLink").href = x[1][1];
document.getElementById("brandPageImg").src = x[1][0];
document.getElementById("brandPageImg").alt = x[0];
break;
}
}
_
Add to Cart
rel="stylesheet" rel="preload" href="https://tgscript.s3.amazonaws.com/cert-style-v1.024.css" integrity="sha384-PzfduepNOPTKNfShxcius5IlrRQUUwINOCc14DrQlKzVnKWHX2OvyT01RRPVD43C" crossorigin="anonymous">
Secure transaction |
Need help? Give us a call!