$product = {"id":7415003742307,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb70","description":null,"published_at":"2024-06-11T17:55:22+08:00","created_at":"2024-05-05T20:04:28+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":41910838984803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31487899697251,"product_id":7415003742307,"position":6,"created_at":"2024-05-05T20:04:43+08:00","updated_at":"2024-05-05T20:04:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683","variant_ids":[41910838984803]},"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-PB70","featured_media":{"alt":null,"id":23893243887715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cf390dca326d728f2950683d69fdeec806bee50_7c661590-22be-4ecf-93fe-4c03d00abc7c.webp?v=1714910671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33419d82f6284f0b856c76d7b96aa992f239d457_48393736-d444-4b1e-a508-2fbc060427c1.webp?v=1714910673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba243800a0001dff192b91dfc69c40ee2d85421b_2c399724-4063-4375-8474-ac3adbf29007.webp?v=1714910675","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2d0c68059559c25333a53cf561fddcf729083d_c4f60fdd-c913-4c81-ba5f-9855e9f99871.webp?v=1714910678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43cc7e2372097b87067886326f09f091cc07b3_a407d4f1-16e2-4e74-9596-1aa5fa01422d.webp?v=1714910681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355a1b5a0eb2eb52c6c511ca9a989b9b76300ffa_20343bf6-8268-46db-bce9-c47819432c1c.webp?v=1714910685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75548ec704dc76c2df7aed7bf7d1d9c69db60a33_8dbfd949-4422-4a4e-86a9-e2d7a2982bb6.webp?v=1714910688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b78aa993a0a3c680299c8df43f30508b2a2a0b4_6f8a0ea2-71ea-4eb3-ad6c-8bb16b35d06a.webp?v=1714910690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264c43ca02fe993275da45348eb292cd959d60aa_c61d51cc-63c2-4890-985b-9fb6a8a8f502.webp?v=1714910693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df80b34c4ed92fd767a5b505ae38b30842985a9_e83759da-004b-4c3d-8858-8c000e5d4bd2.webp?v=1714910695"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cf390dca326d728f2950683d69fdeec806bee50_7c661590-22be-4ecf-93fe-4c03d00abc7c.webp?v=1714910671","options":["color"],"media":[{"alt":null,"id":23893240283235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cf390dca326d728f2950683d69fdeec806bee50_7c661590-22be-4ecf-93fe-4c03d00abc7c.webp?v=1714910671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cf390dca326d728f2950683d69fdeec806bee50_7c661590-22be-4ecf-93fe-4c03d00abc7c.webp?v=1714910671","width":2000},{"alt":null,"id":23893241036899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33419d82f6284f0b856c76d7b96aa992f239d457_48393736-d444-4b1e-a508-2fbc060427c1.webp?v=1714910673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33419d82f6284f0b856c76d7b96aa992f239d457_48393736-d444-4b1e-a508-2fbc060427c1.webp?v=1714910673","width":2000},{"alt":null,"id":23893241790563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba243800a0001dff192b91dfc69c40ee2d85421b_2c399724-4063-4375-8474-ac3adbf29007.webp?v=1714910675"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba243800a0001dff192b91dfc69c40ee2d85421b_2c399724-4063-4375-8474-ac3adbf29007.webp?v=1714910675","width":2000},{"alt":null,"id":23893242216547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2d0c68059559c25333a53cf561fddcf729083d_c4f60fdd-c913-4c81-ba5f-9855e9f99871.webp?v=1714910678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2d0c68059559c25333a53cf561fddcf729083d_c4f60fdd-c913-4c81-ba5f-9855e9f99871.webp?v=1714910678","width":2000},{"alt":null,"id":23893242970211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43cc7e2372097b87067886326f09f091cc07b3_a407d4f1-16e2-4e74-9596-1aa5fa01422d.webp?v=1714910681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc43cc7e2372097b87067886326f09f091cc07b3_a407d4f1-16e2-4e74-9596-1aa5fa01422d.webp?v=1714910681","width":2000},{"alt":null,"id":23893243887715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683","width":2000},{"alt":null,"id":23893244543075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355a1b5a0eb2eb52c6c511ca9a989b9b76300ffa_20343bf6-8268-46db-bce9-c47819432c1c.webp?v=1714910685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355a1b5a0eb2eb52c6c511ca9a989b9b76300ffa_20343bf6-8268-46db-bce9-c47819432c1c.webp?v=1714910685","width":2000},{"alt":null,"id":23893245263971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75548ec704dc76c2df7aed7bf7d1d9c69db60a33_8dbfd949-4422-4a4e-86a9-e2d7a2982bb6.webp?v=1714910688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75548ec704dc76c2df7aed7bf7d1d9c69db60a33_8dbfd949-4422-4a4e-86a9-e2d7a2982bb6.webp?v=1714910688","width":2000},{"alt":null,"id":23893245657187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b78aa993a0a3c680299c8df43f30508b2a2a0b4_6f8a0ea2-71ea-4eb3-ad6c-8bb16b35d06a.webp?v=1714910690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b78aa993a0a3c680299c8df43f30508b2a2a0b4_6f8a0ea2-71ea-4eb3-ad6c-8bb16b35d06a.webp?v=1714910690","width":2000},{"alt":null,"id":23893246410851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264c43ca02fe993275da45348eb292cd959d60aa_c61d51cc-63c2-4890-985b-9fb6a8a8f502.webp?v=1714910693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264c43ca02fe993275da45348eb292cd959d60aa_c61d51cc-63c2-4890-985b-9fb6a8a8f502.webp?v=1714910693","width":2000},{"alt":null,"id":23893247197283,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df80b34c4ed92fd767a5b505ae38b30842985a9_e83759da-004b-4c3d-8858-8c000e5d4bd2.webp?v=1714910695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4df80b34c4ed92fd767a5b505ae38b30842985a9_e83759da-004b-4c3d-8858-8c000e5d4bd2.webp?v=1714910695","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910838984803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31487899697251,"product_id":7415003742307,"position":6,"created_at":"2024-05-05T20:04:43+08:00","updated_at":"2024-05-05T20:04:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683","variant_ids":[41910838984803]},"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-PB70","featured_media":{"alt":null,"id":23893243887715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910838984803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31487899697251,"product_id":7415003742307,"position":6,"created_at":"2024-05-05T20:04:43+08:00","updated_at":"2024-05-05T20:04:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683","variant_ids":[41910838984803]},"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-PB70","featured_media":{"alt":null,"id":23893243887715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27a21fe7c0069bd93f0e6226a104c7ca7db7ce8d_09e39056-ffa0-4cf0-84b4-056f43ff1565.webp?v=1714910683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }