$product = {"id":7951250784355,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 田中 Shen Dream","handle":"iphone-14-pro-mod-nx-magsafe-tan06","description":null,"published_at":"2026-01-13T10:27:10+08:00","created_at":"2026-01-12T17:02:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tanakashen","device-iPhone 14 Pro","merge","reseller-tanakashen"],"price":110000,"price_min":110000,"price_max":110000,"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":43946107928675,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-TAN06","requires_shipping":true,"taxable":true,"featured_image":{"id":35093823258723,"product_id":7951250784355,"position":4,"created_at":"2026-01-12T17:02:42+08:00","updated_at":"2026-01-12T17:02:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564","variant_ids":[43946107928675]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 田中 Shen Dream - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-TAN06","featured_media":{"alt":null,"id":26650479067235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43946107961443,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-TAN06","requires_shipping":true,"taxable":true,"featured_image":{"id":35093822931043,"product_id":7951250784355,"position":1,"created_at":"2026-01-12T17:02:41+08:00","updated_at":"2026-01-12T17:02:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee873e6bce84158f50fda7eab1fa258e0e51583.webp?v=1768208563","variant_ids":[43946107961443]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 田中 Shen Dream - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-TAN06","featured_media":{"alt":null,"id":26650478739555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee873e6bce84158f50fda7eab1fa258e0e51583.webp?v=1768208563"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43946108059747,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-TAN06","requires_shipping":true,"taxable":true,"featured_image":{"id":35093823979619,"product_id":7951250784355,"position":11,"created_at":"2026-01-12T17:02:45+08:00","updated_at":"2026-01-12T17:02:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3192c2d87cb8ecbb6c31ffc0410380ccf637ca.webp?v=1768208567","variant_ids":[43946108059747]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 田中 Shen Dream - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-TAN06","featured_media":{"alt":null,"id":26650479788131,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3192c2d87cb8ecbb6c31ffc0410380ccf637ca.webp?v=1768208567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee873e6bce84158f50fda7eab1fa258e0e51583.webp?v=1768208563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca8f13b0bba9e0377481cc62630074db66a9e8c.webp?v=1768208564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d5f28f3d679fc3b525d7f0b9c224a2901f35794.webp?v=1768208564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6a0179e72f11a8498db02c8fe4fb85b4615f80a.webp?v=1768208564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc350889d40b6271a47518f8e453091f7f849e0c.webp?v=1768208565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fe6af4908f2c352c7092792bc24e26528df58ad.webp?v=1768208566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f712a6bd1b219529780e0e5edf73c0f1316de0e6.webp?v=1768208566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/409b1a25994cabe9d5d1aa27af561335644493af.webp?v=1768208566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d973a5d91909763010db8725b2201d38b0bb75aa.webp?v=1768208567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3192c2d87cb8ecbb6c31ffc0410380ccf637ca.webp?v=1768208567"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee873e6bce84158f50fda7eab1fa258e0e51583.webp?v=1768208563","options":["color"],"media":[{"alt":null,"id":26650478739555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee873e6bce84158f50fda7eab1fa258e0e51583.webp?v=1768208563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee873e6bce84158f50fda7eab1fa258e0e51583.webp?v=1768208563","width":2000},{"alt":null,"id":26650478837859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca8f13b0bba9e0377481cc62630074db66a9e8c.webp?v=1768208564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca8f13b0bba9e0377481cc62630074db66a9e8c.webp?v=1768208564","width":2000},{"alt":null,"id":26650478968931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d5f28f3d679fc3b525d7f0b9c224a2901f35794.webp?v=1768208564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d5f28f3d679fc3b525d7f0b9c224a2901f35794.webp?v=1768208564","width":2000},{"alt":null,"id":26650479067235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564","width":2000},{"alt":null,"id":26650479100003,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6a0179e72f11a8498db02c8fe4fb85b4615f80a.webp?v=1768208564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6a0179e72f11a8498db02c8fe4fb85b4615f80a.webp?v=1768208564","width":2000},{"alt":null,"id":26650479198307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc350889d40b6271a47518f8e453091f7f849e0c.webp?v=1768208565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc350889d40b6271a47518f8e453091f7f849e0c.webp?v=1768208565","width":2000},{"alt":null,"id":26650479362147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fe6af4908f2c352c7092792bc24e26528df58ad.webp?v=1768208566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fe6af4908f2c352c7092792bc24e26528df58ad.webp?v=1768208566","width":2000},{"alt":null,"id":26650479493219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f712a6bd1b219529780e0e5edf73c0f1316de0e6.webp?v=1768208566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f712a6bd1b219529780e0e5edf73c0f1316de0e6.webp?v=1768208566","width":2000},{"alt":null,"id":26650479591523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/409b1a25994cabe9d5d1aa27af561335644493af.webp?v=1768208566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/409b1a25994cabe9d5d1aa27af561335644493af.webp?v=1768208566","width":2000},{"alt":null,"id":26650479722595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d973a5d91909763010db8725b2201d38b0bb75aa.webp?v=1768208567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d973a5d91909763010db8725b2201d38b0bb75aa.webp?v=1768208567","width":2000},{"alt":null,"id":26650479788131,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3192c2d87cb8ecbb6c31ffc0410380ccf637ca.webp?v=1768208567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3192c2d87cb8ecbb6c31ffc0410380ccf637ca.webp?v=1768208567","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43946107928675,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-TAN06","requires_shipping":true,"taxable":true,"featured_image":{"id":35093823258723,"product_id":7951250784355,"position":4,"created_at":"2026-01-12T17:02:42+08:00","updated_at":"2026-01-12T17:02:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564","variant_ids":[43946107928675]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 田中 Shen Dream - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-TAN06","featured_media":{"alt":null,"id":26650479067235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43946107961443,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-TAN06","requires_shipping":true,"taxable":true,"featured_image":{"id":35093822931043,"product_id":7951250784355,"position":1,"created_at":"2026-01-12T17:02:41+08:00","updated_at":"2026-01-12T17:02:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee873e6bce84158f50fda7eab1fa258e0e51583.webp?v=1768208563","variant_ids":[43946107961443]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 田中 Shen Dream - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-TAN06","featured_media":{"alt":null,"id":26650478739555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ee873e6bce84158f50fda7eab1fa258e0e51583.webp?v=1768208563"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43946108059747,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-TAN06","requires_shipping":true,"taxable":true,"featured_image":{"id":35093823979619,"product_id":7951250784355,"position":11,"created_at":"2026-01-12T17:02:45+08:00","updated_at":"2026-01-12T17:02:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3192c2d87cb8ecbb6c31ffc0410380ccf637ca.webp?v=1768208567","variant_ids":[43946108059747]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 田中 Shen Dream - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-TAN06","featured_media":{"alt":null,"id":26650479788131,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3192c2d87cb8ecbb6c31ffc0410380ccf637ca.webp?v=1768208567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43946107928675,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-TAN06","requires_shipping":true,"taxable":true,"featured_image":{"id":35093823258723,"product_id":7951250784355,"position":4,"created_at":"2026-01-12T17:02:42+08:00","updated_at":"2026-01-12T17:02:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564","variant_ids":[43946107928675]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 田中 Shen Dream - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-TAN06","featured_media":{"alt":null,"id":26650479067235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdfd79965c64c53bbf0ecb197090192a2628578.webp?v=1768208564"}},"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: "停產" }