$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%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","addition","addtion","brand-Apple","bundle-addition","discountable-item","dropdownDevice-Apple Watch Series 1\/2\/3 38mm","member","multi-shared","no-discount","quickbuy","reseller","reseller-3d-screen-protector","reseller-asus","Top50","type-3D Impact"],"price":40000,"price_min":40000,"price_max":40000,"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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-2.png?v=1634714464","variant_ids":[33345658781795]},"available":true,"name":"3D壯撞貼 - Apple Watch (Series 1\/2\/3) 38mm - 黑","public_title":"黑","options":["黑"],"price":40000,"weight":0,"compare_at_price":null,"inventory_quantity":-645,"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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-2.png?v=1634714464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-2.png?v=1634714464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/apple-watch_38mm.png?v=1608618578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d_bfcm_aw.png?v=1608618579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-4.png?v=1653620148"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-2.png?v=1634714464"},"aspect_ratio":1.0,"height":1024,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/apple-watch_38mm.png?v=1608618578"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/3d_bfcm_aw.png?v=1608618579"},"aspect_ratio":1.0,"height":2397,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-4.png?v=1653620148"},"aspect_ratio":1.0,"height":1800,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-4.png?v=1653620148","width":1800}],"requires_selling_plan":false,"selling_plan_groups":[],"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; $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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-2.png?v=1634714464","variant_ids":[33345658781795]},"available":true,"name":"3D壯撞貼 - Apple Watch (Series 1\/2\/3) 38mm - 黑","public_title":"黑","options":["黑"],"price":40000,"weight":0,"compare_at_price":null,"inventory_quantity":-645,"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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-2.png?v=1634714464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-2.png?v=1634714464","variant_ids":[33345658781795]},"available":true,"name":"3D壯撞貼 - Apple Watch (Series 1\/2\/3) 38mm - 黑","public_title":"黑","options":["黑"],"price":40000,"weight":0,"compare_at_price":null,"inventory_quantity":-645,"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":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/SPE01126H4-2.png?v=1634714464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; var sellingStatus; $device_handle = 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); }); } }); }; var storedData = sessionStorage.getItem('sellingStatusData'); try { sellingStatusData = JSON.parse(storedData) } catch (error) { console.error('JSON.parse Error', error) sellingStatusData = null } $(document).ready(function() { handleSellingStatus($defaultVariant.sku, sellingStatusData); }); function handleSellingStatus(currentSku, sellingStatusData) { const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const matchSellingStatusProduct = sellingStatusData.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku, sellingStatusData) }); });
// 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: "停產" }