$product = {"id":7916516245603,"title":"iPhone 15 Plus SolidX 火影忍者疾風傳 寫輪眼複製","handle":"iphone-15-plus-solidx-pk92","description":null,"published_at":"2025-12-16T09:32:40+08:00","created_at":"2025-11-06T11:13:03+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-naruto-shippuden","device-iPhone 15 Plus","merge","reseller-naruto-shippuden"],"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":43820181389411,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PK92","requires_shipping":true,"taxable":true,"featured_image":{"id":34756065624163,"product_id":7916516245603,"position":1,"created_at":"2025-11-06T11:13:08+08:00","updated_at":"2025-11-06T11:13:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789","variant_ids":[43820181389411]},"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-PK92","featured_media":{"alt":null,"id":26322450055267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820183453795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PK92","requires_shipping":true,"taxable":true,"featured_image":{"id":34756065919075,"product_id":7916516245603,"position":2,"created_at":"2025-11-06T11:13:08+08:00","updated_at":"2025-11-06T11:13:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208350d794c63e7694ada0a66a546a71945fdeec.webp?v=1762398790","variant_ids":[43820183453795]},"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-PK92","featured_media":{"alt":null,"id":26322450382947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208350d794c63e7694ada0a66a546a71945fdeec.webp?v=1762398790"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208350d794c63e7694ada0a66a546a71945fdeec.webp?v=1762398790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb8500a915749951da0f25c5ef550566df9de65.webp?v=1762398791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db74c1a044c373e62057f6d504f118ceb4b68a16.webp?v=1762398792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd60ba473520694298eac3f5c39758af3a4533.webp?v=1762398792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca1eacdb3c6cf2f0c4ac8903b415d8e45f14749.webp?v=1762398793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4f898ceea942d537d5cf50541d85a143909a54.webp?v=1762398794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8daa412919bb0751ac3c55ff28947f45e0357e9e.webp?v=1762398794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06f490243376e9cd59246169180da8486f8bca7.webp?v=1762398795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a00b213c6a5f82abd2446ac6097f537ab0e1ce59.webp?v=1762398795"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789","options":["color"],"media":[{"alt":null,"id":26322450055267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789","width":2000},{"alt":null,"id":26322450382947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208350d794c63e7694ada0a66a546a71945fdeec.webp?v=1762398790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208350d794c63e7694ada0a66a546a71945fdeec.webp?v=1762398790","width":2000},{"alt":null,"id":26322450546787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb8500a915749951da0f25c5ef550566df9de65.webp?v=1762398791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fb8500a915749951da0f25c5ef550566df9de65.webp?v=1762398791","width":2000},{"alt":null,"id":26322450776163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db74c1a044c373e62057f6d504f118ceb4b68a16.webp?v=1762398792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db74c1a044c373e62057f6d504f118ceb4b68a16.webp?v=1762398792","width":2000},{"alt":null,"id":26322451005539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd60ba473520694298eac3f5c39758af3a4533.webp?v=1762398792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61cd60ba473520694298eac3f5c39758af3a4533.webp?v=1762398792","width":2000},{"alt":null,"id":26322451169379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca1eacdb3c6cf2f0c4ac8903b415d8e45f14749.webp?v=1762398793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ca1eacdb3c6cf2f0c4ac8903b415d8e45f14749.webp?v=1762398793","width":2000},{"alt":null,"id":26322451300451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4f898ceea942d537d5cf50541d85a143909a54.webp?v=1762398794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c4f898ceea942d537d5cf50541d85a143909a54.webp?v=1762398794","width":2000},{"alt":null,"id":26322451431523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8daa412919bb0751ac3c55ff28947f45e0357e9e.webp?v=1762398794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8daa412919bb0751ac3c55ff28947f45e0357e9e.webp?v=1762398794","width":2000},{"alt":null,"id":26322452086883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06f490243376e9cd59246169180da8486f8bca7.webp?v=1762398795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06f490243376e9cd59246169180da8486f8bca7.webp?v=1762398795","width":2000},{"alt":null,"id":26322452217955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a00b213c6a5f82abd2446ac6097f537ab0e1ce59.webp?v=1762398795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a00b213c6a5f82abd2446ac6097f537ab0e1ce59.webp?v=1762398795","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43820181389411,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PK92","requires_shipping":true,"taxable":true,"featured_image":{"id":34756065624163,"product_id":7916516245603,"position":1,"created_at":"2025-11-06T11:13:08+08:00","updated_at":"2025-11-06T11:13:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789","variant_ids":[43820181389411]},"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-PK92","featured_media":{"alt":null,"id":26322450055267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43820183453795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-PK92","requires_shipping":true,"taxable":true,"featured_image":{"id":34756065919075,"product_id":7916516245603,"position":2,"created_at":"2025-11-06T11:13:08+08:00","updated_at":"2025-11-06T11:13:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208350d794c63e7694ada0a66a546a71945fdeec.webp?v=1762398790","variant_ids":[43820183453795]},"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-PK92","featured_media":{"alt":null,"id":26322450382947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208350d794c63e7694ada0a66a546a71945fdeec.webp?v=1762398790"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43820181389411,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-PK92","requires_shipping":true,"taxable":true,"featured_image":{"id":34756065624163,"product_id":7916516245603,"position":1,"created_at":"2025-11-06T11:13:08+08:00","updated_at":"2025-11-06T11:13:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789","variant_ids":[43820181389411]},"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-PK92","featured_media":{"alt":null,"id":26322450055267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e411bf28cae5fdcd3db52ad257abd0976fdcdbd6.webp?v=1762398789"}},"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: "停產" }