$product = {"id":7956232798307,"title":"iPhone 14 Pro Mod NX Emerald Studio 4月 含笑花","handle":"iphone-14-pro-mod-nx-eme04","description":null,"published_at":"2026-01-28T09:38:40+08:00","created_at":"2026-01-26T14:46:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-emerald","device-iPhone 14 Pro","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":43967101632611,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EME04","requires_shipping":true,"taxable":true,"featured_image":{"id":35147336024163,"product_id":7956232798307,"position":1,"created_at":"2026-01-26T14:47:44+08:00","updated_at":"2026-01-26T14:47:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066","variant_ids":[43967101632611]},"available":true,"name":"iPhone 14 Pro Mod NX Emerald Studio 4月 含笑花 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EME04","featured_media":{"alt":null,"id":26703574532195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967119655011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EME04","requires_shipping":true,"taxable":true,"featured_image":{"id":35147338023011,"product_id":7956232798307,"position":11,"created_at":"2026-01-26T14:47:51+08:00","updated_at":"2026-01-26T14:47:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39ca9351e96568e65375250bdd1eead8e653be3.webp?v=1769410073","variant_ids":[43967119655011]},"available":true,"name":"iPhone 14 Pro Mod NX Emerald Studio 4月 含笑花 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EME04","featured_media":{"alt":null,"id":26703576531043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39ca9351e96568e65375250bdd1eead8e653be3.webp?v=1769410073"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967120703587,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EME04","requires_shipping":true,"taxable":true,"featured_image":{"id":35147336974435,"product_id":7956232798307,"position":6,"created_at":"2026-01-26T14:47:47+08:00","updated_at":"2026-01-26T14:47:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa3f7caaef5370eda70b7d72ace7c60b2b4308.webp?v=1769410069","variant_ids":[43967120703587]},"available":true,"name":"iPhone 14 Pro Mod NX Emerald Studio 4月 含笑花 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EME04","featured_media":{"alt":null,"id":26703575449699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa3f7caaef5370eda70b7d72ace7c60b2b4308.webp?v=1769410069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b93e5e3418b40ca0f7dcd74a935a2abc81907ba7.webp?v=1769410067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d1e8880660b1f9b4a8ab41e10355c3fd77f909.webp?v=1769410068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18375a6e01723e3d4d7bb008a3d48cf40a6a79f7.webp?v=1769410068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c68de33cc7856e3358f4e644eea95c08ab67db4.webp?v=1769410069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa3f7caaef5370eda70b7d72ace7c60b2b4308.webp?v=1769410069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b567c1af5d35f37b575f0d0310ff8b0ffa22d6f0.webp?v=1769410070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6892c3d8b33fdcfa7aa3f9171d92fb3dcf4709a9.webp?v=1769410071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd16e9972df898782b91160d18c19c0d4de4ac0.webp?v=1769410071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/893a442b6d750ca6716d791486488163f09216cf.webp?v=1769410072","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39ca9351e96568e65375250bdd1eead8e653be3.webp?v=1769410073"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066","options":["color"],"media":[{"alt":null,"id":26703574532195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066","width":2000},{"alt":null,"id":26703574696035,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b93e5e3418b40ca0f7dcd74a935a2abc81907ba7.webp?v=1769410067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b93e5e3418b40ca0f7dcd74a935a2abc81907ba7.webp?v=1769410067","width":2000},{"alt":null,"id":26703574859875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d1e8880660b1f9b4a8ab41e10355c3fd77f909.webp?v=1769410068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d1e8880660b1f9b4a8ab41e10355c3fd77f909.webp?v=1769410068","width":2000},{"alt":null,"id":26703575023715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18375a6e01723e3d4d7bb008a3d48cf40a6a79f7.webp?v=1769410068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18375a6e01723e3d4d7bb008a3d48cf40a6a79f7.webp?v=1769410068","width":2000},{"alt":null,"id":26703575253091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c68de33cc7856e3358f4e644eea95c08ab67db4.webp?v=1769410069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c68de33cc7856e3358f4e644eea95c08ab67db4.webp?v=1769410069","width":2000},{"alt":null,"id":26703575449699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa3f7caaef5370eda70b7d72ace7c60b2b4308.webp?v=1769410069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa3f7caaef5370eda70b7d72ace7c60b2b4308.webp?v=1769410069","width":2000},{"alt":null,"id":26703575679075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b567c1af5d35f37b575f0d0310ff8b0ffa22d6f0.webp?v=1769410070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b567c1af5d35f37b575f0d0310ff8b0ffa22d6f0.webp?v=1769410070","width":2000},{"alt":null,"id":26703575941219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6892c3d8b33fdcfa7aa3f9171d92fb3dcf4709a9.webp?v=1769410071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6892c3d8b33fdcfa7aa3f9171d92fb3dcf4709a9.webp?v=1769410071","width":2000},{"alt":null,"id":26703576203363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd16e9972df898782b91160d18c19c0d4de4ac0.webp?v=1769410071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd16e9972df898782b91160d18c19c0d4de4ac0.webp?v=1769410071","width":2000},{"alt":null,"id":26703576367203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/893a442b6d750ca6716d791486488163f09216cf.webp?v=1769410072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/893a442b6d750ca6716d791486488163f09216cf.webp?v=1769410072","width":2000},{"alt":null,"id":26703576531043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39ca9351e96568e65375250bdd1eead8e653be3.webp?v=1769410073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39ca9351e96568e65375250bdd1eead8e653be3.webp?v=1769410073","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43967101632611,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EME04","requires_shipping":true,"taxable":true,"featured_image":{"id":35147336024163,"product_id":7956232798307,"position":1,"created_at":"2026-01-26T14:47:44+08:00","updated_at":"2026-01-26T14:47:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066","variant_ids":[43967101632611]},"available":true,"name":"iPhone 14 Pro Mod NX Emerald Studio 4月 含笑花 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EME04","featured_media":{"alt":null,"id":26703574532195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967119655011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EME04","requires_shipping":true,"taxable":true,"featured_image":{"id":35147338023011,"product_id":7956232798307,"position":11,"created_at":"2026-01-26T14:47:51+08:00","updated_at":"2026-01-26T14:47:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39ca9351e96568e65375250bdd1eead8e653be3.webp?v=1769410073","variant_ids":[43967119655011]},"available":true,"name":"iPhone 14 Pro Mod NX Emerald Studio 4月 含笑花 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EME04","featured_media":{"alt":null,"id":26703576531043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d39ca9351e96568e65375250bdd1eead8e653be3.webp?v=1769410073"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43967120703587,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EME04","requires_shipping":true,"taxable":true,"featured_image":{"id":35147336974435,"product_id":7956232798307,"position":6,"created_at":"2026-01-26T14:47:47+08:00","updated_at":"2026-01-26T14:47:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa3f7caaef5370eda70b7d72ace7c60b2b4308.webp?v=1769410069","variant_ids":[43967120703587]},"available":true,"name":"iPhone 14 Pro Mod NX Emerald Studio 4月 含笑花 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EME04","featured_media":{"alt":null,"id":26703575449699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50fa3f7caaef5370eda70b7d72ace7c60b2b4308.webp?v=1769410069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43967101632611,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EME04","requires_shipping":true,"taxable":true,"featured_image":{"id":35147336024163,"product_id":7956232798307,"position":1,"created_at":"2026-01-26T14:47:44+08:00","updated_at":"2026-01-26T14:47:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066","variant_ids":[43967101632611]},"available":true,"name":"iPhone 14 Pro Mod NX Emerald Studio 4月 含笑花 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EME04","featured_media":{"alt":null,"id":26703574532195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03815216eb552138bc2e66387dcb225ca126ca83.webp?v=1769410066"}},"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: "停產" }