$product = {"id":7158441771107,"title":"iPhone 15 Plus Clear NBA Logo-波士頓塞爾提克 Boston Celtics","handle":"iphone-15-plus-jellytint-pm19","description":null,"published_at":"2024-02-02T09:51:46+08:00","created_at":"2024-01-26T15:23:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nba","device-iPhone 15 Plus","merge","reseller-nba"],"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":41209819693155,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012960I-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152392188003,"product_id":7158441771107,"position":10,"created_at":"2026-07-02T12:18:40+08:00","updated_at":"2026-07-02T12:18:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922","variant_ids":[41209819693155]},"available":true,"name":"iPhone 15 Plus Clear NBA Logo-波士頓塞爾提克 Boston Celtics - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012960I-PM19","featured_media":{"alt":null,"id":27657265676387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41209819725923,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012960J-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152391958627,"product_id":7158441771107,"position":9,"created_at":"2026-07-02T12:18:40+08:00","updated_at":"2026-07-02T12:18:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_74c7c0f6-ff13-43db-ba3b-afc95811c5d3.webp?v=1782965922","variant_ids":[41209819725923]},"available":true,"name":"iPhone 15 Plus Clear NBA Logo-波士頓塞爾提克 Boston Celtics - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012960J-PM19","featured_media":{"alt":null,"id":27657265447011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_74c7c0f6-ff13-43db-ba3b-afc95811c5d3.webp?v=1782965922"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-296-PM19_a846390f-998d-40f5-b470-d1ae8d6d7f37.png?v=1706253840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599372bde71d262b45bb56f0f017dde9d9e47ad6.webp?v=1782208795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f.webp?v=1782208795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347.webp?v=1782208796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_dcd8aae8-97ed-48a8-a9d2-cb3d10764645.webp?v=1782958036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_0c4e253e-2b1c-42a4-bd58-fbda29830587.webp?v=1782958037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_18df8cb6-429e-40c1-8492-df0c645d8ca7.webp?v=1782961496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_4aafe09b-e4d6-4cfb-b7e4-87e9d9147374.webp?v=1782961497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_74c7c0f6-ff13-43db-ba3b-afc95811c5d3.webp?v=1782965922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-296-PM19_a846390f-998d-40f5-b470-d1ae8d6d7f37.png?v=1706253840","options":["color"],"media":[{"alt":null,"id":23217572479075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-296-PM19_a846390f-998d-40f5-b470-d1ae8d6d7f37.png?v=1706253840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-296-PM19_a846390f-998d-40f5-b470-d1ae8d6d7f37.png?v=1706253840","width":2000},{"alt":null,"id":27576459919459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599372bde71d262b45bb56f0f017dde9d9e47ad6.webp?v=1782208795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/599372bde71d262b45bb56f0f017dde9d9e47ad6.webp?v=1782208795","width":2000},{"alt":null,"id":27576460083299,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f.webp?v=1782208795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f.webp?v=1782208795","width":2000},{"alt":null,"id":27576460410979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347.webp?v=1782208796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347.webp?v=1782208796","width":2000},{"alt":null,"id":27656024391779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_dcd8aae8-97ed-48a8-a9d2-cb3d10764645.webp?v=1782958036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_dcd8aae8-97ed-48a8-a9d2-cb3d10764645.webp?v=1782958036","width":2000},{"alt":null,"id":27656024752227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_0c4e253e-2b1c-42a4-bd58-fbda29830587.webp?v=1782958037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_0c4e253e-2b1c-42a4-bd58-fbda29830587.webp?v=1782958037","width":2000},{"alt":null,"id":27656783069283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_18df8cb6-429e-40c1-8492-df0c645d8ca7.webp?v=1782961496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_18df8cb6-429e-40c1-8492-df0c645d8ca7.webp?v=1782961496","width":2000},{"alt":null,"id":27656783757411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_4aafe09b-e4d6-4cfb-b7e4-87e9d9147374.webp?v=1782961497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_4aafe09b-e4d6-4cfb-b7e4-87e9d9147374.webp?v=1782961497","width":2000},{"alt":null,"id":27657265447011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_74c7c0f6-ff13-43db-ba3b-afc95811c5d3.webp?v=1782965922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_74c7c0f6-ff13-43db-ba3b-afc95811c5d3.webp?v=1782965922","width":2000},{"alt":null,"id":27657265676387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41209819693155,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012960I-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152392188003,"product_id":7158441771107,"position":10,"created_at":"2026-07-02T12:18:40+08:00","updated_at":"2026-07-02T12:18:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922","variant_ids":[41209819693155]},"available":true,"name":"iPhone 15 Plus Clear NBA Logo-波士頓塞爾提克 Boston Celtics - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012960I-PM19","featured_media":{"alt":null,"id":27657265676387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41209819725923,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012960J-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152391958627,"product_id":7158441771107,"position":9,"created_at":"2026-07-02T12:18:40+08:00","updated_at":"2026-07-02T12:18:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_74c7c0f6-ff13-43db-ba3b-afc95811c5d3.webp?v=1782965922","variant_ids":[41209819725923]},"available":true,"name":"iPhone 15 Plus Clear NBA Logo-波士頓塞爾提克 Boston Celtics - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012960J-PM19","featured_media":{"alt":null,"id":27657265447011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca84917fb527865bcd92d48b414fe89b9a3bf347_74c7c0f6-ff13-43db-ba3b-afc95811c5d3.webp?v=1782965922"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41209819693155,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012960I-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152392188003,"product_id":7158441771107,"position":10,"created_at":"2026-07-02T12:18:40+08:00","updated_at":"2026-07-02T12:18:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922","variant_ids":[41209819693155]},"available":true,"name":"iPhone 15 Plus Clear NBA Logo-波士頓塞爾提克 Boston Celtics - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012960I-PM19","featured_media":{"alt":null,"id":27657265676387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add77c844760932e9705f997c6df374d33c12b4f_38603573-0931-469b-a061-5a72ed576ad2.webp?v=1782965922"}},"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: "停產" }