$product = {"id":7988604698723,"title":"iPhone X SolidSuit 梵谷博物館 頭","handle":"iphone-x-solidsuit-classic-vr06","description":null,"published_at":"2026-04-02T15:01:11+08:00","created_at":"2026-03-31T14:36:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-vangoghmuseum","device-iPhone X","merge","reseller-vangoghmuseum"],"price":83000,"price_min":83000,"price_max":83000,"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":44092247965795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580558737507,"product_id":7988604698723,"position":7,"created_at":"2026-04-02T11:21:25+08:00","updated_at":"2026-04-02T11:21:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087","variant_ids":[44092247965795]},"available":true,"name":"iPhone X SolidSuit 梵谷博物館 頭 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-VR06","featured_media":{"alt":null,"id":27113180332131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_2fb5b6db-0049-4780-a923-a776b8d3f202.webp?v=1774938980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_dca62554-7297-454a-981a-f7ca73549e5c.webp?v=1774938981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_7aaaa936-9061-43e7-8718-cde824693624.webp?v=1774938981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_91aa2c42-7735-4a7b-969e-90ad56ffdf91.webp?v=1775020864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_2a93de5f-9106-4077-90a0-4855f494b9d8.webp?v=1775020865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_06ae8ee2-8a07-44c9-90a3-1d81cd8440db.webp?v=1775020865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_1751c6e0-1342-458c-970d-e4073d228e50.webp?v=1775100088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_e0c88f9a-11b3-4994-b330-38696870c724.webp?v=1775100088"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_2fb5b6db-0049-4780-a923-a776b8d3f202.webp?v=1774938980","options":["color"],"media":[{"alt":null,"id":27102160552035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_2fb5b6db-0049-4780-a923-a776b8d3f202.webp?v=1774938980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_2fb5b6db-0049-4780-a923-a776b8d3f202.webp?v=1774938980","width":2000},{"alt":null,"id":27102160814179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_dca62554-7297-454a-981a-f7ca73549e5c.webp?v=1774938981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_dca62554-7297-454a-981a-f7ca73549e5c.webp?v=1774938981","width":2000},{"alt":null,"id":27102161076323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_7aaaa936-9061-43e7-8718-cde824693624.webp?v=1774938981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_7aaaa936-9061-43e7-8718-cde824693624.webp?v=1774938981","width":2000},{"alt":null,"id":27107904946275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_91aa2c42-7735-4a7b-969e-90ad56ffdf91.webp?v=1775020864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_91aa2c42-7735-4a7b-969e-90ad56ffdf91.webp?v=1775020864","width":2000},{"alt":null,"id":27107905110115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_2a93de5f-9106-4077-90a0-4855f494b9d8.webp?v=1775020865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_2a93de5f-9106-4077-90a0-4855f494b9d8.webp?v=1775020865","width":2000},{"alt":null,"id":27107905241187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_06ae8ee2-8a07-44c9-90a3-1d81cd8440db.webp?v=1775020865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_06ae8ee2-8a07-44c9-90a3-1d81cd8440db.webp?v=1775020865","width":2000},{"alt":null,"id":27113180332131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087","width":2000},{"alt":null,"id":27113180594275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_1751c6e0-1342-458c-970d-e4073d228e50.webp?v=1775100088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c198fe10293b052c4945760bfd8844792b389be_1751c6e0-1342-458c-970d-e4073d228e50.webp?v=1775100088","width":2000},{"alt":null,"id":27113181151331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_e0c88f9a-11b3-4994-b330-38696870c724.webp?v=1775100088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e67b8ec1fc2dc75d1f908ae0c10093d0e549a2bf_e0c88f9a-11b3-4994-b330-38696870c724.webp?v=1775100088","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44092247965795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580558737507,"product_id":7988604698723,"position":7,"created_at":"2026-04-02T11:21:25+08:00","updated_at":"2026-04-02T11:21:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087","variant_ids":[44092247965795]},"available":true,"name":"iPhone X SolidSuit 梵谷博物館 頭 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-VR06","featured_media":{"alt":null,"id":27113180332131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44092247965795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-VR06","requires_shipping":true,"taxable":true,"featured_image":{"id":35580558737507,"product_id":7988604698723,"position":7,"created_at":"2026-04-02T11:21:25+08:00","updated_at":"2026-04-02T11:21:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087","variant_ids":[44092247965795]},"available":true,"name":"iPhone X SolidSuit 梵谷博物館 頭 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-VR06","featured_media":{"alt":null,"id":27113180332131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84b856bead379cbac8f6d03dc16f96282715bf04_0838c409-380c-43ee-9a19-7aa9d37195c1.webp?v=1775100087"}},"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: "停產" }