$product = {"id":7415058825315,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb46","description":null,"published_at":"2024-06-11T17:56:52+08:00","created_at":"2024-05-05T20:14:54+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":41911430053987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31488046923875,"product_id":7415058825315,"position":9,"created_at":"2024-05-05T20:15:16+08:00","updated_at":"2024-05-05T20:15:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316","variant_ids":[41911430053987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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-PB46","featured_media":{"alt":null,"id":23893391343715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e050614ac4b3c8bbed8ec6b08f5f3d7d003977a6_d9207501-f122-43ac-83f1-494435d28729.webp?v=1714911296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38fa4c040679275ab9dd83442a0c8ecbd4f448a_63b94ac2-26e5-43cc-bad1-86982d0b3126.webp?v=1714911299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d6ad844eb77d58e86cb54ae6186cc9eccad9c5_e16c0f85-6d72-4502-89c9-57e584e9f6b2.webp?v=1714911301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e6d9b846e126caf95025d38c655c96bce3bba1_78926f71-3c40-42ca-93e6-0ebb3365e1ba.webp?v=1714911304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fddf666e2d469869ae22426133f64fff7f2eccf8_80253a00-225b-4f17-9490-93d4fc879a35.webp?v=1714911306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff683c8a055c0169649d5dfe4bb4f6624bfcb2f_b8db2379-6b56-4aca-b24e-f2b1994cf7c5.webp?v=1714911308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577f137859d826ad822f1587bc972383fca97c59_cd88ac43-b253-4bbd-970c-1f2506442c0c.webp?v=1714911311","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7290cf067f4289a95d603aaccf4be487739683a_5be89573-8d96-42fa-aeea-8f984cab25d0.webp?v=1714911313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695a749dac8c6daa953973d98d1071220ff81291_0923a282-5b23-43fe-8b0d-7cd23f67a8a7.webp?v=1714911318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038d6fb845e998d9d4f39c19980822eb2f151862_c87108b4-8af7-45cf-9725-418f2b8d6be1.webp?v=1714911320"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e050614ac4b3c8bbed8ec6b08f5f3d7d003977a6_d9207501-f122-43ac-83f1-494435d28729.webp?v=1714911296","options":["color"],"media":[{"alt":null,"id":23893386887267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e050614ac4b3c8bbed8ec6b08f5f3d7d003977a6_d9207501-f122-43ac-83f1-494435d28729.webp?v=1714911296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e050614ac4b3c8bbed8ec6b08f5f3d7d003977a6_d9207501-f122-43ac-83f1-494435d28729.webp?v=1714911296","width":2000},{"alt":null,"id":23893387444323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38fa4c040679275ab9dd83442a0c8ecbd4f448a_63b94ac2-26e5-43cc-bad1-86982d0b3126.webp?v=1714911299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38fa4c040679275ab9dd83442a0c8ecbd4f448a_63b94ac2-26e5-43cc-bad1-86982d0b3126.webp?v=1714911299","width":2000},{"alt":null,"id":23893388001379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d6ad844eb77d58e86cb54ae6186cc9eccad9c5_e16c0f85-6d72-4502-89c9-57e584e9f6b2.webp?v=1714911301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d6ad844eb77d58e86cb54ae6186cc9eccad9c5_e16c0f85-6d72-4502-89c9-57e584e9f6b2.webp?v=1714911301","width":2000},{"alt":null,"id":23893388623971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e6d9b846e126caf95025d38c655c96bce3bba1_78926f71-3c40-42ca-93e6-0ebb3365e1ba.webp?v=1714911304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e6d9b846e126caf95025d38c655c96bce3bba1_78926f71-3c40-42ca-93e6-0ebb3365e1ba.webp?v=1714911304","width":2000},{"alt":null,"id":23893389377635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fddf666e2d469869ae22426133f64fff7f2eccf8_80253a00-225b-4f17-9490-93d4fc879a35.webp?v=1714911306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fddf666e2d469869ae22426133f64fff7f2eccf8_80253a00-225b-4f17-9490-93d4fc879a35.webp?v=1714911306","width":2000},{"alt":null,"id":23893390065763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff683c8a055c0169649d5dfe4bb4f6624bfcb2f_b8db2379-6b56-4aca-b24e-f2b1994cf7c5.webp?v=1714911308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff683c8a055c0169649d5dfe4bb4f6624bfcb2f_b8db2379-6b56-4aca-b24e-f2b1994cf7c5.webp?v=1714911308","width":2000},{"alt":null,"id":23893390458979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577f137859d826ad822f1587bc972383fca97c59_cd88ac43-b253-4bbd-970c-1f2506442c0c.webp?v=1714911311"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/577f137859d826ad822f1587bc972383fca97c59_cd88ac43-b253-4bbd-970c-1f2506442c0c.webp?v=1714911311","width":2000},{"alt":null,"id":23893390983267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7290cf067f4289a95d603aaccf4be487739683a_5be89573-8d96-42fa-aeea-8f984cab25d0.webp?v=1714911313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7290cf067f4289a95d603aaccf4be487739683a_5be89573-8d96-42fa-aeea-8f984cab25d0.webp?v=1714911313","width":2000},{"alt":null,"id":23893391343715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316","width":2000},{"alt":null,"id":23893392130147,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695a749dac8c6daa953973d98d1071220ff81291_0923a282-5b23-43fe-8b0d-7cd23f67a8a7.webp?v=1714911318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/695a749dac8c6daa953973d98d1071220ff81291_0923a282-5b23-43fe-8b0d-7cd23f67a8a7.webp?v=1714911318","width":2000},{"alt":null,"id":23893392490595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038d6fb845e998d9d4f39c19980822eb2f151862_c87108b4-8af7-45cf-9725-418f2b8d6be1.webp?v=1714911320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038d6fb845e998d9d4f39c19980822eb2f151862_c87108b4-8af7-45cf-9725-418f2b8d6be1.webp?v=1714911320","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911430053987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31488046923875,"product_id":7415058825315,"position":9,"created_at":"2024-05-05T20:15:16+08:00","updated_at":"2024-05-05T20:15:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316","variant_ids":[41911430053987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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-PB46","featured_media":{"alt":null,"id":23893391343715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911430053987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31488046923875,"product_id":7415058825315,"position":9,"created_at":"2024-05-05T20:15:16+08:00","updated_at":"2024-05-05T20:15:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316","variant_ids":[41911430053987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章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-PB46","featured_media":{"alt":null,"id":23893391343715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a48506f1fee0526879c97f2d6661b603f3408a3_463a3524-4afc-45bd-b394-a1791daa6698.webp?v=1714911316"}},"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: "停產" }