$product = {"id":7892128661603,"title":"iPhone 14 Pro Mod NX 咻咻熊 做一個好夢","handle":"iphone-14-pro-mod-nx-printable-fw56","description":null,"published_at":"2025-10-01T12:18:48+08:00","created_at":"2025-10-01T09:37:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 14 Pro","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":43754591420515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW56","requires_shipping":true,"taxable":true,"featured_image":{"id":34540873023587,"product_id":7892128661603,"position":5,"created_at":"2025-10-01T09:37:42+08:00","updated_at":"2025-10-01T09:37:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664","variant_ids":[43754591420515]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 做一個好夢 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-FW56","featured_media":{"alt":null,"id":26110640160867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754591584355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FW56","requires_shipping":true,"taxable":true,"featured_image":{"id":34540873187427,"product_id":7892128661603,"position":6,"created_at":"2025-10-01T09:37:42+08:00","updated_at":"2025-10-01T09:37:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd871dc927141071ff5943b84497cd987f95367.webp?v=1759282664","variant_ids":[43754591584355]},"available":true,"name":"iPhone 14 Pro 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":"NPB0126224-FW56","featured_media":{"alt":null,"id":26110640291939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd871dc927141071ff5943b84497cd987f95367.webp?v=1759282664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754591649891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FW56","requires_shipping":true,"taxable":true,"featured_image":{"id":34540872597603,"product_id":7892128661603,"position":1,"created_at":"2025-10-01T09:37:40+08:00","updated_at":"2025-10-01T09:37:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c52276f0ce3b43df35ded826cba9144b7304c1.webp?v=1759282662","variant_ids":[43754591649891]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 做一個好夢 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-FW56","featured_media":{"alt":null,"id":26110639734883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c52276f0ce3b43df35ded826cba9144b7304c1.webp?v=1759282662"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c52276f0ce3b43df35ded826cba9144b7304c1.webp?v=1759282662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f196547351b3c35ecc11c9b1889166b01a4ad40.webp?v=1759282663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a6727b28ba1cbc1af19fe4a66e6fa22f52ec825.webp?v=1759282663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe88456c584156ea9e15299e6ae006fa6dc8c01a.webp?v=1759282664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd871dc927141071ff5943b84497cd987f95367.webp?v=1759282664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1061809a1562e965df46d5f014649c24b76563.webp?v=1759282665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/788789aa532acde7d71c0e8fe2d21364c8a0adb6.webp?v=1759282665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5143c185d0f8fb711f62b685f74996876e3af285.webp?v=1759282666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab2a3933523556f2f04cee074acd58a17d9a8a05.webp?v=1759282667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc138363506fbaebe6524c12145e37bff78e96f2.webp?v=1759282667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80365a03f5cde421f25492ad71e5d230540b2edb.webp?v=1759282668"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c52276f0ce3b43df35ded826cba9144b7304c1.webp?v=1759282662","options":["color"],"media":[{"alt":null,"id":26110639734883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c52276f0ce3b43df35ded826cba9144b7304c1.webp?v=1759282662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c52276f0ce3b43df35ded826cba9144b7304c1.webp?v=1759282662","width":2000},{"alt":null,"id":26110639865955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f196547351b3c35ecc11c9b1889166b01a4ad40.webp?v=1759282663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f196547351b3c35ecc11c9b1889166b01a4ad40.webp?v=1759282663","width":2000},{"alt":null,"id":26110639964259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a6727b28ba1cbc1af19fe4a66e6fa22f52ec825.webp?v=1759282663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a6727b28ba1cbc1af19fe4a66e6fa22f52ec825.webp?v=1759282663","width":2000},{"alt":null,"id":26110640062563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe88456c584156ea9e15299e6ae006fa6dc8c01a.webp?v=1759282664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe88456c584156ea9e15299e6ae006fa6dc8c01a.webp?v=1759282664","width":2000},{"alt":null,"id":26110640160867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664","width":2000},{"alt":null,"id":26110640291939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd871dc927141071ff5943b84497cd987f95367.webp?v=1759282664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd871dc927141071ff5943b84497cd987f95367.webp?v=1759282664","width":2000},{"alt":null,"id":26110640423011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1061809a1562e965df46d5f014649c24b76563.webp?v=1759282665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1061809a1562e965df46d5f014649c24b76563.webp?v=1759282665","width":2000},{"alt":null,"id":26110640554083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/788789aa532acde7d71c0e8fe2d21364c8a0adb6.webp?v=1759282665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/788789aa532acde7d71c0e8fe2d21364c8a0adb6.webp?v=1759282665","width":2000},{"alt":null,"id":26110640783459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5143c185d0f8fb711f62b685f74996876e3af285.webp?v=1759282666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5143c185d0f8fb711f62b685f74996876e3af285.webp?v=1759282666","width":2000},{"alt":null,"id":26110641045603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab2a3933523556f2f04cee074acd58a17d9a8a05.webp?v=1759282667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab2a3933523556f2f04cee074acd58a17d9a8a05.webp?v=1759282667","width":2000},{"alt":null,"id":26110641340515,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc138363506fbaebe6524c12145e37bff78e96f2.webp?v=1759282667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc138363506fbaebe6524c12145e37bff78e96f2.webp?v=1759282667","width":2000},{"alt":null,"id":26110641569891,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80365a03f5cde421f25492ad71e5d230540b2edb.webp?v=1759282668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80365a03f5cde421f25492ad71e5d230540b2edb.webp?v=1759282668","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43754591420515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW56","requires_shipping":true,"taxable":true,"featured_image":{"id":34540873023587,"product_id":7892128661603,"position":5,"created_at":"2025-10-01T09:37:42+08:00","updated_at":"2025-10-01T09:37:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664","variant_ids":[43754591420515]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 做一個好夢 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-FW56","featured_media":{"alt":null,"id":26110640160867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754591584355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FW56","requires_shipping":true,"taxable":true,"featured_image":{"id":34540873187427,"product_id":7892128661603,"position":6,"created_at":"2025-10-01T09:37:42+08:00","updated_at":"2025-10-01T09:37:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd871dc927141071ff5943b84497cd987f95367.webp?v=1759282664","variant_ids":[43754591584355]},"available":true,"name":"iPhone 14 Pro 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":"NPB0126224-FW56","featured_media":{"alt":null,"id":26110640291939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd871dc927141071ff5943b84497cd987f95367.webp?v=1759282664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754591649891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FW56","requires_shipping":true,"taxable":true,"featured_image":{"id":34540872597603,"product_id":7892128661603,"position":1,"created_at":"2025-10-01T09:37:40+08:00","updated_at":"2025-10-01T09:37:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c52276f0ce3b43df35ded826cba9144b7304c1.webp?v=1759282662","variant_ids":[43754591649891]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 做一個好夢 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-FW56","featured_media":{"alt":null,"id":26110639734883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c52276f0ce3b43df35ded826cba9144b7304c1.webp?v=1759282662"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43754591420515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW56","requires_shipping":true,"taxable":true,"featured_image":{"id":34540873023587,"product_id":7892128661603,"position":5,"created_at":"2025-10-01T09:37:42+08:00","updated_at":"2025-10-01T09:37:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664","variant_ids":[43754591420515]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 做一個好夢 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-FW56","featured_media":{"alt":null,"id":26110640160867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e80088357815b65e8cbe3ad0887e07a061f7cd72.webp?v=1759282664"}},"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: "停產" }