$product = {"id":7967189303395,"title":"iPhone 15 Plus SolidX 曼達洛人 曼多 \u0026 古古","handle":"iphone-15-plus-solidx-sd13","description":null,"published_at":"2026-02-26T15:48:39+08:00","created_at":"2026-02-23T12:19:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-the-mandalorian","device-iPhone 15 Plus","merge","reseller-the-mandalorian"],"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":44016515154019,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-SD13","requires_shipping":true,"taxable":true,"featured_image":{"id":35324853223523,"product_id":7967189303395,"position":4,"created_at":"2026-02-23T12:20:23+08:00","updated_at":"2026-02-23T12:20:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425","variant_ids":[44016515154019]},"available":true,"name":"iPhone 15 Plus SolidX 曼達洛人 曼多 \u0026 古古 - 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-SD13","featured_media":{"alt":null,"id":26868671447139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44016518135907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-SD13","requires_shipping":true,"taxable":true,"featured_image":{"id":35324852011107,"product_id":7967189303395,"position":1,"created_at":"2026-02-23T12:20:22+08:00","updated_at":"2026-02-23T12:20:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8c2a1905a3c6589ecdf4c433dc0fac7c67ca7.webp?v=1771820423","variant_ids":[44016518135907]},"available":true,"name":"iPhone 15 Plus SolidX 曼達洛人 曼多 \u0026 古古 - 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-SD13","featured_media":{"alt":null,"id":26868670234723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8c2a1905a3c6589ecdf4c433dc0fac7c67ca7.webp?v=1771820423"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8c2a1905a3c6589ecdf4c433dc0fac7c67ca7.webp?v=1771820423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bf15509196937a49fba355a7237a710375bc2f.webp?v=1771820424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e3f2cb9252c68f1b2f75bd95439bdc45a9fdfb.webp?v=1771820425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10ad98b7a0fd5b3016bcbec7f8540394eb28dbc6.webp?v=1771820426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba4e73528a7efe2194bd443de8080a216ed1039.webp?v=1771820427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32df1bc1a98cae663d033e4753bdb60f94b3d406.webp?v=1771820427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd90371c52df455184554b13eb32c64d9561d515.webp?v=1771820428"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8c2a1905a3c6589ecdf4c433dc0fac7c67ca7.webp?v=1771820423","options":["color"],"media":[{"alt":null,"id":26868670234723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8c2a1905a3c6589ecdf4c433dc0fac7c67ca7.webp?v=1771820423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8c2a1905a3c6589ecdf4c433dc0fac7c67ca7.webp?v=1771820423","width":2000},{"alt":null,"id":26868670726243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bf15509196937a49fba355a7237a710375bc2f.webp?v=1771820424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bf15509196937a49fba355a7237a710375bc2f.webp?v=1771820424","width":2000},{"alt":null,"id":26868671119459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e3f2cb9252c68f1b2f75bd95439bdc45a9fdfb.webp?v=1771820425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2e3f2cb9252c68f1b2f75bd95439bdc45a9fdfb.webp?v=1771820425","width":2000},{"alt":null,"id":26868671447139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425","width":2000},{"alt":null,"id":26868671807587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10ad98b7a0fd5b3016bcbec7f8540394eb28dbc6.webp?v=1771820426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10ad98b7a0fd5b3016bcbec7f8540394eb28dbc6.webp?v=1771820426","width":2000},{"alt":null,"id":26868672266339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba4e73528a7efe2194bd443de8080a216ed1039.webp?v=1771820427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba4e73528a7efe2194bd443de8080a216ed1039.webp?v=1771820427","width":2000},{"alt":null,"id":26868672594019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32df1bc1a98cae663d033e4753bdb60f94b3d406.webp?v=1771820427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32df1bc1a98cae663d033e4753bdb60f94b3d406.webp?v=1771820427","width":2000},{"alt":null,"id":26868672954467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd90371c52df455184554b13eb32c64d9561d515.webp?v=1771820428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd90371c52df455184554b13eb32c64d9561d515.webp?v=1771820428","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44016515154019,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-SD13","requires_shipping":true,"taxable":true,"featured_image":{"id":35324853223523,"product_id":7967189303395,"position":4,"created_at":"2026-02-23T12:20:23+08:00","updated_at":"2026-02-23T12:20:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425","variant_ids":[44016515154019]},"available":true,"name":"iPhone 15 Plus SolidX 曼達洛人 曼多 \u0026 古古 - 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-SD13","featured_media":{"alt":null,"id":26868671447139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44016518135907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-SD13","requires_shipping":true,"taxable":true,"featured_image":{"id":35324852011107,"product_id":7967189303395,"position":1,"created_at":"2026-02-23T12:20:22+08:00","updated_at":"2026-02-23T12:20:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8c2a1905a3c6589ecdf4c433dc0fac7c67ca7.webp?v=1771820423","variant_ids":[44016518135907]},"available":true,"name":"iPhone 15 Plus SolidX 曼達洛人 曼多 \u0026 古古 - 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-SD13","featured_media":{"alt":null,"id":26868670234723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf8c2a1905a3c6589ecdf4c433dc0fac7c67ca7.webp?v=1771820423"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44016515154019,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-SD13","requires_shipping":true,"taxable":true,"featured_image":{"id":35324853223523,"product_id":7967189303395,"position":4,"created_at":"2026-02-23T12:20:23+08:00","updated_at":"2026-02-23T12:20:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425","variant_ids":[44016515154019]},"available":true,"name":"iPhone 15 Plus SolidX 曼達洛人 曼多 \u0026 古古 - 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-SD13","featured_media":{"alt":null,"id":26868671447139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05786006c90a0f75237abfef6db25c987b894c8f.webp?v=1771820425"}},"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: "停產" }