$product = {"id":7415027400803,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb68","description":null,"published_at":"2024-06-11T17:56:00+08:00","created_at":"2024-05-05T20:09:10+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":41911094575203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31487963529315,"product_id":7415027400803,"position":1,"created_at":"2024-05-05T20:09:13+08:00","updated_at":"2024-05-05T20:09:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953","variant_ids":[41911094575203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23893307949155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e0ce369c3bfdf7460ab2ba2b9eafb737c64449_ff43b870-f1a6-4ea6-a642-d0ae735f048e.webp?v=1714910955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ef615cad654677ba3a00bb9316d09b158e57687_9cbc4b48-b4b9-4099-a67b-b72cf69ec7d4.webp?v=1714910957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8e8190d8d575d1353a83472f066ec64ee6a609a_70af2b42-55c9-450e-bcd3-8a8b7be79197.webp?v=1714910960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e5ac18655d8c0ff8a4813f70bde951fab192ee_250dda49-83c0-4a8b-84c1-099a07723115.webp?v=1714910962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2fbc4378957a7e794dfce6d700472da644f435_ec392b8b-5f9a-4cdf-9895-f1cd2dc0509a.webp?v=1714910965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42f042d49a97a30a044e359c49ea6daef3b22e58_b105bef5-5124-4d30-8d62-c1ca75e46518.webp?v=1714910967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f020f171e7826fc6e6b1e5535f5a27217186ada1_56210865-dd24-4422-81ee-656524abc19c.webp?v=1714910969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48e7f5c2815202a46b389a44fe2adf4a8de8fe07_23c4070d-9687-42ff-8a34-35e97797d384.webp?v=1714910972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a31d35781c6bc5107c63cbc13a519f16b1af10e7_9addf55f-df9d-401a-9bc1-13bf48c4d8bf.webp?v=1714910974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6157d04a4e3098248d21adaaa0c1667fefd84c3f_ae5a1997-3387-4293-b769-c1c56d529ff3.webp?v=1714910976"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953","options":["color"],"media":[{"alt":null,"id":23893307949155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953","width":2000},{"alt":null,"id":23893308244067,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e0ce369c3bfdf7460ab2ba2b9eafb737c64449_ff43b870-f1a6-4ea6-a642-d0ae735f048e.webp?v=1714910955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e0ce369c3bfdf7460ab2ba2b9eafb737c64449_ff43b870-f1a6-4ea6-a642-d0ae735f048e.webp?v=1714910955","width":2000},{"alt":null,"id":23893308538979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ef615cad654677ba3a00bb9316d09b158e57687_9cbc4b48-b4b9-4099-a67b-b72cf69ec7d4.webp?v=1714910957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ef615cad654677ba3a00bb9316d09b158e57687_9cbc4b48-b4b9-4099-a67b-b72cf69ec7d4.webp?v=1714910957","width":2000},{"alt":null,"id":23893309227107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8e8190d8d575d1353a83472f066ec64ee6a609a_70af2b42-55c9-450e-bcd3-8a8b7be79197.webp?v=1714910960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8e8190d8d575d1353a83472f066ec64ee6a609a_70af2b42-55c9-450e-bcd3-8a8b7be79197.webp?v=1714910960","width":2000},{"alt":null,"id":23893309751395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e5ac18655d8c0ff8a4813f70bde951fab192ee_250dda49-83c0-4a8b-84c1-099a07723115.webp?v=1714910962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e5ac18655d8c0ff8a4813f70bde951fab192ee_250dda49-83c0-4a8b-84c1-099a07723115.webp?v=1714910962","width":2000},{"alt":null,"id":23893310439523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2fbc4378957a7e794dfce6d700472da644f435_ec392b8b-5f9a-4cdf-9895-f1cd2dc0509a.webp?v=1714910965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2fbc4378957a7e794dfce6d700472da644f435_ec392b8b-5f9a-4cdf-9895-f1cd2dc0509a.webp?v=1714910965","width":2000},{"alt":null,"id":23893311127651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42f042d49a97a30a044e359c49ea6daef3b22e58_b105bef5-5124-4d30-8d62-c1ca75e46518.webp?v=1714910967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42f042d49a97a30a044e359c49ea6daef3b22e58_b105bef5-5124-4d30-8d62-c1ca75e46518.webp?v=1714910967","width":2000},{"alt":null,"id":23893311717475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f020f171e7826fc6e6b1e5535f5a27217186ada1_56210865-dd24-4422-81ee-656524abc19c.webp?v=1714910969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f020f171e7826fc6e6b1e5535f5a27217186ada1_56210865-dd24-4422-81ee-656524abc19c.webp?v=1714910969","width":2000},{"alt":null,"id":23893312143459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48e7f5c2815202a46b389a44fe2adf4a8de8fe07_23c4070d-9687-42ff-8a34-35e97797d384.webp?v=1714910972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48e7f5c2815202a46b389a44fe2adf4a8de8fe07_23c4070d-9687-42ff-8a34-35e97797d384.webp?v=1714910972","width":2000},{"alt":null,"id":23893312471139,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a31d35781c6bc5107c63cbc13a519f16b1af10e7_9addf55f-df9d-401a-9bc1-13bf48c4d8bf.webp?v=1714910974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a31d35781c6bc5107c63cbc13a519f16b1af10e7_9addf55f-df9d-401a-9bc1-13bf48c4d8bf.webp?v=1714910974","width":2000},{"alt":null,"id":23893313192035,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6157d04a4e3098248d21adaaa0c1667fefd84c3f_ae5a1997-3387-4293-b769-c1c56d529ff3.webp?v=1714910976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6157d04a4e3098248d21adaaa0c1667fefd84c3f_ae5a1997-3387-4293-b769-c1c56d529ff3.webp?v=1714910976","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911094575203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31487963529315,"product_id":7415027400803,"position":1,"created_at":"2024-05-05T20:09:13+08:00","updated_at":"2024-05-05T20:09:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953","variant_ids":[41911094575203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23893307949155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911094575203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31487963529315,"product_id":7415027400803,"position":1,"created_at":"2024-05-05T20:09:13+08:00","updated_at":"2024-05-05T20:09:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953","variant_ids":[41911094575203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23893307949155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf248e9ec468cfee59000538bedf56f56de4ab_85d86403-edec-4c8d-90f6-5e8d5fef78cb.webp?v=1714910953"}},"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: "停產" }