$product = {"id":7931676852323,"title":"iPhone 14 Plus Mod NX 產房 • 廢料棲息地 雨水、海水、淚水,一些關於海的事","handle":"iphone-14-plus-mod-nx-bir04","description":null,"published_at":"2026-01-27T14:12:54+08:00","created_at":"2025-11-28T11:38:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 14 Plus","merge","reseller-everydayishappybirthday"],"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":43861528412259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34863881846883,"product_id":7931676852323,"position":4,"created_at":"2025-11-28T11:38:14+08:00","updated_at":"2025-11-28T11:38:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096","variant_ids":[43861528412259]},"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-BIR04","featured_media":{"alt":null,"id":26428300689507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b85eb9cc66ce6c2474a15ab0964e7afe0514ac30.webp?v=1764301094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c979069fad11226bb521b6265763fc69c3a8043.webp?v=1764301095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a02e575d035af648e6323f47684fe7eb2d16dce.webp?v=1764301095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb2b18108cb7ec740f3cf006c10e1ccf678caac.webp?v=1764301096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcb25a1a467cac48b82c237e279bb3860046f36.webp?v=1764301097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa6f42eeee24cfddc3eb33f5c8b44364c6e8b53.webp?v=1764301097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a127bbd61e8b83548c9add3bb5af0d79a8b5fdcf.webp?v=1764301098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b123097c4e546b0df5bf55413f1dae0d92e6bf0a.webp?v=1764301098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9efd90aeb9e2db1c56b0b17003144ecfe72438af.webp?v=1764301098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320bc931c8ba11069020b79297e7db7c141ae40e.webp?v=1764301099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e46d74b7cfa3f8af0e02838a0f54ea408a07f2.webp?v=1764301101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede29b743d6618fce5772a440f6c3e403e8d72fd.webp?v=1764301102"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b85eb9cc66ce6c2474a15ab0964e7afe0514ac30.webp?v=1764301094","options":["color"],"media":[{"alt":null,"id":26428300066915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b85eb9cc66ce6c2474a15ab0964e7afe0514ac30.webp?v=1764301094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b85eb9cc66ce6c2474a15ab0964e7afe0514ac30.webp?v=1764301094","width":2000},{"alt":null,"id":26428300230755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c979069fad11226bb521b6265763fc69c3a8043.webp?v=1764301095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c979069fad11226bb521b6265763fc69c3a8043.webp?v=1764301095","width":2000},{"alt":null,"id":26428300460131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a02e575d035af648e6323f47684fe7eb2d16dce.webp?v=1764301095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a02e575d035af648e6323f47684fe7eb2d16dce.webp?v=1764301095","width":2000},{"alt":null,"id":26428300689507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096","width":2000},{"alt":null,"id":26428300918883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb2b18108cb7ec740f3cf006c10e1ccf678caac.webp?v=1764301096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb2b18108cb7ec740f3cf006c10e1ccf678caac.webp?v=1764301096","width":2000},{"alt":null,"id":26428301115491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcb25a1a467cac48b82c237e279bb3860046f36.webp?v=1764301097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dcb25a1a467cac48b82c237e279bb3860046f36.webp?v=1764301097","width":2000},{"alt":null,"id":26428301312099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa6f42eeee24cfddc3eb33f5c8b44364c6e8b53.webp?v=1764301097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa6f42eeee24cfddc3eb33f5c8b44364c6e8b53.webp?v=1764301097","width":2000},{"alt":null,"id":26428301475939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a127bbd61e8b83548c9add3bb5af0d79a8b5fdcf.webp?v=1764301098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a127bbd61e8b83548c9add3bb5af0d79a8b5fdcf.webp?v=1764301098","width":2000},{"alt":null,"id":26428301639779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b123097c4e546b0df5bf55413f1dae0d92e6bf0a.webp?v=1764301098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b123097c4e546b0df5bf55413f1dae0d92e6bf0a.webp?v=1764301098","width":2000},{"alt":null,"id":26428301770851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9efd90aeb9e2db1c56b0b17003144ecfe72438af.webp?v=1764301098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9efd90aeb9e2db1c56b0b17003144ecfe72438af.webp?v=1764301098","width":2000},{"alt":null,"id":26428302065763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320bc931c8ba11069020b79297e7db7c141ae40e.webp?v=1764301099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320bc931c8ba11069020b79297e7db7c141ae40e.webp?v=1764301099","width":2000},{"alt":null,"id":26428302590051,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e46d74b7cfa3f8af0e02838a0f54ea408a07f2.webp?v=1764301101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e46d74b7cfa3f8af0e02838a0f54ea408a07f2.webp?v=1764301101","width":2000},{"alt":null,"id":26428302688355,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede29b743d6618fce5772a440f6c3e403e8d72fd.webp?v=1764301102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede29b743d6618fce5772a440f6c3e403e8d72fd.webp?v=1764301102","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43861528412259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34863881846883,"product_id":7931676852323,"position":4,"created_at":"2025-11-28T11:38:14+08:00","updated_at":"2025-11-28T11:38:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096","variant_ids":[43861528412259]},"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-BIR04","featured_media":{"alt":null,"id":26428300689507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43861528412259,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-BIR04","requires_shipping":true,"taxable":true,"featured_image":{"id":34863881846883,"product_id":7931676852323,"position":4,"created_at":"2025-11-28T11:38:14+08:00","updated_at":"2025-11-28T11:38:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096","variant_ids":[43861528412259]},"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-BIR04","featured_media":{"alt":null,"id":26428300689507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80915aa313416df816e721b81c315d93228d38c8.webp?v=1764301096"}},"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: "停產" }