$product = {"id":7155935346787,"title":"iPhone 15 Pro Clear 1G 在幹嘛","handle":"iphone-15-pro-jellytint-iv06","description":null,"published_at":"2024-02-02T09:58:32+08:00","created_at":"2024-01-23T17:22:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-1G","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-1chun","device-iPhone 15 Pro","merge","reseller-1chun"],"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":41197408813155,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322972893283,"product_id":7155935346787,"position":6,"created_at":"2026-07-20T18:28:33+08:00","updated_at":"2026-07-20T18:28:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315","variant_ids":[41197408813155]},"available":true,"name":"iPhone 15 Pro Clear 1G 在幹嘛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-IV06","featured_media":{"alt":null,"id":27826880675939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197408845923,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322971746403,"product_id":7155935346787,"position":5,"created_at":"2026-07-20T18:28:27+08:00","updated_at":"2026-07-20T18:28:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745_9294bf52-2c11-4e22-b747-ec77238c6cb7.webp?v=1784543309","variant_ids":[41197408845923]},"available":true,"name":"iPhone 15 Pro Clear 1G 在幹嘛 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-IV06","featured_media":{"alt":null,"id":27826879529059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745_9294bf52-2c11-4e22-b747-ec77238c6cb7.webp?v=1784543309"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197408878691,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322973909091,"product_id":7155935346787,"position":7,"created_at":"2026-07-20T18:28:38+08:00","updated_at":"2026-07-20T18:28:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc_7a551887-e499-416c-a224-13d4c0aa9a4f.webp?v=1784543320","variant_ids":[41197408878691]},"available":true,"name":"iPhone 15 Pro Clear 1G 在幹嘛 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-IV06","featured_media":{"alt":null,"id":27826881691747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc_7a551887-e499-416c-a224-13d4c0aa9a4f.webp?v=1784543320"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef1f57162e8290d49c7969656e096fb92e8c4d67_5cc98752-a00f-4591-8ac7-a10cd1eb1b4a.webp?v=1706253919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc.webp?v=1782882969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745.webp?v=1782882970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb.webp?v=1782882971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745_9294bf52-2c11-4e22-b747-ec77238c6cb7.webp?v=1784543309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc_7a551887-e499-416c-a224-13d4c0aa9a4f.webp?v=1784543320"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef1f57162e8290d49c7969656e096fb92e8c4d67_5cc98752-a00f-4591-8ac7-a10cd1eb1b4a.webp?v=1706253919","options":["color"],"media":[{"alt":null,"id":23217585160291,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef1f57162e8290d49c7969656e096fb92e8c4d67_5cc98752-a00f-4591-8ac7-a10cd1eb1b4a.webp?v=1706253919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef1f57162e8290d49c7969656e096fb92e8c4d67_5cc98752-a00f-4591-8ac7-a10cd1eb1b4a.webp?v=1706253919","width":2000},{"alt":null,"id":27647720259683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc.webp?v=1782882969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc.webp?v=1782882969","width":2000},{"alt":null,"id":27647721341027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745.webp?v=1782882970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745.webp?v=1782882970","width":2000},{"alt":null,"id":27647721832547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb.webp?v=1782882971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb.webp?v=1782882971","width":2000},{"alt":null,"id":27826879529059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745_9294bf52-2c11-4e22-b747-ec77238c6cb7.webp?v=1784543309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745_9294bf52-2c11-4e22-b747-ec77238c6cb7.webp?v=1784543309","width":2000},{"alt":null,"id":27826880675939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315","width":2000},{"alt":null,"id":27826881691747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc_7a551887-e499-416c-a224-13d4c0aa9a4f.webp?v=1784543320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc_7a551887-e499-416c-a224-13d4c0aa9a4f.webp?v=1784543320","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41197408813155,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322972893283,"product_id":7155935346787,"position":6,"created_at":"2026-07-20T18:28:33+08:00","updated_at":"2026-07-20T18:28:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315","variant_ids":[41197408813155]},"available":true,"name":"iPhone 15 Pro Clear 1G 在幹嘛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-IV06","featured_media":{"alt":null,"id":27826880675939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197408845923,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322971746403,"product_id":7155935346787,"position":5,"created_at":"2026-07-20T18:28:27+08:00","updated_at":"2026-07-20T18:28:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745_9294bf52-2c11-4e22-b747-ec77238c6cb7.webp?v=1784543309","variant_ids":[41197408845923]},"available":true,"name":"iPhone 15 Pro Clear 1G 在幹嘛 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-IV06","featured_media":{"alt":null,"id":27826879529059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860d6708b8370980638fc1467444666b97758745_9294bf52-2c11-4e22-b747-ec77238c6cb7.webp?v=1784543309"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197408878691,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322973909091,"product_id":7155935346787,"position":7,"created_at":"2026-07-20T18:28:38+08:00","updated_at":"2026-07-20T18:28:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc_7a551887-e499-416c-a224-13d4c0aa9a4f.webp?v=1784543320","variant_ids":[41197408878691]},"available":true,"name":"iPhone 15 Pro Clear 1G 在幹嘛 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-IV06","featured_media":{"alt":null,"id":27826881691747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78cc915fd2c2dd4cfc03c3e33e85fbca18379fdc_7a551887-e499-416c-a224-13d4c0aa9a4f.webp?v=1784543320"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41197408813155,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":36322972893283,"product_id":7155935346787,"position":6,"created_at":"2026-07-20T18:28:33+08:00","updated_at":"2026-07-20T18:28:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315","variant_ids":[41197408813155]},"available":true,"name":"iPhone 15 Pro Clear 1G 在幹嘛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-IV06","featured_media":{"alt":null,"id":27826880675939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1678f429a97b68b7c6f1522da403ff66e1b22fb_60abe862-540e-434f-88b7-2d7daa128675.webp?v=1784543315"}},"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: "停產" }