$product = {"id":7876108746851,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小勞撫 請勿打擾","handle":"iphone-14-plus-mod-nx-magsafe-printable-em52","description":null,"published_at":"2025-09-04T09:45:01+08:00","created_at":"2025-09-03T12:03:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiaolaofu","device-iPhone 14 Plus","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":43675446968419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EM52","requires_shipping":true,"taxable":true,"featured_image":{"id":34416406724707,"product_id":7876108746851,"position":12,"created_at":"2025-09-03T12:03:32+08:00","updated_at":"2025-09-03T12:03:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214","variant_ids":[43675446968419]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-EM52","featured_media":{"alt":null,"id":25988681203811,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df561e5f49b3ec418a05a9d8989af2113611db94.webp?v=1756872205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1f16123660b6638b38a770f632c807f97f54624.webp?v=1756872206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7653ea412f4d06519555dcf78076fba68201dbc.webp?v=1756872207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99ed84aa8ca20ecff23ba9379b802cf9cc0d2ece.webp?v=1756872208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd08c118f32c5f93007a210c00cd1d8523c57ffc.webp?v=1756872208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b479c5a1e2730f70f62d651a89c8e4127b808b06.webp?v=1756872209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e55a30d0855ee0f6de5eba94a3633b5414f46086.webp?v=1756872210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6b99eb49e7c378a2f0901ee7efa5671b1114d4.webp?v=1756872211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38618ef6858f089d17fa07388397c72ad9ff949e.webp?v=1756872211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c67ef13855245f57c07ebd0e5325d118af4513.webp?v=1756872212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf347730b275759c588c7771d3bc3f4c3a1fbb76.webp?v=1756872213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f689b6469ad286f7dff68c2f9c4f1816b2f0b514.webp?v=1756872215"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df561e5f49b3ec418a05a9d8989af2113611db94.webp?v=1756872205","options":["color"],"media":[{"alt":null,"id":25988679762019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df561e5f49b3ec418a05a9d8989af2113611db94.webp?v=1756872205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df561e5f49b3ec418a05a9d8989af2113611db94.webp?v=1756872205","width":2000},{"alt":null,"id":25988679893091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1f16123660b6638b38a770f632c807f97f54624.webp?v=1756872206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1f16123660b6638b38a770f632c807f97f54624.webp?v=1756872206","width":2000},{"alt":null,"id":25988679958627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7653ea412f4d06519555dcf78076fba68201dbc.webp?v=1756872207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7653ea412f4d06519555dcf78076fba68201dbc.webp?v=1756872207","width":2000},{"alt":null,"id":25988680056931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99ed84aa8ca20ecff23ba9379b802cf9cc0d2ece.webp?v=1756872208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99ed84aa8ca20ecff23ba9379b802cf9cc0d2ece.webp?v=1756872208","width":2000},{"alt":null,"id":25988680155235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd08c118f32c5f93007a210c00cd1d8523c57ffc.webp?v=1756872208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd08c118f32c5f93007a210c00cd1d8523c57ffc.webp?v=1756872208","width":2000},{"alt":null,"id":25988680286307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b479c5a1e2730f70f62d651a89c8e4127b808b06.webp?v=1756872209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b479c5a1e2730f70f62d651a89c8e4127b808b06.webp?v=1756872209","width":2000},{"alt":null,"id":25988680482915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e55a30d0855ee0f6de5eba94a3633b5414f46086.webp?v=1756872210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e55a30d0855ee0f6de5eba94a3633b5414f46086.webp?v=1756872210","width":2000},{"alt":null,"id":25988680646755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6b99eb49e7c378a2f0901ee7efa5671b1114d4.webp?v=1756872211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6b99eb49e7c378a2f0901ee7efa5671b1114d4.webp?v=1756872211","width":2000},{"alt":null,"id":25988680745059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38618ef6858f089d17fa07388397c72ad9ff949e.webp?v=1756872211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38618ef6858f089d17fa07388397c72ad9ff949e.webp?v=1756872211","width":2000},{"alt":null,"id":25988680810595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c67ef13855245f57c07ebd0e5325d118af4513.webp?v=1756872212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2c67ef13855245f57c07ebd0e5325d118af4513.webp?v=1756872212","width":2000},{"alt":null,"id":25988680908899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf347730b275759c588c7771d3bc3f4c3a1fbb76.webp?v=1756872213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf347730b275759c588c7771d3bc3f4c3a1fbb76.webp?v=1756872213","width":2000},{"alt":null,"id":25988681203811,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214","width":2000},{"alt":null,"id":25988681269347,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f689b6469ad286f7dff68c2f9c4f1816b2f0b514.webp?v=1756872215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f689b6469ad286f7dff68c2f9c4f1816b2f0b514.webp?v=1756872215","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675446968419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EM52","requires_shipping":true,"taxable":true,"featured_image":{"id":34416406724707,"product_id":7876108746851,"position":12,"created_at":"2025-09-03T12:03:32+08:00","updated_at":"2025-09-03T12:03:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214","variant_ids":[43675446968419]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-EM52","featured_media":{"alt":null,"id":25988681203811,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675446968419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EM52","requires_shipping":true,"taxable":true,"featured_image":{"id":34416406724707,"product_id":7876108746851,"position":12,"created_at":"2025-09-03T12:03:32+08:00","updated_at":"2025-09-03T12:03:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214","variant_ids":[43675446968419]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-EM52","featured_media":{"alt":null,"id":25988681203811,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79306d48413bda0c3a3b8e3660b51a024d2310a.webp?v=1756872214"}},"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: "停產" }