$product = {"id":7921115168867,"title":"iPhone 14 Plus Mod NX Incrediville 怪奇事物所 所長的讀自快樂","handle":"iphone-14-plus-mod-nx-hd69","description":null,"published_at":"2025-11-13T09:51:54+08:00","created_at":"2025-11-11T09:34:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-incrediville","device-iPhone 14 Plus","merge","reseller-incrediville"],"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":43830817652835,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785935360099,"product_id":7921115168867,"position":2,"created_at":"2025-11-11T09:34:54+08:00","updated_at":"2025-11-11T09:34:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896","variant_ids":[43830817652835]},"available":true,"name":"iPhone 14 Plus Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351392489571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaca47e4f8368da59c3758d9158e2f82c21ad82e.webp?v=1762824895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe9eac8e7194a69450e94b6fd1d564acbd56d2c.webp?v=1762824897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e43a540df5f1063c4644896201535103298b3dc8.webp?v=1762824897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe39d30485a1a4b9693ffe38e0e3418032108f32.webp?v=1762824898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c9090e23e748716a97b935fd331210c283e1d5.webp?v=1762824899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398c3ae68c943e9825e15514adc161079fbade16.webp?v=1762824899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd5a9bba1a8635112325df8ea9121962f804e365.webp?v=1762824900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d74e74776d88af2ffa6280722d2ad2afa0293fb.webp?v=1762824900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65393b16794320e511b2e6826940434cc1b56d5f.webp?v=1762824901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdfa72632f35697add26ddb3e53f8506bb9c3b07.webp?v=1762824902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866ec796c30f4bcbf2305682a8938d8e1f69790d.webp?v=1762824903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f0b9b642339236b4d2c2fe809553ed91c56876d.webp?v=1762824903"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaca47e4f8368da59c3758d9158e2f82c21ad82e.webp?v=1762824895","options":["color"],"media":[{"alt":null,"id":26351392260195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaca47e4f8368da59c3758d9158e2f82c21ad82e.webp?v=1762824895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaca47e4f8368da59c3758d9158e2f82c21ad82e.webp?v=1762824895","width":2000},{"alt":null,"id":26351392489571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896","width":2000},{"alt":null,"id":26351392653411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe9eac8e7194a69450e94b6fd1d564acbd56d2c.webp?v=1762824897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebe9eac8e7194a69450e94b6fd1d564acbd56d2c.webp?v=1762824897","width":2000},{"alt":null,"id":26351392981091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e43a540df5f1063c4644896201535103298b3dc8.webp?v=1762824897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e43a540df5f1063c4644896201535103298b3dc8.webp?v=1762824897","width":2000},{"alt":null,"id":26351393243235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe39d30485a1a4b9693ffe38e0e3418032108f32.webp?v=1762824898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe39d30485a1a4b9693ffe38e0e3418032108f32.webp?v=1762824898","width":2000},{"alt":null,"id":26351393570915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c9090e23e748716a97b935fd331210c283e1d5.webp?v=1762824899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9c9090e23e748716a97b935fd331210c283e1d5.webp?v=1762824899","width":2000},{"alt":null,"id":26351393833059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398c3ae68c943e9825e15514adc161079fbade16.webp?v=1762824899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398c3ae68c943e9825e15514adc161079fbade16.webp?v=1762824899","width":2000},{"alt":null,"id":26351394095203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd5a9bba1a8635112325df8ea9121962f804e365.webp?v=1762824900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd5a9bba1a8635112325df8ea9121962f804e365.webp?v=1762824900","width":2000},{"alt":null,"id":26351394259043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d74e74776d88af2ffa6280722d2ad2afa0293fb.webp?v=1762824900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d74e74776d88af2ffa6280722d2ad2afa0293fb.webp?v=1762824900","width":2000},{"alt":null,"id":26351394390115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65393b16794320e511b2e6826940434cc1b56d5f.webp?v=1762824901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65393b16794320e511b2e6826940434cc1b56d5f.webp?v=1762824901","width":2000},{"alt":null,"id":26351394652259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdfa72632f35697add26ddb3e53f8506bb9c3b07.webp?v=1762824902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdfa72632f35697add26ddb3e53f8506bb9c3b07.webp?v=1762824902","width":2000},{"alt":null,"id":26351394881635,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866ec796c30f4bcbf2305682a8938d8e1f69790d.webp?v=1762824903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866ec796c30f4bcbf2305682a8938d8e1f69790d.webp?v=1762824903","width":2000},{"alt":null,"id":26351395242083,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f0b9b642339236b4d2c2fe809553ed91c56876d.webp?v=1762824903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f0b9b642339236b4d2c2fe809553ed91c56876d.webp?v=1762824903","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43830817652835,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785935360099,"product_id":7921115168867,"position":2,"created_at":"2025-11-11T09:34:54+08:00","updated_at":"2025-11-11T09:34:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896","variant_ids":[43830817652835]},"available":true,"name":"iPhone 14 Plus Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351392489571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43830817652835,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-HD69","requires_shipping":true,"taxable":true,"featured_image":{"id":34785935360099,"product_id":7921115168867,"position":2,"created_at":"2025-11-11T09:34:54+08:00","updated_at":"2025-11-11T09:34:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896","variant_ids":[43830817652835]},"available":true,"name":"iPhone 14 Plus Mod NX Incrediville 怪奇事物所 所長的讀自快樂 - 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-HD69","featured_media":{"alt":null,"id":26351392489571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1ecaa8ea2a90ec88b72681cf68c3fb6b1eca57.webp?v=1762824896"}},"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: "停產" }