"); } } else { addToCart.addClass('disabled').attr('disabled', 'disabled'); $(addToCart).find("span").text("Unavailable"); } //find thumb and click on it if (variant && variant.featured_image) { $('.product-single__thumbnail').each(function(){ if(variant.featured_image.src.indexOf($(this).data('zoom-image')) !== -1){ $(this).trigger("click"); return false; } }); } } $(document).ready(function() { new Shopify.OptionSelectors('productSelect', { product: {"id":1537323270202,"title":"SMART 1018580 Replacement Projector Lamp for 60wi","handle":"smart-1018580-replacement-projector-lamp-for-60wi","description":"\u003cp\u003eGenuine SMART 1018580 Replacement Projector Lamp for 60wi\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eAs an Authorized SMART Technologies dealer, all of the lamps sold at \u003c\/span\u003e\u003ca href=\"https:\/\/shopvsc.com\" target=\"_blank\" title=\"SMART Board Parts\" rel=\"noopener noreferrer\"\u003eShopVSC.com\u003c\/a\u003e\u003cspan\u003e are Genuine SMART Replacement Projector Lamps. These lamps are Guaranteed to work with your SMART Technologies Projector.\u003c\/span\u003e\u003c\/p\u003e","published_at":"2018-06-25T10:19:07-04:00","created_at":"2018-06-25T10:19:08-04:00","vendor":"SMART","type":"Projector Lamp","tags":["type_Projector_Lamp","vendor_SMART"],"price":20900,"price_min":20900,"price_max":20900,"available":true,"price_varies":false,"compare_at_price":24900,"compare_at_price_min":24900,"compare_at_price_max":24900,"compare_at_price_varies":false,"variants":[{"id":14127629205562,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"SMA-1018580","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"SMART 1018580 Replacement Projector Lamp for 60wi","public_title":null,"options":["Default Title"],"price":20900,"weight":113,"compare_at_price":24900,"inventory_management":null,"barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/0127\/9187\/3594\/products\/smart_1018580_replacement_lamp.jpg?v=1546476324"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0127\/9187\/3594\/products\/smart_1018580_replacement_lamp.jpg?v=1546476324","options":["Title"],"media":[{"alt":"SMART 1018580 Replacement Projector Lamp for 60wi - Smart Parts Shop","id":1143384834106,"position":1,"preview_image":{"aspect_ratio":1.0,"height":600,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0127\/9187\/3594\/products\/smart_1018580_replacement_lamp.jpg?v=1569325904"},"aspect_ratio":1.0,"height":600,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0127\/9187\/3594\/products\/smart_1018580_replacement_lamp.jpg?v=1569325904","width":600}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eGenuine SMART 1018580 Replacement Projector Lamp for 60wi\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eAs an Authorized SMART Technologies dealer, all of the lamps sold at \u003c\/span\u003e\u003ca href=\"https:\/\/shopvsc.com\" target=\"_blank\" title=\"SMART Board Parts\" rel=\"noopener noreferrer\"\u003eShopVSC.com\u003c\/a\u003e\u003cspan\u003e are Genuine SMART Replacement Projector Lamps. These lamps are Guaranteed to work with your SMART Technologies Projector.\u003c\/span\u003e\u003c\/p\u003e"}, onVariantSelected: selectCallback, enableHistoryState: true }); $('.product-single .selector-wrapper').hide(); $('.product-single .swatch').hide(); $('.more_info_block .page-product-heading li:first, .more_info_block .tab-content .page-product-box:first').addClass('active'); });