$product = {"id":7931306410083,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um...","handle":"iphone-13-mini-mod-nx-magsafe-ei82","description":null,"published_at":"2025-11-28T10:58:34+08:00","created_at":"2025-11-28T10:27:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 13 Mini","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":43860950843491,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861746389091,"product_id":7931306410083,"position":4,"created_at":"2025-11-28T10:27:24+08:00","updated_at":"2025-11-28T10:27:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846","variant_ids":[43860950843491]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - 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":"MPB01228J5-EI82","featured_media":{"alt":null,"id":26426165854307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860950941795,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861747732579,"product_id":7931306410083,"position":8,"created_at":"2025-11-28T10:27:28+08:00","updated_at":"2025-11-28T10:27:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907ef62832948b64bca366102090a4e167564c84.webp?v=1764296850","variant_ids":[43860950941795]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-EI82","featured_media":{"alt":null,"id":26426167197795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907ef62832948b64bca366102090a4e167564c84.webp?v=1764296850"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860950974563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861746782307,"product_id":7931306410083,"position":5,"created_at":"2025-11-28T10:27:25+08:00","updated_at":"2025-11-28T10:27:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e586c0d80343e58fff889019a49d3db99a1677.webp?v=1764296847","variant_ids":[43860950974563]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-EI82","featured_media":{"alt":null,"id":26426166214755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e586c0d80343e58fff889019a49d3db99a1677.webp?v=1764296847"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e8b4ef18980a61c15495bc9f6bbd9f173a896d.webp?v=1764296843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b057ba135fd173e27cbc415bbace2eac105d768.webp?v=1764296845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51d5e99cd4ff5ef32aded7167cb66885dcca12d.webp?v=1764296846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e586c0d80343e58fff889019a49d3db99a1677.webp?v=1764296847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc3b3b79c4cd54e4074bc5383556a787e60ec41.webp?v=1764296849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec659d0ec3a91d82551ad526a6b0791c875ff4.webp?v=1764296850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907ef62832948b64bca366102090a4e167564c84.webp?v=1764296850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23de38e7bcd6c6308e6fcb835741b22db7701ed.webp?v=1764296852","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ed9ea4024eab864ffb97467aec8b8bd2644f65_ef14eab5-e791-48c6-941d-314a871710f3.webp?v=1764296853"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e8b4ef18980a61c15495bc9f6bbd9f173a896d.webp?v=1764296843","options":["color"],"media":[{"alt":null,"id":26426164478051,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e8b4ef18980a61c15495bc9f6bbd9f173a896d.webp?v=1764296843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e8b4ef18980a61c15495bc9f6bbd9f173a896d.webp?v=1764296843","width":2000},{"alt":null,"id":26426165657699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b057ba135fd173e27cbc415bbace2eac105d768.webp?v=1764296845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b057ba135fd173e27cbc415bbace2eac105d768.webp?v=1764296845","width":2000},{"alt":null,"id":26426165821539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51d5e99cd4ff5ef32aded7167cb66885dcca12d.webp?v=1764296846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51d5e99cd4ff5ef32aded7167cb66885dcca12d.webp?v=1764296846","width":2000},{"alt":null,"id":26426165854307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846","width":2000},{"alt":null,"id":26426166214755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e586c0d80343e58fff889019a49d3db99a1677.webp?v=1764296847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e586c0d80343e58fff889019a49d3db99a1677.webp?v=1764296847","width":2000},{"alt":null,"id":26426166968419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc3b3b79c4cd54e4074bc5383556a787e60ec41.webp?v=1764296849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc3b3b79c4cd54e4074bc5383556a787e60ec41.webp?v=1764296849","width":2000},{"alt":null,"id":26426167066723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec659d0ec3a91d82551ad526a6b0791c875ff4.webp?v=1764296850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec659d0ec3a91d82551ad526a6b0791c875ff4.webp?v=1764296850","width":2000},{"alt":null,"id":26426167197795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907ef62832948b64bca366102090a4e167564c84.webp?v=1764296850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907ef62832948b64bca366102090a4e167564c84.webp?v=1764296850","width":2000},{"alt":null,"id":26426168508515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23de38e7bcd6c6308e6fcb835741b22db7701ed.webp?v=1764296852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23de38e7bcd6c6308e6fcb835741b22db7701ed.webp?v=1764296852","width":2000},{"alt":null,"id":26426168574051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ed9ea4024eab864ffb97467aec8b8bd2644f65_ef14eab5-e791-48c6-941d-314a871710f3.webp?v=1764296853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ed9ea4024eab864ffb97467aec8b8bd2644f65_ef14eab5-e791-48c6-941d-314a871710f3.webp?v=1764296853","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43860950843491,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861746389091,"product_id":7931306410083,"position":4,"created_at":"2025-11-28T10:27:24+08:00","updated_at":"2025-11-28T10:27:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846","variant_ids":[43860950843491]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - 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":"MPB01228J5-EI82","featured_media":{"alt":null,"id":26426165854307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860950941795,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861747732579,"product_id":7931306410083,"position":8,"created_at":"2025-11-28T10:27:28+08:00","updated_at":"2025-11-28T10:27:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907ef62832948b64bca366102090a4e167564c84.webp?v=1764296850","variant_ids":[43860950941795]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-EI82","featured_media":{"alt":null,"id":26426167197795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907ef62832948b64bca366102090a4e167564c84.webp?v=1764296850"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860950974563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861746782307,"product_id":7931306410083,"position":5,"created_at":"2025-11-28T10:27:25+08:00","updated_at":"2025-11-28T10:27:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e586c0d80343e58fff889019a49d3db99a1677.webp?v=1764296847","variant_ids":[43860950974563]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-EI82","featured_media":{"alt":null,"id":26426166214755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e586c0d80343e58fff889019a49d3db99a1677.webp?v=1764296847"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860950843491,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861746389091,"product_id":7931306410083,"position":4,"created_at":"2025-11-28T10:27:24+08:00","updated_at":"2025-11-28T10:27:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846","variant_ids":[43860950843491]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Um... - 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":"MPB01228J5-EI82","featured_media":{"alt":null,"id":26426165854307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ad2073fb9f46e3b831fcf9633ef5016c2c005bf.webp?v=1764296846"}},"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: "停產" }