$product = {"id":7892154056803,"title":"iPhone 14 Pro Mod NX 咻咻熊 蛋糕日","handle":"iphone-14-pro-mod-nx-printable-fw57","description":null,"published_at":"2025-10-01T12:12:33+08:00","created_at":"2025-10-01T09:42:47+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":43754689888355,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540979290211,"product_id":7892154056803,"position":5,"created_at":"2025-10-01T09:42:53+08:00","updated_at":"2025-10-01T09:42:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975","variant_ids":[43754689888355]},"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-FW57","featured_media":{"alt":null,"id":26110746427491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754690052195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540979421283,"product_id":7892154056803,"position":6,"created_at":"2025-10-01T09:42:53+08:00","updated_at":"2025-10-01T09:42:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56408cbe54ad8eabc58b01f3aee9fefab0a99ef7.webp?v=1759282975","variant_ids":[43754690052195]},"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-FW57","featured_media":{"alt":null,"id":26110746558563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56408cbe54ad8eabc58b01f3aee9fefab0a99ef7.webp?v=1759282975"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754690117731,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540978864227,"product_id":7892154056803,"position":2,"created_at":"2025-10-01T09:42:51+08:00","updated_at":"2025-10-01T09:42:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8937cdf93948e1e48af7d6755298f53aa807c7a0.webp?v=1759282973","variant_ids":[43754690117731]},"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-FW57","featured_media":{"alt":null,"id":26110746001507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8937cdf93948e1e48af7d6755298f53aa807c7a0.webp?v=1759282973"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de245d1ac027768bed7006761839a7f7d3b9befa.webp?v=1759282972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8937cdf93948e1e48af7d6755298f53aa807c7a0.webp?v=1759282973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aa647d0909f5789816adb8890255e6d19ac7b41.webp?v=1759282974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50399518cfbb7d3941bada5b5db733424ee1da13.webp?v=1759282974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56408cbe54ad8eabc58b01f3aee9fefab0a99ef7.webp?v=1759282975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a05032f35053689387b09dc4a070504e23e60d.webp?v=1759282976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cfccb9fb923ea93ff54481841670678bef232fa.webp?v=1759282977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3230a5587dd2aadf4b237d4deb650ce75cfaa2bd.webp?v=1759282977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42253d08f277efb556893fd30245966f18237659.webp?v=1759282977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83234faab28af4f355a6b19872fa101799493940.webp?v=1759282978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe20a1486082d3be91d1443e72e099bae4e238de.webp?v=1759282978"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de245d1ac027768bed7006761839a7f7d3b9befa.webp?v=1759282972","options":["color"],"media":[{"alt":null,"id":26110745968739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de245d1ac027768bed7006761839a7f7d3b9befa.webp?v=1759282972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de245d1ac027768bed7006761839a7f7d3b9befa.webp?v=1759282972","width":2000},{"alt":null,"id":26110746001507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8937cdf93948e1e48af7d6755298f53aa807c7a0.webp?v=1759282973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8937cdf93948e1e48af7d6755298f53aa807c7a0.webp?v=1759282973","width":2000},{"alt":null,"id":26110746165347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aa647d0909f5789816adb8890255e6d19ac7b41.webp?v=1759282974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aa647d0909f5789816adb8890255e6d19ac7b41.webp?v=1759282974","width":2000},{"alt":null,"id":26110746296419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50399518cfbb7d3941bada5b5db733424ee1da13.webp?v=1759282974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50399518cfbb7d3941bada5b5db733424ee1da13.webp?v=1759282974","width":2000},{"alt":null,"id":26110746427491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975","width":2000},{"alt":null,"id":26110746558563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56408cbe54ad8eabc58b01f3aee9fefab0a99ef7.webp?v=1759282975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56408cbe54ad8eabc58b01f3aee9fefab0a99ef7.webp?v=1759282975","width":2000},{"alt":null,"id":26110746689635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a05032f35053689387b09dc4a070504e23e60d.webp?v=1759282976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a05032f35053689387b09dc4a070504e23e60d.webp?v=1759282976","width":2000},{"alt":null,"id":26110746919011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cfccb9fb923ea93ff54481841670678bef232fa.webp?v=1759282977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cfccb9fb923ea93ff54481841670678bef232fa.webp?v=1759282977","width":2000},{"alt":null,"id":26110747115619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3230a5587dd2aadf4b237d4deb650ce75cfaa2bd.webp?v=1759282977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3230a5587dd2aadf4b237d4deb650ce75cfaa2bd.webp?v=1759282977","width":2000},{"alt":null,"id":26110747344995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42253d08f277efb556893fd30245966f18237659.webp?v=1759282977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42253d08f277efb556893fd30245966f18237659.webp?v=1759282977","width":2000},{"alt":null,"id":26110747541603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83234faab28af4f355a6b19872fa101799493940.webp?v=1759282978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83234faab28af4f355a6b19872fa101799493940.webp?v=1759282978","width":2000},{"alt":null,"id":26110747705443,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe20a1486082d3be91d1443e72e099bae4e238de.webp?v=1759282978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe20a1486082d3be91d1443e72e099bae4e238de.webp?v=1759282978","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43754689888355,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540979290211,"product_id":7892154056803,"position":5,"created_at":"2025-10-01T09:42:53+08:00","updated_at":"2025-10-01T09:42:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975","variant_ids":[43754689888355]},"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-FW57","featured_media":{"alt":null,"id":26110746427491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754690052195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540979421283,"product_id":7892154056803,"position":6,"created_at":"2025-10-01T09:42:53+08:00","updated_at":"2025-10-01T09:42:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56408cbe54ad8eabc58b01f3aee9fefab0a99ef7.webp?v=1759282975","variant_ids":[43754690052195]},"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-FW57","featured_media":{"alt":null,"id":26110746558563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56408cbe54ad8eabc58b01f3aee9fefab0a99ef7.webp?v=1759282975"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754690117731,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540978864227,"product_id":7892154056803,"position":2,"created_at":"2025-10-01T09:42:51+08:00","updated_at":"2025-10-01T09:42:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8937cdf93948e1e48af7d6755298f53aa807c7a0.webp?v=1759282973","variant_ids":[43754690117731]},"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-FW57","featured_media":{"alt":null,"id":26110746001507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8937cdf93948e1e48af7d6755298f53aa807c7a0.webp?v=1759282973"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43754689888355,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540979290211,"product_id":7892154056803,"position":5,"created_at":"2025-10-01T09:42:53+08:00","updated_at":"2025-10-01T09:42:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975","variant_ids":[43754689888355]},"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-FW57","featured_media":{"alt":null,"id":26110746427491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5df538c1c490dfe3a9f025674141ddaaa13f8c0.webp?v=1759282975"}},"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: "停產" }