$product = {"id":7892145832035,"title":"iPhone 14 Plus Mod NX 咻咻熊 泥的貓貓們","handle":"iphone-14-plus-mod-nx-printable-fw61","description":null,"published_at":"2025-10-01T12:14:29+08:00","created_at":"2025-10-01T09:41:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 14 Plus","merge","reseller-xiuxiubear"],"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":43754660921443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FW61","requires_shipping":true,"taxable":true,"featured_image":{"id":34540947374179,"product_id":7892145832035,"position":9,"created_at":"2025-10-01T09:41:20+08:00","updated_at":"2025-10-01T09:41:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882","variant_ids":[43754660921443]},"available":true,"name":"iPhone 14 Plus Mod NX 咻咻熊 泥的貓貓們 - 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-FW61","featured_media":{"alt":null,"id":26110714511459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df0b798f9e7e3d1303bd5034b0a6964d51c68a8.webp?v=1759282878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b488d550936110d6569590c2d9696da4e68b11.webp?v=1759282878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33cf8e3bf0c7cd99f787f6bbeb244cdb0eac4bd.webp?v=1759282879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10af0817844dd7c5663fc028d01a7483f54db38f.webp?v=1759282880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2105a7907c64936d19f7d2d0ef6dfd41643cf2.webp?v=1759282880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3157f3d4e89555544d20e06c1ccdbc499d366989.webp?v=1759282881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e3d6b45215f24afd8bf5f37623b54bc4128e6b7.webp?v=1759282881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84de8a26b30930c4b9a55e25e5ddd9c4ba4c8015.webp?v=1759282882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8043b9edc821c5a351df43571674a82689b2fba1.webp?v=1759282883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e9adf17205b5f1e89e39f5a3a012ba7e3d4689.webp?v=1759282884","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ce3f7b03ce2549593a6eb2e4b7a951a58291df2.webp?v=1759282884","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147d74ffb881011c08bcc6752a16b633b1636255.webp?v=1759282885"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df0b798f9e7e3d1303bd5034b0a6964d51c68a8.webp?v=1759282878","options":["color"],"media":[{"alt":null,"id":26110713299043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df0b798f9e7e3d1303bd5034b0a6964d51c68a8.webp?v=1759282878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df0b798f9e7e3d1303bd5034b0a6964d51c68a8.webp?v=1759282878","width":2000},{"alt":null,"id":26110713626723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b488d550936110d6569590c2d9696da4e68b11.webp?v=1759282878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b488d550936110d6569590c2d9696da4e68b11.webp?v=1759282878","width":2000},{"alt":null,"id":26110713790563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33cf8e3bf0c7cd99f787f6bbeb244cdb0eac4bd.webp?v=1759282879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33cf8e3bf0c7cd99f787f6bbeb244cdb0eac4bd.webp?v=1759282879","width":2000},{"alt":null,"id":26110713987171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10af0817844dd7c5663fc028d01a7483f54db38f.webp?v=1759282880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10af0817844dd7c5663fc028d01a7483f54db38f.webp?v=1759282880","width":2000},{"alt":null,"id":26110714085475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2105a7907c64936d19f7d2d0ef6dfd41643cf2.webp?v=1759282880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2105a7907c64936d19f7d2d0ef6dfd41643cf2.webp?v=1759282880","width":2000},{"alt":null,"id":26110714151011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3157f3d4e89555544d20e06c1ccdbc499d366989.webp?v=1759282881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3157f3d4e89555544d20e06c1ccdbc499d366989.webp?v=1759282881","width":2000},{"alt":null,"id":26110714249315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e3d6b45215f24afd8bf5f37623b54bc4128e6b7.webp?v=1759282881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e3d6b45215f24afd8bf5f37623b54bc4128e6b7.webp?v=1759282881","width":2000},{"alt":null,"id":26110714347619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84de8a26b30930c4b9a55e25e5ddd9c4ba4c8015.webp?v=1759282882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84de8a26b30930c4b9a55e25e5ddd9c4ba4c8015.webp?v=1759282882","width":2000},{"alt":null,"id":26110714511459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882","width":2000},{"alt":null,"id":26110714609763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8043b9edc821c5a351df43571674a82689b2fba1.webp?v=1759282883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8043b9edc821c5a351df43571674a82689b2fba1.webp?v=1759282883","width":2000},{"alt":null,"id":26110714773603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e9adf17205b5f1e89e39f5a3a012ba7e3d4689.webp?v=1759282884"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e9adf17205b5f1e89e39f5a3a012ba7e3d4689.webp?v=1759282884","width":2000},{"alt":null,"id":26110714937443,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ce3f7b03ce2549593a6eb2e4b7a951a58291df2.webp?v=1759282884"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ce3f7b03ce2549593a6eb2e4b7a951a58291df2.webp?v=1759282884","width":2000},{"alt":null,"id":26110715134051,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147d74ffb881011c08bcc6752a16b633b1636255.webp?v=1759282885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147d74ffb881011c08bcc6752a16b633b1636255.webp?v=1759282885","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43754660921443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FW61","requires_shipping":true,"taxable":true,"featured_image":{"id":34540947374179,"product_id":7892145832035,"position":9,"created_at":"2025-10-01T09:41:20+08:00","updated_at":"2025-10-01T09:41:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882","variant_ids":[43754660921443]},"available":true,"name":"iPhone 14 Plus Mod NX 咻咻熊 泥的貓貓們 - 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-FW61","featured_media":{"alt":null,"id":26110714511459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43754660921443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FW61","requires_shipping":true,"taxable":true,"featured_image":{"id":34540947374179,"product_id":7892145832035,"position":9,"created_at":"2025-10-01T09:41:20+08:00","updated_at":"2025-10-01T09:41:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882","variant_ids":[43754660921443]},"available":true,"name":"iPhone 14 Plus Mod NX 咻咻熊 泥的貓貓們 - 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-FW61","featured_media":{"alt":null,"id":26110714511459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7014eb72650a0c20640868ea7eac4a467de654.webp?v=1759282882"}},"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: "停產" }