$product = {"id":7931277181027,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Chill","handle":"iphone-12-mini-mod-nx-magsafe-ei81","description":null,"published_at":"2025-11-28T11:03:07+08:00","created_at":"2025-11-28T10:00:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 12 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":43860837892195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EI81","requires_shipping":true,"taxable":true,"featured_image":{"id":34861433421923,"product_id":7931277181027,"position":8,"created_at":"2025-11-28T10:00:38+08:00","updated_at":"2025-11-28T10:00:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239","variant_ids":[43860837892195]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Chill - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-EI81","featured_media":{"alt":null,"id":26425853050979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e634b233068301ed99e6d9e7217d368c1d5463.webp?v=1764295236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3982865b3cc815f175b9449741d385b9d3ef9c8b.webp?v=1764295237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/676e1d75730877b2946bcfb9cf01daea2ab1c05b.webp?v=1764295237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3195dec20c6b432cc0902297fc39f5f2f227a275.webp?v=1764295238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50dc6c15faad395ba6fac9e39ff982e008e5a0e8.webp?v=1764295238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8be9ae33422eb0a850e87169c599f8ee01c885fd.webp?v=1764295239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebcf5bacc61c2983568d10d8197099a1ab37964.webp?v=1764295239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0615d7620d4156879645cae15e057d9027d1b167.webp?v=1764295240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81eb6be12ce7af37c9bda6bfa77efe3adee264ff.webp?v=1764295241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9898c536a280bfb73dc987abeef924cb8d9e54b1.webp?v=1764295241"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e634b233068301ed99e6d9e7217d368c1d5463.webp?v=1764295236","options":["color"],"media":[{"alt":null,"id":26425852231779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e634b233068301ed99e6d9e7217d368c1d5463.webp?v=1764295236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e634b233068301ed99e6d9e7217d368c1d5463.webp?v=1764295236","width":2000},{"alt":null,"id":26425852493923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3982865b3cc815f175b9449741d385b9d3ef9c8b.webp?v=1764295237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3982865b3cc815f175b9449741d385b9d3ef9c8b.webp?v=1764295237","width":2000},{"alt":null,"id":26425852592227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/676e1d75730877b2946bcfb9cf01daea2ab1c05b.webp?v=1764295237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/676e1d75730877b2946bcfb9cf01daea2ab1c05b.webp?v=1764295237","width":2000},{"alt":null,"id":26425852624995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3195dec20c6b432cc0902297fc39f5f2f227a275.webp?v=1764295238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3195dec20c6b432cc0902297fc39f5f2f227a275.webp?v=1764295238","width":2000},{"alt":null,"id":26425852690531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50dc6c15faad395ba6fac9e39ff982e008e5a0e8.webp?v=1764295238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50dc6c15faad395ba6fac9e39ff982e008e5a0e8.webp?v=1764295238","width":2000},{"alt":null,"id":26425852821603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8be9ae33422eb0a850e87169c599f8ee01c885fd.webp?v=1764295239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8be9ae33422eb0a850e87169c599f8ee01c885fd.webp?v=1764295239","width":2000},{"alt":null,"id":26425852919907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebcf5bacc61c2983568d10d8197099a1ab37964.webp?v=1764295239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebcf5bacc61c2983568d10d8197099a1ab37964.webp?v=1764295239","width":2000},{"alt":null,"id":26425853050979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239","width":2000},{"alt":null,"id":26425853214819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0615d7620d4156879645cae15e057d9027d1b167.webp?v=1764295240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0615d7620d4156879645cae15e057d9027d1b167.webp?v=1764295240","width":2000},{"alt":null,"id":26425853313123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81eb6be12ce7af37c9bda6bfa77efe3adee264ff.webp?v=1764295241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81eb6be12ce7af37c9bda6bfa77efe3adee264ff.webp?v=1764295241","width":2000},{"alt":null,"id":26425853411427,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9898c536a280bfb73dc987abeef924cb8d9e54b1.webp?v=1764295241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9898c536a280bfb73dc987abeef924cb8d9e54b1.webp?v=1764295241","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43860837892195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EI81","requires_shipping":true,"taxable":true,"featured_image":{"id":34861433421923,"product_id":7931277181027,"position":8,"created_at":"2025-11-28T10:00:38+08:00","updated_at":"2025-11-28T10:00:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239","variant_ids":[43860837892195]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Chill - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-EI81","featured_media":{"alt":null,"id":26425853050979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860837892195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EI81","requires_shipping":true,"taxable":true,"featured_image":{"id":34861433421923,"product_id":7931277181027,"position":8,"created_at":"2025-11-28T10:00:38+08:00","updated_at":"2025-11-28T10:00:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239","variant_ids":[43860837892195]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 白白日記 By Darylhochi Chill - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-EI81","featured_media":{"alt":null,"id":26425853050979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc116ffb75450365d191695f98a457ed68b3b865.webp?v=1764295239"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }