$product = {"id":7829690941539,"title":"【合圖用】iPhone 15 Plus SolidX","handle":"iphone-15-plus-solidx-for-merge","description":null,"published_at":"2025-07-31T09:37:56+08:00","created_at":"2025-07-01T16:42:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["bumper-for-merge","device-iphone-15-plus","type-solidx","viewable"],"price":125000,"price_min":125000,"price_max":125000,"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":43504570204259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-","requires_shipping":true,"taxable":true,"featured_image":{"id":34106028982371,"product_id":7829690941539,"position":10,"created_at":"2025-07-01T16:42:41+08:00","updated_at":"2025-07-01T16:42:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363","variant_ids":[43504570204259]},"available":true,"name":"【合圖用】iPhone 15 Plus SolidX - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-","featured_media":{"alt":null,"id":25761159872611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43504570269795,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-","requires_shipping":true,"taxable":true,"featured_image":{"id":34106023280739,"product_id":7829690941539,"position":3,"created_at":"2025-07-01T16:42:38+08:00","updated_at":"2025-07-01T16:42:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f69ff9c0a9c8d787393a96d6f1cc112f8664d1e_7dda6688-163d-4872-80f7-b28dc1d5f3e3.webp?v=1751359360","variant_ids":[43504570269795]},"available":true,"name":"【合圖用】iPhone 15 Plus SolidX - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-","featured_media":{"alt":null,"id":25761156268131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f69ff9c0a9c8d787393a96d6f1cc112f8664d1e_7dda6688-163d-4872-80f7-b28dc1d5f3e3.webp?v=1751359360"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fb236659c0f9b97373121d65b2b56b6e0d8e6aa_c1fd0c5a-9411-4715-9268-1623b96f8ae1.webp?v=1751359359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d064f1102f8525d0e2f8b11e55070bd0c963ed1_b8f70e61-7d71-4082-bf5b-4629c99b1383.webp?v=1751359359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f69ff9c0a9c8d787393a96d6f1cc112f8664d1e_7dda6688-163d-4872-80f7-b28dc1d5f3e3.webp?v=1751359360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b146a0403a57d57f2d74205e8a0402acae2bbb6_30bcf5b6-774c-4ec9-be99-6ef3411570be.webp?v=1751359360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d01a4ea4a57370ec480da86bd1b48eee46e27822_357dccf2-6654-444c-8f2e-1574d0c5503f.webp?v=1751359362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba249d5efb88d2f157916e272316f4cba1dfda4_29f4e320-1c00-4f99-8b28-2a3406d00ce4.webp?v=1751359362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c0f515c81df9ec6ab8dcf5f0411ba79c4d2071_39a724c3-0329-4f20-8f6d-6d56c2481684.webp?v=1751359362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f76440749414ae533ce307e0beca3915e40faba_241251e9-2cfb-466f-a758-1b6be9e63a2e.webp?v=1751359362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f59026a2e29df8e149c7018fefaaee8f0dc5ad_feb88386-0669-450f-82ca-e5c0e1f0eab4.webp?v=1751359363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fb236659c0f9b97373121d65b2b56b6e0d8e6aa_c1fd0c5a-9411-4715-9268-1623b96f8ae1.webp?v=1751359359","options":["color"],"media":[{"alt":null,"id":25761155219555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fb236659c0f9b97373121d65b2b56b6e0d8e6aa_c1fd0c5a-9411-4715-9268-1623b96f8ae1.webp?v=1751359359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fb236659c0f9b97373121d65b2b56b6e0d8e6aa_c1fd0c5a-9411-4715-9268-1623b96f8ae1.webp?v=1751359359","width":2000},{"alt":null,"id":25761155678307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d064f1102f8525d0e2f8b11e55070bd0c963ed1_b8f70e61-7d71-4082-bf5b-4629c99b1383.webp?v=1751359359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d064f1102f8525d0e2f8b11e55070bd0c963ed1_b8f70e61-7d71-4082-bf5b-4629c99b1383.webp?v=1751359359","width":2000},{"alt":null,"id":25761156268131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f69ff9c0a9c8d787393a96d6f1cc112f8664d1e_7dda6688-163d-4872-80f7-b28dc1d5f3e3.webp?v=1751359360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f69ff9c0a9c8d787393a96d6f1cc112f8664d1e_7dda6688-163d-4872-80f7-b28dc1d5f3e3.webp?v=1751359360","width":2000},{"alt":null,"id":25761156825187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b146a0403a57d57f2d74205e8a0402acae2bbb6_30bcf5b6-774c-4ec9-be99-6ef3411570be.webp?v=1751359360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b146a0403a57d57f2d74205e8a0402acae2bbb6_30bcf5b6-774c-4ec9-be99-6ef3411570be.webp?v=1751359360","width":2000},{"alt":null,"id":25761157349475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d01a4ea4a57370ec480da86bd1b48eee46e27822_357dccf2-6654-444c-8f2e-1574d0c5503f.webp?v=1751359362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d01a4ea4a57370ec480da86bd1b48eee46e27822_357dccf2-6654-444c-8f2e-1574d0c5503f.webp?v=1751359362","width":2000},{"alt":null,"id":25761157808227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba249d5efb88d2f157916e272316f4cba1dfda4_29f4e320-1c00-4f99-8b28-2a3406d00ce4.webp?v=1751359362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba249d5efb88d2f157916e272316f4cba1dfda4_29f4e320-1c00-4f99-8b28-2a3406d00ce4.webp?v=1751359362","width":2000},{"alt":null,"id":25761158463587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c0f515c81df9ec6ab8dcf5f0411ba79c4d2071_39a724c3-0329-4f20-8f6d-6d56c2481684.webp?v=1751359362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c0f515c81df9ec6ab8dcf5f0411ba79c4d2071_39a724c3-0329-4f20-8f6d-6d56c2481684.webp?v=1751359362","width":2000},{"alt":null,"id":25761158856803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f76440749414ae533ce307e0beca3915e40faba_241251e9-2cfb-466f-a758-1b6be9e63a2e.webp?v=1751359362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f76440749414ae533ce307e0beca3915e40faba_241251e9-2cfb-466f-a758-1b6be9e63a2e.webp?v=1751359362","width":2000},{"alt":null,"id":25761159413859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f59026a2e29df8e149c7018fefaaee8f0dc5ad_feb88386-0669-450f-82ca-e5c0e1f0eab4.webp?v=1751359363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63f59026a2e29df8e149c7018fefaaee8f0dc5ad_feb88386-0669-450f-82ca-e5c0e1f0eab4.webp?v=1751359363","width":2000},{"alt":null,"id":25761159872611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43504570204259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-","requires_shipping":true,"taxable":true,"featured_image":{"id":34106028982371,"product_id":7829690941539,"position":10,"created_at":"2025-07-01T16:42:41+08:00","updated_at":"2025-07-01T16:42:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363","variant_ids":[43504570204259]},"available":true,"name":"【合圖用】iPhone 15 Plus SolidX - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-","featured_media":{"alt":null,"id":25761159872611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43504570269795,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-","requires_shipping":true,"taxable":true,"featured_image":{"id":34106023280739,"product_id":7829690941539,"position":3,"created_at":"2025-07-01T16:42:38+08:00","updated_at":"2025-07-01T16:42:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f69ff9c0a9c8d787393a96d6f1cc112f8664d1e_7dda6688-163d-4872-80f7-b28dc1d5f3e3.webp?v=1751359360","variant_ids":[43504570269795]},"available":true,"name":"【合圖用】iPhone 15 Plus SolidX - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-","featured_media":{"alt":null,"id":25761156268131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f69ff9c0a9c8d787393a96d6f1cc112f8664d1e_7dda6688-163d-4872-80f7-b28dc1d5f3e3.webp?v=1751359360"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43504570204259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-","requires_shipping":true,"taxable":true,"featured_image":{"id":34106028982371,"product_id":7829690941539,"position":10,"created_at":"2025-07-01T16:42:41+08:00","updated_at":"2025-07-01T16:42:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363","variant_ids":[43504570204259]},"available":true,"name":"【合圖用】iPhone 15 Plus SolidX - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-","featured_media":{"alt":null,"id":25761159872611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5869db24e31ff911f21a10fd76fc51dee76b100_4daec278-11bd-4c3b-8ab8-baeb46720c92.webp?v=1751359363"}},"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: "停產" }