$product = {"id":7873263304803,"title":"iPhone 14 Plus Mod NX Keigo Sleepy Sloth","handle":"iphone-14-plus-mod-nx-printable-kei08","description":null,"published_at":"2025-09-01T10:56:48+08:00","created_at":"2025-09-01T09:38:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 14 Plus","merge","reseller-keigo"],"price":90000,"price_min":90000,"price_max":90000,"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":43658523836515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409877864547,"product_id":7873263304803,"position":9,"created_at":"2025-09-01T09:38:22+08:00","updated_at":"2025-09-01T09:38:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704","variant_ids":[43658523836515]},"available":true,"name":"iPhone 14 Plus Mod NX Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-KEI08","featured_media":{"alt":null,"id":25982192844899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a194059332fb2721c9f180e3c406986537b094.webp?v=1756690698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c86183935f29df946c0b8a6443eda997bb0fd61.webp?v=1756690700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa2dd9e61a43b2303e5ee28057ab2898e66b5ba.webp?v=1756690700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eadd15197434346ab3456742fd5239d037615e93.webp?v=1756690701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5442995b63c8c29d770c78cacae84e68ee068e8d.webp?v=1756690701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f41a47e34cbcc04d4c6292e5daad2cb39526287.webp?v=1756690702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032f328e536cfa585451b1273285159ee576a5c1.webp?v=1756690703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5511b75bc7c0ef54a9b576b0c44d1483bee146c.webp?v=1756690704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb97edbe24119bfd7a84999377fe893f47ac7394.webp?v=1756690705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9211ab269bc1b3305e24cf517af7d69dfd0bbcd1.webp?v=1756690705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52dc8e98b261830881b63ab2be875ea4abc519f2.webp?v=1756690706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba046d7d86627963eb2feff3048368d3512bc1e.webp?v=1756690707"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a194059332fb2721c9f180e3c406986537b094.webp?v=1756690698","options":["color"],"media":[{"alt":null,"id":25982190714979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a194059332fb2721c9f180e3c406986537b094.webp?v=1756690698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66a194059332fb2721c9f180e3c406986537b094.webp?v=1756690698","width":2000},{"alt":null,"id":25982191075427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c86183935f29df946c0b8a6443eda997bb0fd61.webp?v=1756690700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c86183935f29df946c0b8a6443eda997bb0fd61.webp?v=1756690700","width":2000},{"alt":null,"id":25982191370339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa2dd9e61a43b2303e5ee28057ab2898e66b5ba.webp?v=1756690700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efa2dd9e61a43b2303e5ee28057ab2898e66b5ba.webp?v=1756690700","width":2000},{"alt":null,"id":25982191632483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eadd15197434346ab3456742fd5239d037615e93.webp?v=1756690701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eadd15197434346ab3456742fd5239d037615e93.webp?v=1756690701","width":2000},{"alt":null,"id":25982191927395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5442995b63c8c29d770c78cacae84e68ee068e8d.webp?v=1756690701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5442995b63c8c29d770c78cacae84e68ee068e8d.webp?v=1756690701","width":2000},{"alt":null,"id":25982192189539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f41a47e34cbcc04d4c6292e5daad2cb39526287.webp?v=1756690702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f41a47e34cbcc04d4c6292e5daad2cb39526287.webp?v=1756690702","width":2000},{"alt":null,"id":25982192418915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032f328e536cfa585451b1273285159ee576a5c1.webp?v=1756690703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/032f328e536cfa585451b1273285159ee576a5c1.webp?v=1756690703","width":2000},{"alt":null,"id":25982192648291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5511b75bc7c0ef54a9b576b0c44d1483bee146c.webp?v=1756690704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5511b75bc7c0ef54a9b576b0c44d1483bee146c.webp?v=1756690704","width":2000},{"alt":null,"id":25982192844899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704","width":2000},{"alt":null,"id":25982193008739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb97edbe24119bfd7a84999377fe893f47ac7394.webp?v=1756690705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb97edbe24119bfd7a84999377fe893f47ac7394.webp?v=1756690705","width":2000},{"alt":null,"id":25982193172579,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9211ab269bc1b3305e24cf517af7d69dfd0bbcd1.webp?v=1756690705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9211ab269bc1b3305e24cf517af7d69dfd0bbcd1.webp?v=1756690705","width":2000},{"alt":null,"id":25982193369187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52dc8e98b261830881b63ab2be875ea4abc519f2.webp?v=1756690706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52dc8e98b261830881b63ab2be875ea4abc519f2.webp?v=1756690706","width":2000},{"alt":null,"id":25982193533027,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba046d7d86627963eb2feff3048368d3512bc1e.webp?v=1756690707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba046d7d86627963eb2feff3048368d3512bc1e.webp?v=1756690707","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43658523836515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409877864547,"product_id":7873263304803,"position":9,"created_at":"2025-09-01T09:38:22+08:00","updated_at":"2025-09-01T09:38:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704","variant_ids":[43658523836515]},"available":true,"name":"iPhone 14 Plus Mod NX Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-KEI08","featured_media":{"alt":null,"id":25982192844899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43658523836515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-KEI08","requires_shipping":true,"taxable":true,"featured_image":{"id":34409877864547,"product_id":7873263304803,"position":9,"created_at":"2025-09-01T09:38:22+08:00","updated_at":"2025-09-01T09:38:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704","variant_ids":[43658523836515]},"available":true,"name":"iPhone 14 Plus Mod NX Keigo Sleepy Sloth - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-KEI08","featured_media":{"alt":null,"id":25982192844899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef27e29d474c732b19887eae6c8019cd240f191b.webp?v=1756690704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.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) }); });
// 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: "停產" }