$product = {"id":7942085181539,"title":"iPhone 14 Plus Mod NX Nyangsongi 搗蛋鬼","handle":"iphone-14-plus-mod-nx-nya04","description":null,"published_at":"2025-12-23T10:00:49+08:00","created_at":"2025-12-22T12:11:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nyangsongi","device-iPhone 14 Plus","merge","reseller-nyangsongi"],"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":43903434227811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986089250915,"product_id":7942085181539,"position":4,"created_at":"2025-12-22T12:11:55+08:00","updated_at":"2025-12-22T12:11:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716","variant_ids":[43903434227811]},"available":true,"name":"iPhone 14 Plus Mod NX Nyangsongi 搗蛋鬼 - 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-NYA04","featured_media":{"alt":null,"id":26547162906723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e58560e91da3223be00b78f66c7ef76bc0f2fa.webp?v=1766376715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5c32d49a56fd2227c197584054add40ea61147.webp?v=1766376716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00841f54255dc4ba867d388938e1ba9097e803a.webp?v=1766376716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8765bfeb7b153b4eb47bddf055899230ab6422a3.webp?v=1766376718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/341c81f68f6acdfc1a87804e9ffb1d1661ec0686.webp?v=1766376718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f54048abef6f8745b1a925c8106f1a0381cf1be.webp?v=1766376718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/162a787ee4fe6f68461589e9407f105c66900305.webp?v=1766376719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15602d4918eccfc1a839e2a494d93a06c2e4f6c.webp?v=1766376719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e13eb1d1d3e0ee93c0a29c689c6ec9130301e60d.webp?v=1766376720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0daf7ee1d95892b42502ee18b9dbb2a4aa72d755.webp?v=1766376720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39497eb6cdb863cf574c0a9d6717e372281e7d1.webp?v=1766376721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f6213f6cd0c426eb4b7b4b621568de649d618c8.webp?v=1766376722"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e58560e91da3223be00b78f66c7ef76bc0f2fa.webp?v=1766376715","options":["color"],"media":[{"alt":null,"id":26547162513507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e58560e91da3223be00b78f66c7ef76bc0f2fa.webp?v=1766376715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e58560e91da3223be00b78f66c7ef76bc0f2fa.webp?v=1766376715","width":2000},{"alt":null,"id":26547162611811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5c32d49a56fd2227c197584054add40ea61147.webp?v=1766376716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a5c32d49a56fd2227c197584054add40ea61147.webp?v=1766376716","width":2000},{"alt":null,"id":26547162710115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00841f54255dc4ba867d388938e1ba9097e803a.webp?v=1766376716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f00841f54255dc4ba867d388938e1ba9097e803a.webp?v=1766376716","width":2000},{"alt":null,"id":26547162906723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716","width":2000},{"alt":null,"id":26547162972259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8765bfeb7b153b4eb47bddf055899230ab6422a3.webp?v=1766376718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8765bfeb7b153b4eb47bddf055899230ab6422a3.webp?v=1766376718","width":2000},{"alt":null,"id":26547163005027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/341c81f68f6acdfc1a87804e9ffb1d1661ec0686.webp?v=1766376718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/341c81f68f6acdfc1a87804e9ffb1d1661ec0686.webp?v=1766376718","width":2000},{"alt":null,"id":26547163070563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f54048abef6f8745b1a925c8106f1a0381cf1be.webp?v=1766376718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f54048abef6f8745b1a925c8106f1a0381cf1be.webp?v=1766376718","width":2000},{"alt":null,"id":26547163136099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/162a787ee4fe6f68461589e9407f105c66900305.webp?v=1766376719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/162a787ee4fe6f68461589e9407f105c66900305.webp?v=1766376719","width":2000},{"alt":null,"id":26547163234403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15602d4918eccfc1a839e2a494d93a06c2e4f6c.webp?v=1766376719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e15602d4918eccfc1a839e2a494d93a06c2e4f6c.webp?v=1766376719","width":2000},{"alt":null,"id":26547163332707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e13eb1d1d3e0ee93c0a29c689c6ec9130301e60d.webp?v=1766376720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e13eb1d1d3e0ee93c0a29c689c6ec9130301e60d.webp?v=1766376720","width":2000},{"alt":null,"id":26547163431011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0daf7ee1d95892b42502ee18b9dbb2a4aa72d755.webp?v=1766376720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0daf7ee1d95892b42502ee18b9dbb2a4aa72d755.webp?v=1766376720","width":2000},{"alt":null,"id":26547163529315,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39497eb6cdb863cf574c0a9d6717e372281e7d1.webp?v=1766376721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39497eb6cdb863cf574c0a9d6717e372281e7d1.webp?v=1766376721","width":2000},{"alt":null,"id":26547163660387,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f6213f6cd0c426eb4b7b4b621568de649d618c8.webp?v=1766376722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f6213f6cd0c426eb4b7b4b621568de649d618c8.webp?v=1766376722","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43903434227811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986089250915,"product_id":7942085181539,"position":4,"created_at":"2025-12-22T12:11:55+08:00","updated_at":"2025-12-22T12:11:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716","variant_ids":[43903434227811]},"available":true,"name":"iPhone 14 Plus Mod NX Nyangsongi 搗蛋鬼 - 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-NYA04","featured_media":{"alt":null,"id":26547162906723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43903434227811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA04","requires_shipping":true,"taxable":true,"featured_image":{"id":34986089250915,"product_id":7942085181539,"position":4,"created_at":"2025-12-22T12:11:55+08:00","updated_at":"2025-12-22T12:11:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716","variant_ids":[43903434227811]},"available":true,"name":"iPhone 14 Plus Mod NX Nyangsongi 搗蛋鬼 - 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-NYA04","featured_media":{"alt":null,"id":26547162906723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18842bd5dd0eb43bb0316d412aaa9b8021ba3656.webp?v=1766376716"}},"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: "停產" }