$product = {"id":7414183886947,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb44","description":null,"published_at":"2024-06-11T17:49:41+08:00","created_at":"2024-05-05T14:14:43+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 13 Pro Max","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":41904671883363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31484868427875,"product_id":7414183886947,"position":9,"created_at":"2024-05-05T14:15:04+08:00","updated_at":"2024-05-05T14:15:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704","variant_ids":[41904671883363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"MPB0123224-PB44","featured_media":{"alt":null,"id":23890169069667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904672276579,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31484860530787,"product_id":7414183886947,"position":5,"created_at":"2024-05-05T14:14:55+08:00","updated_at":"2024-05-05T14:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791c8e3baff8378eb01509438c5a7717366c462_1a319921-9c44-4d8a-b6b5-adac032d4a7a.webp?v=1714889695","variant_ids":[41904672276579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"MPB01232J5-PB44","featured_media":{"alt":null,"id":23890160156771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791c8e3baff8378eb01509438c5a7717366c462_1a319921-9c44-4d8a-b6b5-adac032d4a7a.webp?v=1714889695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f288c020ba34392fa8a632fd861e4eda34ca8bfc_c91973af-78dc-449e-ab6d-420af23ff4a6.webp?v=1714889686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8956800bc6dd8298604f79860d8f4b742e9959_0a035ce5-7282-4a93-a242-4b51b1b9eba8.webp?v=1714889688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ff58fd6c53e6ebd2410ee36efae22f9f401c8c_b946aa08-29e1-490f-8d72-e0ef11066c3b.webp?v=1714889690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b23927e4b2880c8910748e4811800263944df25_db4b2e78-fa38-4237-b685-eebf0866e368.webp?v=1714889692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791c8e3baff8378eb01509438c5a7717366c462_1a319921-9c44-4d8a-b6b5-adac032d4a7a.webp?v=1714889695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e83355616a65b0f487b288d961d0061706b21154_d0250583-f591-4eb1-b6bf-ed5b03ac1b81.webp?v=1714889697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a05fb00d1134697263e6cca308b787851103341_e93e9821-dbf6-4fa9-9fc1-a51361e72407.webp?v=1714889699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65fe929c2da963ab8d4e0f1903dca369e901a07_35db0ea3-a340-4d04-8bb8-c1aa7d8e077d.webp?v=1714889702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7800c5e5d6a802ef2c48bca9d04ccfb89351338_abe6eefd-d8c1-401d-a397-264b049cbf0e.webp?v=1714889706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aef753e9ebd14bd1ae8f123dea0009985d43e547_f9ec50bf-6c4d-4030-868c-a7fe03654988.webp?v=1714889709"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f288c020ba34392fa8a632fd861e4eda34ca8bfc_c91973af-78dc-449e-ab6d-420af23ff4a6.webp?v=1714889686","options":["color"],"media":[{"alt":null,"id":23890150752355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f288c020ba34392fa8a632fd861e4eda34ca8bfc_c91973af-78dc-449e-ab6d-420af23ff4a6.webp?v=1714889686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f288c020ba34392fa8a632fd861e4eda34ca8bfc_c91973af-78dc-449e-ab6d-420af23ff4a6.webp?v=1714889686","width":2000},{"alt":null,"id":23890152947811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8956800bc6dd8298604f79860d8f4b742e9959_0a035ce5-7282-4a93-a242-4b51b1b9eba8.webp?v=1714889688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8956800bc6dd8298604f79860d8f4b742e9959_0a035ce5-7282-4a93-a242-4b51b1b9eba8.webp?v=1714889688","width":2000},{"alt":null,"id":23890155241571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ff58fd6c53e6ebd2410ee36efae22f9f401c8c_b946aa08-29e1-490f-8d72-e0ef11066c3b.webp?v=1714889690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ff58fd6c53e6ebd2410ee36efae22f9f401c8c_b946aa08-29e1-490f-8d72-e0ef11066c3b.webp?v=1714889690","width":2000},{"alt":null,"id":23890157338723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b23927e4b2880c8910748e4811800263944df25_db4b2e78-fa38-4237-b685-eebf0866e368.webp?v=1714889692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b23927e4b2880c8910748e4811800263944df25_db4b2e78-fa38-4237-b685-eebf0866e368.webp?v=1714889692","width":2000},{"alt":null,"id":23890160156771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791c8e3baff8378eb01509438c5a7717366c462_1a319921-9c44-4d8a-b6b5-adac032d4a7a.webp?v=1714889695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791c8e3baff8378eb01509438c5a7717366c462_1a319921-9c44-4d8a-b6b5-adac032d4a7a.webp?v=1714889695","width":2000},{"alt":null,"id":23890162024547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e83355616a65b0f487b288d961d0061706b21154_d0250583-f591-4eb1-b6bf-ed5b03ac1b81.webp?v=1714889697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e83355616a65b0f487b288d961d0061706b21154_d0250583-f591-4eb1-b6bf-ed5b03ac1b81.webp?v=1714889697","width":2000},{"alt":null,"id":23890164514915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a05fb00d1134697263e6cca308b787851103341_e93e9821-dbf6-4fa9-9fc1-a51361e72407.webp?v=1714889699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a05fb00d1134697263e6cca308b787851103341_e93e9821-dbf6-4fa9-9fc1-a51361e72407.webp?v=1714889699","width":2000},{"alt":null,"id":23890166939747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65fe929c2da963ab8d4e0f1903dca369e901a07_35db0ea3-a340-4d04-8bb8-c1aa7d8e077d.webp?v=1714889702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65fe929c2da963ab8d4e0f1903dca369e901a07_35db0ea3-a340-4d04-8bb8-c1aa7d8e077d.webp?v=1714889702","width":2000},{"alt":null,"id":23890169069667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704","width":2000},{"alt":null,"id":23890171592803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7800c5e5d6a802ef2c48bca9d04ccfb89351338_abe6eefd-d8c1-401d-a397-264b049cbf0e.webp?v=1714889706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7800c5e5d6a802ef2c48bca9d04ccfb89351338_abe6eefd-d8c1-401d-a397-264b049cbf0e.webp?v=1714889706","width":2000},{"alt":null,"id":23890173460579,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aef753e9ebd14bd1ae8f123dea0009985d43e547_f9ec50bf-6c4d-4030-868c-a7fe03654988.webp?v=1714889709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aef753e9ebd14bd1ae8f123dea0009985d43e547_f9ec50bf-6c4d-4030-868c-a7fe03654988.webp?v=1714889709","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904671883363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31484868427875,"product_id":7414183886947,"position":9,"created_at":"2024-05-05T14:15:04+08:00","updated_at":"2024-05-05T14:15:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704","variant_ids":[41904671883363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"MPB0123224-PB44","featured_media":{"alt":null,"id":23890169069667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904672276579,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31484860530787,"product_id":7414183886947,"position":5,"created_at":"2024-05-05T14:14:55+08:00","updated_at":"2024-05-05T14:14:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791c8e3baff8378eb01509438c5a7717366c462_1a319921-9c44-4d8a-b6b5-adac032d4a7a.webp?v=1714889695","variant_ids":[41904672276579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"MPB01232J5-PB44","featured_media":{"alt":null,"id":23890160156771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791c8e3baff8378eb01509438c5a7717366c462_1a319921-9c44-4d8a-b6b5-adac032d4a7a.webp?v=1714889695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904671883363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31484868427875,"product_id":7414183886947,"position":9,"created_at":"2024-05-05T14:15:04+08:00","updated_at":"2024-05-05T14:15:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704","variant_ids":[41904671883363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"MPB0123224-PB44","featured_media":{"alt":null,"id":23890169069667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd9b4b8c4f21b0d192f001c06965e7d98cfdd7b_80cddca1-50f5-4a74-97de-9baee5baa74d.webp?v=1714889704"}},"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: "停產" }