$product = {"id":7824425812067,"title":"iPhone 15 Plus SolidX MARVEL 漫威系列 漫威Logo-迷你標誌","handle":"iphone-15-plus-solidx-oz32","description":null,"published_at":"2025-07-01T17:51:22+08:00","created_at":"2025-06-20T17:55:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-marvel","device-iPhone 15 Plus","merge","reseller-marvel"],"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":43479062380643,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832888004707,"product_id":7824425812067,"position":12,"created_at":"2025-11-24T11:20:28+08:00","updated_at":"2025-11-24T11:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430","variant_ids":[43479062380643]},"available":true,"name":"iPhone 15 Plus SolidX MARVEL 漫威系列 漫威Logo-迷你標誌 - 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-OZ32","featured_media":{"alt":null,"id":26397706059875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479066017891,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832887316579,"product_id":7824425812067,"position":7,"created_at":"2025-11-24T11:20:25+08:00","updated_at":"2025-11-24T11:20:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7033695313d44fe77fbdc3e80b31733963a680df.webp?v=1763954427","variant_ids":[43479066017891]},"available":true,"name":"iPhone 15 Plus SolidX MARVEL 漫威系列 漫威Logo-迷你標誌 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-OZ32","featured_media":{"alt":null,"id":26397705371747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7033695313d44fe77fbdc3e80b31733963a680df.webp?v=1763954427"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479066214499,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832886497379,"product_id":7824425812067,"position":3,"created_at":"2025-11-24T11:20:24+08:00","updated_at":"2025-11-24T11:20:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dddf92895edea9556078d7c8a3f16b124397d0.webp?v=1763954425","variant_ids":[43479066214499]},"available":true,"name":"iPhone 15 Plus SolidX MARVEL 漫威系列 漫威Logo-迷你標誌 - 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-OZ32","featured_media":{"alt":null,"id":26397704650851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dddf92895edea9556078d7c8a3f16b124397d0.webp?v=1763954425"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OZ32.png?v=1750413340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OZ32_6438b8f7-1418-4c85-b96c-1b0d46a47f20.png?v=1750820993","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dddf92895edea9556078d7c8a3f16b124397d0.webp?v=1763954425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1576469822d4e96bc1da69fea9a66b60111632bf.webp?v=1763954426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a9b7a1e117ce0c814f429b9e81231a1507c34b.webp?v=1763954426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dccecb5077b11263618e6cabda644be1bfe6352.webp?v=1763954427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7033695313d44fe77fbdc3e80b31733963a680df.webp?v=1763954427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f38508bee6df1d74bc6010ef0134e41e8cc013.webp?v=1763954428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb95abff536ba2f128fc00e2e3ef0294717a5822.webp?v=1763954428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4112013acf2b7fb0313f083dc4f94ca2349dab.webp?v=1763954429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ccd5c25b2061f51f9a08df3738047a8103e908.webp?v=1763954429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OZ32.png?v=1750413340","options":["color"],"media":[{"alt":null,"id":25722066403427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OZ32.png?v=1750413340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-OZ32.png?v=1750413340","width":2000},{"alt":null,"id":25735208861795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OZ32_6438b8f7-1418-4c85-b96c-1b0d46a47f20.png?v=1750820993"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OZ32_6438b8f7-1418-4c85-b96c-1b0d46a47f20.png?v=1750820993","width":2000},{"alt":null,"id":26397704650851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dddf92895edea9556078d7c8a3f16b124397d0.webp?v=1763954425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dddf92895edea9556078d7c8a3f16b124397d0.webp?v=1763954425","width":2000},{"alt":null,"id":26397704880227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1576469822d4e96bc1da69fea9a66b60111632bf.webp?v=1763954426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1576469822d4e96bc1da69fea9a66b60111632bf.webp?v=1763954426","width":2000},{"alt":null,"id":26397705076835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a9b7a1e117ce0c814f429b9e81231a1507c34b.webp?v=1763954426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a9b7a1e117ce0c814f429b9e81231a1507c34b.webp?v=1763954426","width":2000},{"alt":null,"id":26397705240675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dccecb5077b11263618e6cabda644be1bfe6352.webp?v=1763954427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dccecb5077b11263618e6cabda644be1bfe6352.webp?v=1763954427","width":2000},{"alt":null,"id":26397705371747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7033695313d44fe77fbdc3e80b31733963a680df.webp?v=1763954427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7033695313d44fe77fbdc3e80b31733963a680df.webp?v=1763954427","width":2000},{"alt":null,"id":26397705601123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f38508bee6df1d74bc6010ef0134e41e8cc013.webp?v=1763954428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f38508bee6df1d74bc6010ef0134e41e8cc013.webp?v=1763954428","width":2000},{"alt":null,"id":26397705699427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb95abff536ba2f128fc00e2e3ef0294717a5822.webp?v=1763954428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb95abff536ba2f128fc00e2e3ef0294717a5822.webp?v=1763954428","width":2000},{"alt":null,"id":26397705928803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4112013acf2b7fb0313f083dc4f94ca2349dab.webp?v=1763954429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4112013acf2b7fb0313f083dc4f94ca2349dab.webp?v=1763954429","width":2000},{"alt":null,"id":26397705961571,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ccd5c25b2061f51f9a08df3738047a8103e908.webp?v=1763954429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ccd5c25b2061f51f9a08df3738047a8103e908.webp?v=1763954429","width":2000},{"alt":null,"id":26397706059875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43479062380643,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832888004707,"product_id":7824425812067,"position":12,"created_at":"2025-11-24T11:20:28+08:00","updated_at":"2025-11-24T11:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430","variant_ids":[43479062380643]},"available":true,"name":"iPhone 15 Plus SolidX MARVEL 漫威系列 漫威Logo-迷你標誌 - 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-OZ32","featured_media":{"alt":null,"id":26397706059875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479066017891,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832887316579,"product_id":7824425812067,"position":7,"created_at":"2025-11-24T11:20:25+08:00","updated_at":"2025-11-24T11:20:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7033695313d44fe77fbdc3e80b31733963a680df.webp?v=1763954427","variant_ids":[43479066017891]},"available":true,"name":"iPhone 15 Plus SolidX MARVEL 漫威系列 漫威Logo-迷你標誌 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-OZ32","featured_media":{"alt":null,"id":26397705371747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7033695313d44fe77fbdc3e80b31733963a680df.webp?v=1763954427"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479066214499,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832886497379,"product_id":7824425812067,"position":3,"created_at":"2025-11-24T11:20:24+08:00","updated_at":"2025-11-24T11:20:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dddf92895edea9556078d7c8a3f16b124397d0.webp?v=1763954425","variant_ids":[43479066214499]},"available":true,"name":"iPhone 15 Plus SolidX MARVEL 漫威系列 漫威Logo-迷你標誌 - 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-OZ32","featured_media":{"alt":null,"id":26397704650851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dddf92895edea9556078d7c8a3f16b124397d0.webp?v=1763954425"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43479062380643,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832888004707,"product_id":7824425812067,"position":12,"created_at":"2025-11-24T11:20:28+08:00","updated_at":"2025-11-24T11:20:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430","variant_ids":[43479062380643]},"available":true,"name":"iPhone 15 Plus SolidX MARVEL 漫威系列 漫威Logo-迷你標誌 - 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-OZ32","featured_media":{"alt":null,"id":26397706059875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27917dbf7d741df48a6191e0b59033c1956e6bf7.webp?v=1763954430"}},"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: "停產" }