$product = {"id":7411252953187,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - G本款","handle":"iphone-14-plus-mod-nx-magsafe-printable-iv07","description":null,"published_at":"2024-06-11T17:39:58+08:00","created_at":"2024-05-04T23:54:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","Top50","type-Mod NX Printable MagSafe Printable"],"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":41896555806819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479965319267,"product_id":7411252953187,"position":3,"created_at":"2024-05-04T23:54:17+08:00","updated_at":"2024-05-04T23:54:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057","variant_ids":[41896555806819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - G本款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV07","featured_media":{"alt":null,"id":23885215727715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4296f86bb7485db142ab1a830bd214c5a08cf_29d8e0a6-8e94-43f2-ab15-ff786dd68a78.webp?v=1714838052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a83831f6980843526332a1b8cc9cc7155d7e006_72fadfab-8115-4447-8c96-6c34d53efa43.webp?v=1714838055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf76787074e41d0ec7cfefa86f40ad5cfcb8da2a_4e6bc4c2-1fa0-44cd-9e30-12441dad804a.webp?v=1714838060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9a17e8f5013ad42e28fdd3af0e99a257c63fe7_e91ccd39-c7bb-4e37-b30f-51f8b2ffc7c3.webp?v=1714838062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dcc4ee734a59a553ae30ce007c88df1c3a28fc4_a758ba9c-63d0-487e-a563-cb913f8f864d.webp?v=1714838064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3271f8a4e741fc20d172c9935132241dab509473_8cda9359-7a3a-4078-b627-1892b4e02e2f.webp?v=1714838067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0efd3593dab68ec4486ea30ebeffa8383bf237ea_b4740f7c-6582-4f6b-9037-6b5c09ccfa87.webp?v=1714838069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa9c8c69a65c497e610edd3b1ac3b9a7fd4bbda_12b59dd8-0ef9-48da-8e5c-4787c4cf170e.webp?v=1714838071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea866f28c408bb720d9d8637d1e8b678daf45c0a_bca72dc5-6a92-44f4-b777-e68fbcedc23b.webp?v=1714838074"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4296f86bb7485db142ab1a830bd214c5a08cf_29d8e0a6-8e94-43f2-ab15-ff786dd68a78.webp?v=1714838052","options":["color"],"media":[{"alt":null,"id":23885214646371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4296f86bb7485db142ab1a830bd214c5a08cf_29d8e0a6-8e94-43f2-ab15-ff786dd68a78.webp?v=1714838052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4296f86bb7485db142ab1a830bd214c5a08cf_29d8e0a6-8e94-43f2-ab15-ff786dd68a78.webp?v=1714838052","width":2000},{"alt":null,"id":23885215203427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a83831f6980843526332a1b8cc9cc7155d7e006_72fadfab-8115-4447-8c96-6c34d53efa43.webp?v=1714838055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a83831f6980843526332a1b8cc9cc7155d7e006_72fadfab-8115-4447-8c96-6c34d53efa43.webp?v=1714838055","width":2000},{"alt":null,"id":23885215727715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057","width":2000},{"alt":null,"id":23885216350307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf76787074e41d0ec7cfefa86f40ad5cfcb8da2a_4e6bc4c2-1fa0-44cd-9e30-12441dad804a.webp?v=1714838060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf76787074e41d0ec7cfefa86f40ad5cfcb8da2a_4e6bc4c2-1fa0-44cd-9e30-12441dad804a.webp?v=1714838060","width":2000},{"alt":null,"id":23885216874595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9a17e8f5013ad42e28fdd3af0e99a257c63fe7_e91ccd39-c7bb-4e37-b30f-51f8b2ffc7c3.webp?v=1714838062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9a17e8f5013ad42e28fdd3af0e99a257c63fe7_e91ccd39-c7bb-4e37-b30f-51f8b2ffc7c3.webp?v=1714838062","width":2000},{"alt":null,"id":23885217661027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dcc4ee734a59a553ae30ce007c88df1c3a28fc4_a758ba9c-63d0-487e-a563-cb913f8f864d.webp?v=1714838064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dcc4ee734a59a553ae30ce007c88df1c3a28fc4_a758ba9c-63d0-487e-a563-cb913f8f864d.webp?v=1714838064","width":2000},{"alt":null,"id":23885218250851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3271f8a4e741fc20d172c9935132241dab509473_8cda9359-7a3a-4078-b627-1892b4e02e2f.webp?v=1714838067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3271f8a4e741fc20d172c9935132241dab509473_8cda9359-7a3a-4078-b627-1892b4e02e2f.webp?v=1714838067","width":2000},{"alt":null,"id":23885218742371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0efd3593dab68ec4486ea30ebeffa8383bf237ea_b4740f7c-6582-4f6b-9037-6b5c09ccfa87.webp?v=1714838069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0efd3593dab68ec4486ea30ebeffa8383bf237ea_b4740f7c-6582-4f6b-9037-6b5c09ccfa87.webp?v=1714838069","width":2000},{"alt":null,"id":23885219233891,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa9c8c69a65c497e610edd3b1ac3b9a7fd4bbda_12b59dd8-0ef9-48da-8e5c-4787c4cf170e.webp?v=1714838071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa9c8c69a65c497e610edd3b1ac3b9a7fd4bbda_12b59dd8-0ef9-48da-8e5c-4787c4cf170e.webp?v=1714838071","width":2000},{"alt":null,"id":23885219659875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea866f28c408bb720d9d8637d1e8b678daf45c0a_bca72dc5-6a92-44f4-b777-e68fbcedc23b.webp?v=1714838074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea866f28c408bb720d9d8637d1e8b678daf45c0a_bca72dc5-6a92-44f4-b777-e68fbcedc23b.webp?v=1714838074","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896555806819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479965319267,"product_id":7411252953187,"position":3,"created_at":"2024-05-04T23:54:17+08:00","updated_at":"2024-05-04T23:54:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057","variant_ids":[41896555806819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - G本款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV07","featured_media":{"alt":null,"id":23885215727715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896555806819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479965319267,"product_id":7411252953187,"position":3,"created_at":"2024-05-04T23:54:17+08:00","updated_at":"2024-05-04T23:54:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057","variant_ids":[41896555806819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - G本款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV07","featured_media":{"alt":null,"id":23885215727715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a242ab65cad0cf32d64098f65c28d07d955c6_65751e15-d4e2-49c7-b13d-666932192d8f.webp?v=1714838057"}},"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: "停產" }