$product = {"id":7931300544611,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 白白日記 By Darylhochi 三原色","handle":"iphone-14-plus-mod-nx-magsafe-ei79","description":null,"published_at":"2025-11-28T10:59:20+08:00","created_at":"2025-11-28T10:21:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 14 Plus","merge","reseller-darylhochi"],"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":43860931608675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EI79","requires_shipping":true,"taxable":true,"featured_image":{"id":34861709459555,"product_id":7931300544611,"position":8,"created_at":"2025-11-28T10:21:45+08:00","updated_at":"2025-11-28T10:21:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507","variant_ids":[43860931608675]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 白白日記 By Darylhochi 三原色 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-EI79","featured_media":{"alt":null,"id":26426128957539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe89b32fff73a75e7af117cc9da86fc68188f594.webp?v=1764296496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c945aa15084bc60953962814dc5f61251b3e872.webp?v=1764296496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a5b959e449fefea4c161820c49bc072df25179d.webp?v=1764296497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d93b05267ef7758927f95dd10ceee837730bdf.webp?v=1764296497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8572ab1a907acb2211df303491cba08a1758788.webp?v=1764296498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b912ad9fe9d52bf5b422f404fc6cbc27249ee4b.webp?v=1764296505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c8b40483f77264bca34f6de8e3c028729ddb7f.webp?v=1764296507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040b5e02c54f2280f1abb5b8e87ca0a463672bbd.webp?v=1764296518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b09807916e79187828e990b281ffd038f0f6e042.webp?v=1764296523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99154b84ab5b15bac4b32e39c0c8b92fee3c358.webp?v=1764296523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75d93bbef1217210890c8c5e995301934cfd9eca.webp?v=1764296524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6f766f747161f28c841ffd0e682fa8fa664ad8.webp?v=1764296526"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe89b32fff73a75e7af117cc9da86fc68188f594.webp?v=1764296496","options":["color"],"media":[{"alt":null,"id":26426127908963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe89b32fff73a75e7af117cc9da86fc68188f594.webp?v=1764296496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe89b32fff73a75e7af117cc9da86fc68188f594.webp?v=1764296496","width":2000},{"alt":null,"id":26426128072803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c945aa15084bc60953962814dc5f61251b3e872.webp?v=1764296496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c945aa15084bc60953962814dc5f61251b3e872.webp?v=1764296496","width":2000},{"alt":null,"id":26426128171107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a5b959e449fefea4c161820c49bc072df25179d.webp?v=1764296497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a5b959e449fefea4c161820c49bc072df25179d.webp?v=1764296497","width":2000},{"alt":null,"id":26426128334947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d93b05267ef7758927f95dd10ceee837730bdf.webp?v=1764296497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46d93b05267ef7758927f95dd10ceee837730bdf.webp?v=1764296497","width":2000},{"alt":null,"id":26426128498787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8572ab1a907acb2211df303491cba08a1758788.webp?v=1764296498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8572ab1a907acb2211df303491cba08a1758788.webp?v=1764296498","width":2000},{"alt":null,"id":26426128859235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b912ad9fe9d52bf5b422f404fc6cbc27249ee4b.webp?v=1764296505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b912ad9fe9d52bf5b422f404fc6cbc27249ee4b.webp?v=1764296505","width":2000},{"alt":null,"id":26426128924771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c8b40483f77264bca34f6de8e3c028729ddb7f.webp?v=1764296507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64c8b40483f77264bca34f6de8e3c028729ddb7f.webp?v=1764296507","width":2000},{"alt":null,"id":26426128957539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507","width":2000},{"alt":null,"id":26426129678435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040b5e02c54f2280f1abb5b8e87ca0a463672bbd.webp?v=1764296518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040b5e02c54f2280f1abb5b8e87ca0a463672bbd.webp?v=1764296518","width":2000},{"alt":null,"id":26426129809507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b09807916e79187828e990b281ffd038f0f6e042.webp?v=1764296523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b09807916e79187828e990b281ffd038f0f6e042.webp?v=1764296523","width":2000},{"alt":null,"id":26426129875043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99154b84ab5b15bac4b32e39c0c8b92fee3c358.webp?v=1764296523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99154b84ab5b15bac4b32e39c0c8b92fee3c358.webp?v=1764296523","width":2000},{"alt":null,"id":26426129907811,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75d93bbef1217210890c8c5e995301934cfd9eca.webp?v=1764296524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75d93bbef1217210890c8c5e995301934cfd9eca.webp?v=1764296524","width":2000},{"alt":null,"id":26426130006115,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6f766f747161f28c841ffd0e682fa8fa664ad8.webp?v=1764296526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6f766f747161f28c841ffd0e682fa8fa664ad8.webp?v=1764296526","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43860931608675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EI79","requires_shipping":true,"taxable":true,"featured_image":{"id":34861709459555,"product_id":7931300544611,"position":8,"created_at":"2025-11-28T10:21:45+08:00","updated_at":"2025-11-28T10:21:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507","variant_ids":[43860931608675]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 白白日記 By Darylhochi 三原色 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-EI79","featured_media":{"alt":null,"id":26426128957539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860931608675,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EI79","requires_shipping":true,"taxable":true,"featured_image":{"id":34861709459555,"product_id":7931300544611,"position":8,"created_at":"2025-11-28T10:21:45+08:00","updated_at":"2025-11-28T10:21:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507","variant_ids":[43860931608675]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 白白日記 By Darylhochi 三原色 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-EI79","featured_media":{"alt":null,"id":26426128957539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dde635e0467faca9e888a65d1415b2e96078cbbf.webp?v=1764296507"}},"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: "停產" }