$product = {"id":7956225622115,"title":"iPhone 14 Plus Mod NX Emerald Studio 羽扇豆・春分 土地的守護","handle":"iphone-14-plus-mod-nx-eme08","description":null,"published_at":"2026-01-28T09:39:55+08:00","created_at":"2026-01-26T14:44:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-emerald","device-iPhone 14 Plus","merge","reseller-emerald"],"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":43967085477987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EME08","requires_shipping":true,"taxable":true,"featured_image":{"id":35147299651683,"product_id":7956225622115,"position":4,"created_at":"2026-01-26T14:45:40+08:00","updated_at":"2026-01-26T14:45:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942","variant_ids":[43967085477987]},"available":true,"name":"iPhone 14 Plus Mod NX Emerald Studio 羽扇豆・春分 土地的守護 - 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-EME08","featured_media":{"alt":null,"id":26703538159715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87aaff372f6006f1f61dc7c2cb86aef73f8177e4.webp?v=1769409939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48b8d79dbfe42b4ba64d3bd9978da905ad455633.webp?v=1769409940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5453e63f5dd2f35b22987d88763ecb838353e6.webp?v=1769409941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3250de0c6cf59bb18e5a2ca57f7a8622b65130ad.webp?v=1769409943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0d2caff9b107efbee789113c9a98d542d2c229.webp?v=1769409944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5772b15961966ba92c4781a12e0958c58a0c9913.webp?v=1769409944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448746f42f672c2b499196bac2d02218d2f10443.webp?v=1769409949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55faa5815fa396309d2315eae86a2689b574f01d.webp?v=1769409950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d6635b08d055aa1d5c69ac7afa513ee5957dc92.webp?v=1769409954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccafc8b12b9bd89c5bd40f6b2f76ecbaf29d1a3.webp?v=1769409955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2818f0ef17075e70eeb3e52be9b5598e383302e.webp?v=1769409956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91da32d2863c64ae5e8d186378fe2e7fa00c41b1.webp?v=1769409957"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87aaff372f6006f1f61dc7c2cb86aef73f8177e4.webp?v=1769409939","options":["color"],"media":[{"alt":null,"id":26703536619619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87aaff372f6006f1f61dc7c2cb86aef73f8177e4.webp?v=1769409939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87aaff372f6006f1f61dc7c2cb86aef73f8177e4.webp?v=1769409939","width":2000},{"alt":null,"id":26703537111139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48b8d79dbfe42b4ba64d3bd9978da905ad455633.webp?v=1769409940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48b8d79dbfe42b4ba64d3bd9978da905ad455633.webp?v=1769409940","width":2000},{"alt":null,"id":26703537635427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5453e63f5dd2f35b22987d88763ecb838353e6.webp?v=1769409941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5453e63f5dd2f35b22987d88763ecb838353e6.webp?v=1769409941","width":2000},{"alt":null,"id":26703538159715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942","width":2000},{"alt":null,"id":26703538815075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3250de0c6cf59bb18e5a2ca57f7a8622b65130ad.webp?v=1769409943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3250de0c6cf59bb18e5a2ca57f7a8622b65130ad.webp?v=1769409943","width":2000},{"alt":null,"id":26703539404899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0d2caff9b107efbee789113c9a98d542d2c229.webp?v=1769409944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0d2caff9b107efbee789113c9a98d542d2c229.webp?v=1769409944","width":2000},{"alt":null,"id":26703540125795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5772b15961966ba92c4781a12e0958c58a0c9913.webp?v=1769409944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5772b15961966ba92c4781a12e0958c58a0c9913.webp?v=1769409944","width":2000},{"alt":null,"id":26703541600355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448746f42f672c2b499196bac2d02218d2f10443.webp?v=1769409949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/448746f42f672c2b499196bac2d02218d2f10443.webp?v=1769409949","width":2000},{"alt":null,"id":26703542648931,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55faa5815fa396309d2315eae86a2689b574f01d.webp?v=1769409950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55faa5815fa396309d2315eae86a2689b574f01d.webp?v=1769409950","width":2000},{"alt":null,"id":26703543894115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d6635b08d055aa1d5c69ac7afa513ee5957dc92.webp?v=1769409954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d6635b08d055aa1d5c69ac7afa513ee5957dc92.webp?v=1769409954","width":2000},{"alt":null,"id":26703544287331,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccafc8b12b9bd89c5bd40f6b2f76ecbaf29d1a3.webp?v=1769409955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ccafc8b12b9bd89c5bd40f6b2f76ecbaf29d1a3.webp?v=1769409955","width":2000},{"alt":null,"id":26703544909923,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2818f0ef17075e70eeb3e52be9b5598e383302e.webp?v=1769409956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2818f0ef17075e70eeb3e52be9b5598e383302e.webp?v=1769409956","width":2000},{"alt":null,"id":26703545729123,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91da32d2863c64ae5e8d186378fe2e7fa00c41b1.webp?v=1769409957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91da32d2863c64ae5e8d186378fe2e7fa00c41b1.webp?v=1769409957","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43967085477987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EME08","requires_shipping":true,"taxable":true,"featured_image":{"id":35147299651683,"product_id":7956225622115,"position":4,"created_at":"2026-01-26T14:45:40+08:00","updated_at":"2026-01-26T14:45:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942","variant_ids":[43967085477987]},"available":true,"name":"iPhone 14 Plus Mod NX Emerald Studio 羽扇豆・春分 土地的守護 - 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-EME08","featured_media":{"alt":null,"id":26703538159715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43967085477987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EME08","requires_shipping":true,"taxable":true,"featured_image":{"id":35147299651683,"product_id":7956225622115,"position":4,"created_at":"2026-01-26T14:45:40+08:00","updated_at":"2026-01-26T14:45:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942","variant_ids":[43967085477987]},"available":true,"name":"iPhone 14 Plus Mod NX Emerald Studio 羽扇豆・春分 土地的守護 - 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-EME08","featured_media":{"alt":null,"id":26703538159715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08b3a81e54c8d8618f8e599dff9ad9d3b7b40c3.webp?v=1769409942"}},"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: "停產" }