Shopify.queue = []; $product = {"id":4761517654115,"title":"3D壯撞貼 - Apple Watch (Series 1\/2\/3) 38mm","handle":"3d-apple-watch-series-1-2-3-38mm","description":"\u003cp\u003e\u003cstrong\u003e全防護,從任何角度\u003c\/strong\u003e。\u003c\/p\u003e\n\u003cp\u003e犀牛盾獨家產品耐衝擊保護貼,現在推出全滿版了。邊緣的3D曲面,能完整貼合並覆蓋手錶螢幕,更隱形之外,也同時提供更大面積的保護。\u003cbr\u003e\u003c\/p\u003e\n\u003cp\u003e這款經過鐵鎚測試的保護貼耐用度一片抵10片,可以承受多次撞擊而不破裂。除此之外,也能保護螢幕免於日常刮傷和磨損。\u003c\/p\u003e\n\u003cp\u003e這款3D壯撞貼擁有高透光度,提供超清晰的使用體驗。疏油疏水塗層可防止指紋和髒污沾黏,但不影響螢幕觸控和指紋感壓。使用無殘膠黏著技術,不僅讓你的保護貼牢固服貼於\u003cspan data-mce-fragment=\"1\"\u003e手\u003c\/span\u003e\u003cspan data-mce-fragment=\"1\"\u003e錶\u003c\/span\u003e,也讓新手安裝失誤時可重新黏貼。\u003c\/p\u003e\n\u003cp\u003e產品特性\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e超強衝擊防護力\u003c\/li\u003e\n\u003cli\u003e3D全滿版覆蓋\u003c\/li\u003e\n\u003cli\u003e日常防刮\u003c\/li\u003e\n\u003cli\u003e高透光度\u003c\/li\u003e\n\u003cli\u003e疏油疏水\u003c\/li\u003e\n\u003cli\u003e零殘膠\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cul\u003e\u003c\/ul\u003e","published_at":"2020-12-23T19:55:40+08:00","created_at":"2020-12-22T14:22:04+08:00","vendor":"Rhinoshieldtaiwan","type":"3D壯撞貼","tags":["20%","25%","30%","35%","40%","45%","50%","addition","addtion","brand-Apple","bundle-addition","dropdownDevice-Apple Watch Series 1\/2\/3 38mm","member","multi-shared","no-discount","quickbuy","reseller","reseller-asus","Top50","type-3D Impact"],"price":18000,"price_min":18000,"price_max":18000,"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":33345658781795,"title":"黑","option1":"黑","option2":null,"option3":null,"sku":"SPA01126H4","requires_shipping":true,"taxable":true,"featured_image":{"id":28608158728291,"product_id":4761517654115,"position":1,"created_at":"2021-10-20T15:21:03+08:00","updated_at":"2021-10-20T15:21:04+08:00","alt":null,"width":1024,"height":1024,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-2.png?v=1634714464","variant_ids":[33345658781795]},"available":true,"name":"3D壯撞貼 - Apple Watch (Series 1\/2\/3) 38mm - 黑","public_title":"黑","options":["黑"],"price":18000,"weight":0,"compare_at_price":null,"inventory_quantity":-575,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20924745482339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-2.png?v=1634714464"}}}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-2.png?v=1634714464","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/apple-watch_38mm.png?v=1608618578","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3d_bfcm_aw.png?v=1608618579","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-4.png?v=1653620148"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-2.png?v=1634714464","options":["Title"],"media":[{"alt":null,"id":20924745482339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1024,"width":1024,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-2.png?v=1634714464"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-2.png?v=1634714464","width":1024},{"alt":null,"id":8747352064099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/apple-watch_38mm.png?v=1608618578"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/apple-watch_38mm.png?v=1608618578","width":1500},{"alt":null,"id":8747351998563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2397,"width":2397,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3d_bfcm_aw.png?v=1608618579"},"aspect_ratio":1.0,"height":2397,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3d_bfcm_aw.png?v=1608618579","width":2397},{"alt":null,"id":21541478531171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1800,"width":1800,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-4.png?v=1653620148"},"aspect_ratio":1.0,"height":1800,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SPE01126H4-4.png?v=1653620148","width":1800}],"content":"\u003cp\u003e\u003cstrong\u003e全防護,從任何角度\u003c\/strong\u003e。\u003c\/p\u003e\n\u003cp\u003e犀牛盾獨家產品耐衝擊保護貼,現在推出全滿版了。邊緣的3D曲面,能完整貼合並覆蓋手錶螢幕,更隱形之外,也同時提供更大面積的保護。\u003cbr\u003e\u003c\/p\u003e\n\u003cp\u003e這款經過鐵鎚測試的保護貼耐用度一片抵10片,可以承受多次撞擊而不破裂。除此之外,也能保護螢幕免於日常刮傷和磨損。\u003c\/p\u003e\n\u003cp\u003e這款3D壯撞貼擁有高透光度,提供超清晰的使用體驗。疏油疏水塗層可防止指紋和髒污沾黏,但不影響螢幕觸控和指紋感壓。使用無殘膠黏著技術,不僅讓你的保護貼牢固服貼於\u003cspan data-mce-fragment=\"1\"\u003e手\u003c\/span\u003e\u003cspan data-mce-fragment=\"1\"\u003e錶\u003c\/span\u003e,也讓新手安裝失誤時可重新黏貼。\u003c\/p\u003e\n\u003cp\u003e產品特性\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e超強衝擊防護力\u003c\/li\u003e\n\u003cli\u003e3D全滿版覆蓋\u003c\/li\u003e\n\u003cli\u003e日常防刮\u003c\/li\u003e\n\u003cli\u003e高透光度\u003c\/li\u003e\n\u003cli\u003e疏油疏水\u003c\/li\u003e\n\u003cli\u003e零殘膠\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cul\u003e\u003c\/ul\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: "停產" }