$product = {"id":7892083474531,"title":"iPhone 14 Pro Max Clear 咻咻熊 睡午覺","handle":"iphone-14-pro-max-jellytint-fw60","description":null,"published_at":"2025-10-01T12:29:42+08:00","created_at":"2025-10-01T09:28:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 14 Pro Max","merge","reseller-xiuxiubear"],"price":128000,"price_min":128000,"price_max":128000,"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":43754419814499,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":36195662692451,"product_id":7892083474531,"position":6,"created_at":"2026-07-07T14:36:37+08:00","updated_at":"2026-07-07T14:36:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199","variant_ids":[43754419814499]},"available":true,"name":"iPhone 14 Pro Max Clear 咻咻熊 睡午覺 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-FW60","featured_media":{"alt":null,"id":27700472610915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754422435939,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":36195661774947,"product_id":7892083474531,"position":5,"created_at":"2026-07-07T14:36:36+08:00","updated_at":"2026-07-07T14:36:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311_ea460a43-29ad-4350-beb6-34ecdb72bcdb.webp?v=1783406198","variant_ids":[43754422435939]},"available":true,"name":"iPhone 14 Pro Max Clear 咻咻熊 睡午覺 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-FW60","featured_media":{"alt":null,"id":27700472119395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311_ea460a43-29ad-4350-beb6-34ecdb72bcdb.webp?v=1783406198"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754422501475,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":36195663282275,"product_id":7892083474531,"position":7,"created_at":"2026-07-07T14:36:38+08:00","updated_at":"2026-07-07T14:36:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc_6efc6a1e-322e-45ed-a919-3024e4433f6f.webp?v=1783406200","variant_ids":[43754422501475]},"available":true,"name":"iPhone 14 Pro Max Clear 咻咻熊 睡午覺 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-FW60","featured_media":{"alt":null,"id":27700473200739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc_6efc6a1e-322e-45ed-a919-3024e4433f6f.webp?v=1783406200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc.webp?v=1759282110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf99fd972c66b1c8a1017e0969b72ae65c33deb.webp?v=1759282111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9.webp?v=1759282111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311.webp?v=1759282112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311_ea460a43-29ad-4350-beb6-34ecdb72bcdb.webp?v=1783406198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc_6efc6a1e-322e-45ed-a919-3024e4433f6f.webp?v=1783406200"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc.webp?v=1759282110","options":["color"],"media":[{"alt":null,"id":26110460756067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc.webp?v=1759282110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc.webp?v=1759282110","width":2000},{"alt":null,"id":26110460919907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf99fd972c66b1c8a1017e0969b72ae65c33deb.webp?v=1759282111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf99fd972c66b1c8a1017e0969b72ae65c33deb.webp?v=1759282111","width":2000},{"alt":null,"id":26110460985443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9.webp?v=1759282111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9.webp?v=1759282111","width":2000},{"alt":null,"id":26110461149283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311.webp?v=1759282112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311.webp?v=1759282112","width":2000},{"alt":null,"id":27700472119395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311_ea460a43-29ad-4350-beb6-34ecdb72bcdb.webp?v=1783406198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311_ea460a43-29ad-4350-beb6-34ecdb72bcdb.webp?v=1783406198","width":2000},{"alt":null,"id":27700472610915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199","width":2000},{"alt":null,"id":27700473200739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc_6efc6a1e-322e-45ed-a919-3024e4433f6f.webp?v=1783406200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc_6efc6a1e-322e-45ed-a919-3024e4433f6f.webp?v=1783406200","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43754419814499,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":36195662692451,"product_id":7892083474531,"position":6,"created_at":"2026-07-07T14:36:37+08:00","updated_at":"2026-07-07T14:36:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199","variant_ids":[43754419814499]},"available":true,"name":"iPhone 14 Pro Max Clear 咻咻熊 睡午覺 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-FW60","featured_media":{"alt":null,"id":27700472610915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754422435939,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012630G-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":36195661774947,"product_id":7892083474531,"position":5,"created_at":"2026-07-07T14:36:36+08:00","updated_at":"2026-07-07T14:36:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311_ea460a43-29ad-4350-beb6-34ecdb72bcdb.webp?v=1783406198","variant_ids":[43754422435939]},"available":true,"name":"iPhone 14 Pro Max Clear 咻咻熊 睡午覺 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630G-FW60","featured_media":{"alt":null,"id":27700472119395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/161d86b6cbe57b0e501a6cf2c5136475157a5311_ea460a43-29ad-4350-beb6-34ecdb72bcdb.webp?v=1783406198"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754422501475,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012630H-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":36195663282275,"product_id":7892083474531,"position":7,"created_at":"2026-07-07T14:36:38+08:00","updated_at":"2026-07-07T14:36:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc_6efc6a1e-322e-45ed-a919-3024e4433f6f.webp?v=1783406200","variant_ids":[43754422501475]},"available":true,"name":"iPhone 14 Pro Max Clear 咻咻熊 睡午覺 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630H-FW60","featured_media":{"alt":null,"id":27700473200739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c3805b51291331bac5efd76949e91c37f6ffcc_6efc6a1e-322e-45ed-a919-3024e4433f6f.webp?v=1783406200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43754419814499,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012630J-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":36195662692451,"product_id":7892083474531,"position":6,"created_at":"2026-07-07T14:36:37+08:00","updated_at":"2026-07-07T14:36:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199","variant_ids":[43754419814499]},"available":true,"name":"iPhone 14 Pro Max Clear 咻咻熊 睡午覺 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012630J-FW60","featured_media":{"alt":null,"id":27700472610915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b35209aea42119927231f30c5f03d3263590f1f9_451ca1c8-2fec-4b5a-9ab8-480f991d57c0.webp?v=1783406199"}},"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: "停產" }