$product = {"id":7944301609059,"title":"iPhone 14 Plus Mod NX 右手超人 輕飄飄","handle":"iphone-14-plus-mod-nx-yoh03","description":null,"published_at":"2025-12-24T10:18:35+08:00","created_at":"2025-12-23T16:52:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-yohand","device-iPhone 14 Plus","merge","reseller-yohand"],"price":90000,"price_min":90000,"price_max":90000,"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":43907999072355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35002967654499,"product_id":7944301609059,"position":13,"created_at":"2025-12-23T16:53:40+08:00","updated_at":"2025-12-23T16:53:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022","variant_ids":[43907999072355]},"available":true,"name":"iPhone 14 Plus Mod NX 右手超人 輕飄飄 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YOH03","featured_media":{"alt":null,"id":26563258613859,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f7d0da781b278cc14745f90cbd7ffe9bf92717.webp?v=1766480014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4d4563466035c4c385e508819d7f589783f900.webp?v=1766480015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c84aa17eee5a880aaad0181fee29ad391bff83.webp?v=1766480015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d792fb3731b6b705bf9ac3615c61d9430afd4bc.webp?v=1766480016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a4c69a2286b92e25e01f8b45bd2dba78363465.webp?v=1766480016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2a7529f91b75136b5ad7ac6e4a07afd2268a9f.webp?v=1766480017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3071d5287e74c7ec0b886c7e8b05ecea4ab8d718.webp?v=1766480018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22329b00176eb1ac1d87cd7952414549b4d8868f.webp?v=1766480018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d4dec4af4262405cdf9be885a54b3dfdf92a9d.webp?v=1766480019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc9e921e7f4fc7789fd3a4b5d35ad37c62b91c02.webp?v=1766480020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b476a60c65f564870fbba8d61e5eaefce47cfb1.webp?v=1766480021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7548162737454dd666775a2f0fc04d763d499b7.webp?v=1766480022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f7d0da781b278cc14745f90cbd7ffe9bf92717.webp?v=1766480014","options":["color"],"media":[{"alt":null,"id":26563254288483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f7d0da781b278cc14745f90cbd7ffe9bf92717.webp?v=1766480014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f7d0da781b278cc14745f90cbd7ffe9bf92717.webp?v=1766480014","width":2000},{"alt":null,"id":26563254517859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4d4563466035c4c385e508819d7f589783f900.webp?v=1766480015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e4d4563466035c4c385e508819d7f589783f900.webp?v=1766480015","width":2000},{"alt":null,"id":26563254747235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c84aa17eee5a880aaad0181fee29ad391bff83.webp?v=1766480015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2c84aa17eee5a880aaad0181fee29ad391bff83.webp?v=1766480015","width":2000},{"alt":null,"id":26563255009379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d792fb3731b6b705bf9ac3615c61d9430afd4bc.webp?v=1766480016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d792fb3731b6b705bf9ac3615c61d9430afd4bc.webp?v=1766480016","width":2000},{"alt":null,"id":26563255271523,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a4c69a2286b92e25e01f8b45bd2dba78363465.webp?v=1766480016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a4c69a2286b92e25e01f8b45bd2dba78363465.webp?v=1766480016","width":2000},{"alt":null,"id":26563255599203,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2a7529f91b75136b5ad7ac6e4a07afd2268a9f.webp?v=1766480017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2a7529f91b75136b5ad7ac6e4a07afd2268a9f.webp?v=1766480017","width":2000},{"alt":null,"id":26563256025187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3071d5287e74c7ec0b886c7e8b05ecea4ab8d718.webp?v=1766480018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3071d5287e74c7ec0b886c7e8b05ecea4ab8d718.webp?v=1766480018","width":2000},{"alt":null,"id":26563256483939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22329b00176eb1ac1d87cd7952414549b4d8868f.webp?v=1766480018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22329b00176eb1ac1d87cd7952414549b4d8868f.webp?v=1766480018","width":2000},{"alt":null,"id":26563256844387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d4dec4af4262405cdf9be885a54b3dfdf92a9d.webp?v=1766480019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13d4dec4af4262405cdf9be885a54b3dfdf92a9d.webp?v=1766480019","width":2000},{"alt":null,"id":26563257270371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc9e921e7f4fc7789fd3a4b5d35ad37c62b91c02.webp?v=1766480020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc9e921e7f4fc7789fd3a4b5d35ad37c62b91c02.webp?v=1766480020","width":2000},{"alt":null,"id":26563257663587,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b476a60c65f564870fbba8d61e5eaefce47cfb1.webp?v=1766480021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b476a60c65f564870fbba8d61e5eaefce47cfb1.webp?v=1766480021","width":2000},{"alt":null,"id":26563258122339,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7548162737454dd666775a2f0fc04d763d499b7.webp?v=1766480022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7548162737454dd666775a2f0fc04d763d499b7.webp?v=1766480022","width":2000},{"alt":null,"id":26563258613859,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43907999072355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35002967654499,"product_id":7944301609059,"position":13,"created_at":"2025-12-23T16:53:40+08:00","updated_at":"2025-12-23T16:53:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022","variant_ids":[43907999072355]},"available":true,"name":"iPhone 14 Plus Mod NX 右手超人 輕飄飄 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YOH03","featured_media":{"alt":null,"id":26563258613859,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43907999072355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-YOH03","requires_shipping":true,"taxable":true,"featured_image":{"id":35002967654499,"product_id":7944301609059,"position":13,"created_at":"2025-12-23T16:53:40+08:00","updated_at":"2025-12-23T16:53:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022","variant_ids":[43907999072355]},"available":true,"name":"iPhone 14 Plus Mod NX 右手超人 輕飄飄 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YOH03","featured_media":{"alt":null,"id":26563258613859,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e54f0969477b7aefda0b3cad5cbc26aec64c5b8.webp?v=1766480022"}},"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: "停產" }