$product = {"id":7415029923939,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb77","description":null,"published_at":"2024-06-11T17:56:05+08:00","created_at":"2024-05-05T20:09:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41911115022435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31487973261411,"product_id":7415029923939,"position":8,"created_at":"2024-05-05T20:09:54+08:00","updated_at":"2024-05-05T20:09:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994","variant_ids":[41911115022435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-PB77","featured_media":{"alt":null,"id":23893317517411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbab572f142df9e969867337bad6cba2fec21536_f313336b-1e6c-44f1-b9d0-f3bed1034029.webp?v=1714910979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9bb672363fc1f01eff85155e4c8cddb9040e67_bc9ed2e5-da37-48b3-a4c3-4392bc075b88.webp?v=1714910981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe549df8abd0d09fe600b5373dc26ee6f1ff1c87_fca2468e-afd0-4497-90fe-9a49b7903903.webp?v=1714910983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdf249e6ad4f4244aa7c5244d2621409fbdbc48_d3965712-0919-4925-95b6-d499106d1ff0.webp?v=1714910985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de67326d275ec8f1873c8c42c26741020ba3f9_4de08fb7-8e55-4bd6-9a2c-e4ca2e97520e.webp?v=1714910988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24e89e2856dc959630db4ba89bc866b17938b120_3d7df3c9-6f11-4cc9-aa05-5c6fae98cfbc.webp?v=1714910990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdba53e643db832aed4918f76e98ce879b68676_217d06e9-b4e9-4de0-931a-ab652a88eea4.webp?v=1714910992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4340f5a7ee27286b370a0f32a36b594b7cbcaaf9_4280939a-abf4-43e1-a94f-48d98ba6f655.webp?v=1714910997","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb2dd13dee1f9d091f47eea78533c9eabd53d251_c8747bde-bf3a-4df7-a1c8-8f0452143149.webp?v=1714910999","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5934c75348c0eaba4e3aa913a1141b678c5cbb1a_836ce0bf-feb6-4032-b3c3-88266e8a36f3.webp?v=1714911001"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbab572f142df9e969867337bad6cba2fec21536_f313336b-1e6c-44f1-b9d0-f3bed1034029.webp?v=1714910979","options":["color"],"media":[{"alt":null,"id":23893313552483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbab572f142df9e969867337bad6cba2fec21536_f313336b-1e6c-44f1-b9d0-f3bed1034029.webp?v=1714910979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbab572f142df9e969867337bad6cba2fec21536_f313336b-1e6c-44f1-b9d0-f3bed1034029.webp?v=1714910979","width":2000},{"alt":null,"id":23893314044003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9bb672363fc1f01eff85155e4c8cddb9040e67_bc9ed2e5-da37-48b3-a4c3-4392bc075b88.webp?v=1714910981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9bb672363fc1f01eff85155e4c8cddb9040e67_bc9ed2e5-da37-48b3-a4c3-4392bc075b88.webp?v=1714910981","width":2000},{"alt":null,"id":23893314404451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe549df8abd0d09fe600b5373dc26ee6f1ff1c87_fca2468e-afd0-4497-90fe-9a49b7903903.webp?v=1714910983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe549df8abd0d09fe600b5373dc26ee6f1ff1c87_fca2468e-afd0-4497-90fe-9a49b7903903.webp?v=1714910983","width":2000},{"alt":null,"id":23893315321955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdf249e6ad4f4244aa7c5244d2621409fbdbc48_d3965712-0919-4925-95b6-d499106d1ff0.webp?v=1714910985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdf249e6ad4f4244aa7c5244d2621409fbdbc48_d3965712-0919-4925-95b6-d499106d1ff0.webp?v=1714910985","width":2000},{"alt":null,"id":23893315780707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de67326d275ec8f1873c8c42c26741020ba3f9_4de08fb7-8e55-4bd6-9a2c-e4ca2e97520e.webp?v=1714910988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02de67326d275ec8f1873c8c42c26741020ba3f9_4de08fb7-8e55-4bd6-9a2c-e4ca2e97520e.webp?v=1714910988","width":2000},{"alt":null,"id":23893316173923,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24e89e2856dc959630db4ba89bc866b17938b120_3d7df3c9-6f11-4cc9-aa05-5c6fae98cfbc.webp?v=1714910990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24e89e2856dc959630db4ba89bc866b17938b120_3d7df3c9-6f11-4cc9-aa05-5c6fae98cfbc.webp?v=1714910990","width":2000},{"alt":null,"id":23893316829283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdba53e643db832aed4918f76e98ce879b68676_217d06e9-b4e9-4de0-931a-ab652a88eea4.webp?v=1714910992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcdba53e643db832aed4918f76e98ce879b68676_217d06e9-b4e9-4de0-931a-ab652a88eea4.webp?v=1714910992","width":2000},{"alt":null,"id":23893317517411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994","width":2000},{"alt":null,"id":23893317943395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4340f5a7ee27286b370a0f32a36b594b7cbcaaf9_4280939a-abf4-43e1-a94f-48d98ba6f655.webp?v=1714910997"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4340f5a7ee27286b370a0f32a36b594b7cbcaaf9_4280939a-abf4-43e1-a94f-48d98ba6f655.webp?v=1714910997","width":2000},{"alt":null,"id":23893318697059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb2dd13dee1f9d091f47eea78533c9eabd53d251_c8747bde-bf3a-4df7-a1c8-8f0452143149.webp?v=1714910999"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb2dd13dee1f9d091f47eea78533c9eabd53d251_c8747bde-bf3a-4df7-a1c8-8f0452143149.webp?v=1714910999","width":2000},{"alt":null,"id":23893319123043,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5934c75348c0eaba4e3aa913a1141b678c5cbb1a_836ce0bf-feb6-4032-b3c3-88266e8a36f3.webp?v=1714911001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5934c75348c0eaba4e3aa913a1141b678c5cbb1a_836ce0bf-feb6-4032-b3c3-88266e8a36f3.webp?v=1714911001","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911115022435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31487973261411,"product_id":7415029923939,"position":8,"created_at":"2024-05-05T20:09:54+08:00","updated_at":"2024-05-05T20:09:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994","variant_ids":[41911115022435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-PB77","featured_media":{"alt":null,"id":23893317517411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911115022435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31487973261411,"product_id":7415029923939,"position":8,"created_at":"2024-05-05T20:09:54+08:00","updated_at":"2024-05-05T20:09:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994","variant_ids":[41911115022435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-PB77","featured_media":{"alt":null,"id":23893317517411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c579c0e93f7a4d8c6c4d469db954001da3c06b_87d80f68-6c1a-4516-b23b-6daf299d914f.webp?v=1714910994"}},"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: "停產" }