$product = {"id":7876150001763,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) 小勞撫 不關我的事","handle":"iphone-13-mini-mod-nx-magsafe-printable-em49","description":null,"published_at":"2025-09-04T09:25:45+08:00","created_at":"2025-09-03T12:14:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiaolaofu","device-iPhone 13 Mini","merge","reseller-xiaolaofu"],"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":43675628732515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34416587112547,"product_id":7876150001763,"position":9,"created_at":"2025-09-03T12:14:37+08:00","updated_at":"2025-09-03T12:14:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879","variant_ids":[43675628732515]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 小勞撫 不關我的事 - 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-EM49","featured_media":{"alt":null,"id":25988861558883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675628896355,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34416585932899,"product_id":7876150001763,"position":3,"created_at":"2025-09-03T12:14:33+08:00","updated_at":"2025-09-03T12:14:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee0e35aaa44cbf572a24dd98d7af70eededc57.webp?v=1756872875","variant_ids":[43675628896355]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 小勞撫 不關我的事 - 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-EM49","featured_media":{"alt":null,"id":25988860379235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee0e35aaa44cbf572a24dd98d7af70eededc57.webp?v=1756872875"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675628961891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34416586293347,"product_id":7876150001763,"position":5,"created_at":"2025-09-03T12:14:34+08:00","updated_at":"2025-09-03T12:14:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61289e42e4b8dd110b2379bad84991cf18b175fd.webp?v=1756872876","variant_ids":[43675628961891]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 小勞撫 不關我的事 - 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-EM49","featured_media":{"alt":null,"id":25988860739683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61289e42e4b8dd110b2379bad84991cf18b175fd.webp?v=1756872876"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca2d3e7fb127bcc800702f5ae5379aa2e47ebfd1.webp?v=1756872872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be39e1ab7ad6dc6e181444028a2aef2f9f84a69.webp?v=1756872874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee0e35aaa44cbf572a24dd98d7af70eededc57.webp?v=1756872875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c606de9a4a12993160a99a2d629f0a55e0f650c.webp?v=1756872875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61289e42e4b8dd110b2379bad84991cf18b175fd.webp?v=1756872876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0333ecaee0a234d8821bf20ce6a4143d73a7ebb7.webp?v=1756872877","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f19711afc2f5b11adc480ccace5d4d09d2f863c.webp?v=1756872878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88aa9cd34073a583839c1d450e0e6888f253cbdb.webp?v=1756872878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84baa0a889766687bfb2ee66af4246d95371572d.webp?v=1756872880"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca2d3e7fb127bcc800702f5ae5379aa2e47ebfd1.webp?v=1756872872","options":["color"],"media":[{"alt":null,"id":25988859854947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca2d3e7fb127bcc800702f5ae5379aa2e47ebfd1.webp?v=1756872872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca2d3e7fb127bcc800702f5ae5379aa2e47ebfd1.webp?v=1756872872","width":2000},{"alt":null,"id":25988860280931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be39e1ab7ad6dc6e181444028a2aef2f9f84a69.webp?v=1756872874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be39e1ab7ad6dc6e181444028a2aef2f9f84a69.webp?v=1756872874","width":2000},{"alt":null,"id":25988860379235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee0e35aaa44cbf572a24dd98d7af70eededc57.webp?v=1756872875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee0e35aaa44cbf572a24dd98d7af70eededc57.webp?v=1756872875","width":2000},{"alt":null,"id":25988860543075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c606de9a4a12993160a99a2d629f0a55e0f650c.webp?v=1756872875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c606de9a4a12993160a99a2d629f0a55e0f650c.webp?v=1756872875","width":2000},{"alt":null,"id":25988860739683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61289e42e4b8dd110b2379bad84991cf18b175fd.webp?v=1756872876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61289e42e4b8dd110b2379bad84991cf18b175fd.webp?v=1756872876","width":2000},{"alt":null,"id":25988860936291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0333ecaee0a234d8821bf20ce6a4143d73a7ebb7.webp?v=1756872877"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0333ecaee0a234d8821bf20ce6a4143d73a7ebb7.webp?v=1756872877","width":2000},{"alt":null,"id":25988861165667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f19711afc2f5b11adc480ccace5d4d09d2f863c.webp?v=1756872878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f19711afc2f5b11adc480ccace5d4d09d2f863c.webp?v=1756872878","width":2000},{"alt":null,"id":25988861296739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88aa9cd34073a583839c1d450e0e6888f253cbdb.webp?v=1756872878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88aa9cd34073a583839c1d450e0e6888f253cbdb.webp?v=1756872878","width":2000},{"alt":null,"id":25988861558883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879","width":2000},{"alt":null,"id":25988861755491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84baa0a889766687bfb2ee66af4246d95371572d.webp?v=1756872880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84baa0a889766687bfb2ee66af4246d95371572d.webp?v=1756872880","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675628732515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34416587112547,"product_id":7876150001763,"position":9,"created_at":"2025-09-03T12:14:37+08:00","updated_at":"2025-09-03T12:14:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879","variant_ids":[43675628732515]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 小勞撫 不關我的事 - 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-EM49","featured_media":{"alt":null,"id":25988861558883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675628896355,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34416585932899,"product_id":7876150001763,"position":3,"created_at":"2025-09-03T12:14:33+08:00","updated_at":"2025-09-03T12:14:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee0e35aaa44cbf572a24dd98d7af70eededc57.webp?v=1756872875","variant_ids":[43675628896355]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 小勞撫 不關我的事 - 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-EM49","featured_media":{"alt":null,"id":25988860379235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee0e35aaa44cbf572a24dd98d7af70eededc57.webp?v=1756872875"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675628961891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34416586293347,"product_id":7876150001763,"position":5,"created_at":"2025-09-03T12:14:34+08:00","updated_at":"2025-09-03T12:14:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61289e42e4b8dd110b2379bad84991cf18b175fd.webp?v=1756872876","variant_ids":[43675628961891]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 小勞撫 不關我的事 - 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-EM49","featured_media":{"alt":null,"id":25988860739683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61289e42e4b8dd110b2379bad84991cf18b175fd.webp?v=1756872876"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675628732515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-EM49","requires_shipping":true,"taxable":true,"featured_image":{"id":34416587112547,"product_id":7876150001763,"position":9,"created_at":"2025-09-03T12:14:37+08:00","updated_at":"2025-09-03T12:14:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879","variant_ids":[43675628732515]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) 小勞撫 不關我的事 - 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-EM49","featured_media":{"alt":null,"id":25988861558883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ed5eee237e38b9a6cd14c37947ce3e1f4a4778a.webp?v=1756872879"}},"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: "停產" }