Shopify.queue = []; $product = {"id":10458050580,"title":"犀牛盾9H 3D曲面非滿版玻璃保護貼 - Samsung Galaxy Note8","handle":"samsung-galaxy-note-8-tempered-glass","description":"\u003cp\u003e\u003cb\u003e\u003cstrong\u003e【建議售價】\u003c\/strong\u003e\u003c\/b\u003e\u003cb\u003e\u003cstrong\u003e720元\u003c\/strong\u003e\u003c\/b\u003e\u003c\/p\u003e\n\u003ch3\u003e\u003cspan style=\"color: #ff0000;\"\u003e**犀牛盾Samsung Galaxy Note8 9H 3D非滿版玻璃保護貼每包裝含二張玻璃保護貼**\u003c\/span\u003e\u003c\/h3\u003e\n\u003cp\u003e\u003cbr\u003e1. 黑色邊框玻璃保護貼 (非滿版)*1 pcs\u003cbr\u003e黑色邊框玻璃保護貼在使用後在螢幕邊緣看到黑色邊緣\u003c\/p\u003e\n\u003cp\u003e2.\u003cspan\u003e透明邊框玻璃保護貼 (非滿版)*1 pcs\u003cbr\u003e透明邊框玻璃保護貼在使用後仍可在螢幕邊緣看到些微透明膠\u003cbr\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e手機型號:三星Samsung Galaxy Note 8\u003cbr\u003e適用犀牛盾CrashGuard手機殼的滿版玻璃保護貼\u003c\/p\u003e\n\u003ch3\u003e疏油疏水\u003c\/h3\u003e\n\u003cp\u003e\u003cspan\u003e疏油疏水塗層\u003c\/span\u003e\u003cbr\u003e\u003cspan\u003e抗水、抗油、抗指紋,\u003c\/span\u003e\u003cbr\u003e\u003cspan\u003e手感超滑順\u003c\/span\u003e\u003c\/p\u003e\n\u003ch3\u003e9H鋼化玻璃\u003c\/h3\u003e\n\u003cp\u003e\u003cspan\u003e採用9H鋼化玻璃 耐刮,耐磨損,完美保護螢幕。\u003c\/span\u003e\u003c\/p\u003e\n\u003ch3\u003e高透光\u003c\/h3\u003e\n\u003cp\u003e\u003cspan\u003e採用超透光光學玻璃,透光度高達99%,不影響觸控螢幕。\u003c\/span\u003e\u003c\/p\u003e\n\u003ch3\u003e3D曲面,完美弧度\u003c\/h3\u003e\n\u003cp\u003e\u003cbr\u003e\u003cspan\u003e9H硬度材質,防護手機邊緣被日常生活中的物品刮傷。\u003c\/span\u003e\u003c\/p\u003e\n\u003ctable width=\"300\" border=\"1\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cp\u003e貼心小叮嚀:\u003c\/p\u003e\n\u003cp\u003e避免與硬物一起擺放\u003c\/p\u003e\n\u003cp\u003e避免過度用力擦拭\u003c\/p\u003e\n\u003cdiv\u003e\u003c\/div\u003e\n\u003cp\u003e\u003cspan\u003e玻璃保護貼若受到重擊表面仍會受損或破裂\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e清潔螢幕保護貼時請使用擦拭布或沾水輕輕擦拭即可\u003c\/p\u003e\n\u003cp\u003e新手建議請專業店家協助代貼\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e","published_at":"2017-04-18T14:19:16+08:00","created_at":"2017-04-18T14:19:17+08:00","vendor":"Rhinoshieldtaiwan","type":"玻璃保護貼","tags":["20%","25%","30%","35%","40%","45%","50%","addition","brand-Samsung","bundle-addition","dropdownDevice-Samsung Galaxy Note 8","member","quickbuy","reseller","reseller-asus","Top50"],"price":33000,"price_min":33000,"price_max":33000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":40567040212,"title":"9H 3D非滿版玻璃保護貼","option1":"9H 3D非滿版玻璃保護貼","option2":null,"option3":null,"sku":"GSP0306534","requires_shipping":true,"taxable":true,"featured_image":{"id":547557048340,"product_id":10458050580,"position":1,"created_at":"2018-01-18T18:29:50+08:00","updated_at":"2019-10-17T08:58:17+08:00","alt":null,"width":1024,"height":1024,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/note8_512x512_2x_8065267e-bef5-404c-ab22-748c4b048bc8.jpg?v=1571273897","variant_ids":[40567040212]},"available":true,"name":"犀牛盾9H 3D曲面非滿版玻璃保護貼 - Samsung Galaxy Note8 - 9H 3D非滿版玻璃保護貼","public_title":"9H 3D非滿版玻璃保護貼","options":["9H 3D非滿版玻璃保護貼"],"price":33000,"weight":0,"compare_at_price":null,"inventory_quantity":-862,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":505313624163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/note8_512x512_2x_8065267e-bef5-404c-ab22-748c4b048bc8.jpg?v=1568995012"}}}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/note8_512x512_2x_8065267e-bef5-404c-ab22-748c4b048bc8.jpg?v=1571273897","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/GSP0306534-2_grande_3fea6312-b648-4eb1-b3b4-5d06c6bde2ab.jpg?v=1571273897"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/note8_512x512_2x_8065267e-bef5-404c-ab22-748c4b048bc8.jpg?v=1571273897","options":["color"],"media":[{"alt":null,"id":505313624163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/note8_512x512_2x_8065267e-bef5-404c-ab22-748c4b048bc8.jpg?v=1568995012"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/note8_512x512_2x_8065267e-bef5-404c-ab22-748c4b048bc8.jpg?v=1568995012","width":1024},{"alt":null,"id":446561878115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":600,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/GSP0306534-2_grande_3fea6312-b648-4eb1-b3b4-5d06c6bde2ab.jpg?v=1568980977"},"aspect_ratio":1.0,"height":600,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/GSP0306534-2_grande_3fea6312-b648-4eb1-b3b4-5d06c6bde2ab.jpg?v=1568980977","width":600}],"content":"\u003cp\u003e\u003cb\u003e\u003cstrong\u003e【建議售價】\u003c\/strong\u003e\u003c\/b\u003e\u003cb\u003e\u003cstrong\u003e720元\u003c\/strong\u003e\u003c\/b\u003e\u003c\/p\u003e\n\u003ch3\u003e\u003cspan style=\"color: #ff0000;\"\u003e**犀牛盾Samsung Galaxy Note8 9H 3D非滿版玻璃保護貼每包裝含二張玻璃保護貼**\u003c\/span\u003e\u003c\/h3\u003e\n\u003cp\u003e\u003cbr\u003e1. 黑色邊框玻璃保護貼 (非滿版)*1 pcs\u003cbr\u003e黑色邊框玻璃保護貼在使用後在螢幕邊緣看到黑色邊緣\u003c\/p\u003e\n\u003cp\u003e2.\u003cspan\u003e透明邊框玻璃保護貼 (非滿版)*1 pcs\u003cbr\u003e透明邊框玻璃保護貼在使用後仍可在螢幕邊緣看到些微透明膠\u003cbr\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e手機型號:三星Samsung Galaxy Note 8\u003cbr\u003e適用犀牛盾CrashGuard手機殼的滿版玻璃保護貼\u003c\/p\u003e\n\u003ch3\u003e疏油疏水\u003c\/h3\u003e\n\u003cp\u003e\u003cspan\u003e疏油疏水塗層\u003c\/span\u003e\u003cbr\u003e\u003cspan\u003e抗水、抗油、抗指紋,\u003c\/span\u003e\u003cbr\u003e\u003cspan\u003e手感超滑順\u003c\/span\u003e\u003c\/p\u003e\n\u003ch3\u003e9H鋼化玻璃\u003c\/h3\u003e\n\u003cp\u003e\u003cspan\u003e採用9H鋼化玻璃 耐刮,耐磨損,完美保護螢幕。\u003c\/span\u003e\u003c\/p\u003e\n\u003ch3\u003e高透光\u003c\/h3\u003e\n\u003cp\u003e\u003cspan\u003e採用超透光光學玻璃,透光度高達99%,不影響觸控螢幕。\u003c\/span\u003e\u003c\/p\u003e\n\u003ch3\u003e3D曲面,完美弧度\u003c\/h3\u003e\n\u003cp\u003e\u003cbr\u003e\u003cspan\u003e9H硬度材質,防護手機邊緣被日常生活中的物品刮傷。\u003c\/span\u003e\u003c\/p\u003e\n\u003ctable width=\"300\" border=\"1\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cp\u003e貼心小叮嚀:\u003c\/p\u003e\n\u003cp\u003e避免與硬物一起擺放\u003c\/p\u003e\n\u003cp\u003e避免過度用力擦拭\u003c\/p\u003e\n\u003cdiv\u003e\u003c\/div\u003e\n\u003cp\u003e\u003cspan\u003e玻璃保護貼若受到重擊表面仍會受損或破裂\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e清潔螢幕保護貼時請使用擦拭布或沾水輕輕擦拭即可\u003c\/p\u003e\n\u003cp\u003e新手建議請專業店家協助代貼\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e"}; $bumper = null if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages([productImg, bumperColors[currentVariant]],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages([bumperColors[currentVariant], productImg],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); } $(function() { // switch device $('#select-device').on('change', function() { window.location.href = $(this).val(); }); // listen quantity changed $('input[name=quantity]').on('change', function() { var quantity = $(this).val(); }); // checkbox action $("input:checkbox").on('click', function() { // in the handler, 'this' refers to the box clicked on var $box = $(this); if ($box.is(":checked")) { // the name of the box is retrieved using the .attr() method // as it is assumed and expected to be immutable var group = "input:checkbox[name='" + $box.attr("name") + "']"; // the checked state of the group/box on the other hand will change // and the current value is retrieved using .prop() method $(group).prop("checked", false); $box.prop("checked", true); } else { $box.prop("checked", false); } }); // add to cart $("#AddToCart-product-template").click(function(e){ var elem; var addition = {}; Shopify.queue = []; e.preventDefault(); // elem = $(this); // $(elem).prop("disabled", true); var original_variant_id = $('.product-form').serialize().split('&')[0].split('=')[1]; var original_variant_quantity = $('.product-form').serialize().split('&')[1].split('=')[1]; addition.id = original_variant_id; addition.quantity = original_variant_quantity; Shopify.queue.push(addition); $.each($("input[name^='recommend[']:checked"), function(i, v) { var addition = {}; var name = $(this).attr('name'); var quantity = $('select[name="' + name + '"]').val(); addition.id = $(this).val(); addition.quantity = quantity; Shopify.queue.push(addition); }); Shopify.moveAlong(); }); Shopify.moveAlong = function() { // If we still have requests in the queue, let's process the next one. // console.log(Shopify.queue); if (Shopify.queue.length) { var request = Shopify.queue.shift(); Shopify.addItem(request.id, request.quantity, Shopify.moveAlong); } // If the queue is empty, take care of the main item else { $.getJSON('/cart.js', function(cart) { $('#CartCount').removeClass('hide'); $('#item-count').text(cart.item_count); toastr.options = { "closeButton": false, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-bottom-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" }; toastr["success"]("成功加入購物車"); }); } }; });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }