$product = {"id":7414442950755,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb38","description":null,"published_at":"2024-06-11T17:51:20+08:00","created_at":"2024-05-05T14:25:41+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":41906521440355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485470638179,"product_id":7414442950755,"position":2,"created_at":"2024-05-05T14:25:45+08:00","updated_at":"2024-05-05T14:25:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345","variant_ids":[41906521440355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890787795043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906522226787,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485490364515,"product_id":7414442950755,"position":9,"created_at":"2024-05-05T14:26:01+08:00","updated_at":"2024-05-05T14:26:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b002ee61a2a05473c81bd41d19c93a02e09fa89_6e0e0562-852a-449d-97e7-c1cbc612f124.webp?v=1714890361","variant_ids":[41906522226787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890807095395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b002ee61a2a05473c81bd41d19c93a02e09fa89_6e0e0562-852a-449d-97e7-c1cbc612f124.webp?v=1714890361"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9f9e0ee05ffe032a6edf99b86b8ebc4eddee57_52d21a4d-64db-4579-aa7f-69a85df15a4b.webp?v=1714890343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555be4ca77f876f3521d233c5ee225f46fee2258_a1dc40ef-43f1-4a1c-ae66-3fd10999f29b.webp?v=1714890348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780a52c87ee81df4f1bd81eac496114bfad1abe9_11504381-bbb8-4f4b-8b65-6c2a38dad4ed.webp?v=1714890350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41764a3b1ed5c293e71265b6e60c2bfda31fc0a5_ef39d353-368e-4e9a-bac0-80e4480c302d.webp?v=1714890352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75a9278eca874a134014e4c959ac7fefc5068a30_c0ac9738-4897-4936-87a8-e098a7638872.webp?v=1714890354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9472d92872bd28299dc7b1a2e681c54b082e7d3_3d9c6d83-f619-40b3-b59c-acb5b462d77f.webp?v=1714890356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a3a1de5187fc6e3db8ec6b889326fed0619d98_d35eec84-cbf3-4d7f-bae7-d0bc83240532.webp?v=1714890359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b002ee61a2a05473c81bd41d19c93a02e09fa89_6e0e0562-852a-449d-97e7-c1cbc612f124.webp?v=1714890361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d3a64574dc44221b120cdc3b1b871d94590e2d5_bfafb582-4362-44b8-925f-1b80c6924a14.webp?v=1714890363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af2c9efd0a660d91445f98724a25e6439c15c15_35e1776f-938a-4451-af52-a132653a031b.webp?v=1714890366"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9f9e0ee05ffe032a6edf99b86b8ebc4eddee57_52d21a4d-64db-4579-aa7f-69a85df15a4b.webp?v=1714890343","options":["color"],"media":[{"alt":null,"id":23890784813155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9f9e0ee05ffe032a6edf99b86b8ebc4eddee57_52d21a4d-64db-4579-aa7f-69a85df15a4b.webp?v=1714890343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed9f9e0ee05ffe032a6edf99b86b8ebc4eddee57_52d21a4d-64db-4579-aa7f-69a85df15a4b.webp?v=1714890343","width":2000},{"alt":null,"id":23890787795043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345","width":2000},{"alt":null,"id":23890790514787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555be4ca77f876f3521d233c5ee225f46fee2258_a1dc40ef-43f1-4a1c-ae66-3fd10999f29b.webp?v=1714890348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/555be4ca77f876f3521d233c5ee225f46fee2258_a1dc40ef-43f1-4a1c-ae66-3fd10999f29b.webp?v=1714890348","width":2000},{"alt":null,"id":23890793496675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780a52c87ee81df4f1bd81eac496114bfad1abe9_11504381-bbb8-4f4b-8b65-6c2a38dad4ed.webp?v=1714890350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780a52c87ee81df4f1bd81eac496114bfad1abe9_11504381-bbb8-4f4b-8b65-6c2a38dad4ed.webp?v=1714890350","width":2000},{"alt":null,"id":23890796216419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41764a3b1ed5c293e71265b6e60c2bfda31fc0a5_ef39d353-368e-4e9a-bac0-80e4480c302d.webp?v=1714890352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41764a3b1ed5c293e71265b6e60c2bfda31fc0a5_ef39d353-368e-4e9a-bac0-80e4480c302d.webp?v=1714890352","width":2000},{"alt":null,"id":23890799394915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75a9278eca874a134014e4c959ac7fefc5068a30_c0ac9738-4897-4936-87a8-e098a7638872.webp?v=1714890354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75a9278eca874a134014e4c959ac7fefc5068a30_c0ac9738-4897-4936-87a8-e098a7638872.webp?v=1714890354","width":2000},{"alt":null,"id":23890801983587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9472d92872bd28299dc7b1a2e681c54b082e7d3_3d9c6d83-f619-40b3-b59c-acb5b462d77f.webp?v=1714890356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9472d92872bd28299dc7b1a2e681c54b082e7d3_3d9c6d83-f619-40b3-b59c-acb5b462d77f.webp?v=1714890356","width":2000},{"alt":null,"id":23890804801635,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a3a1de5187fc6e3db8ec6b889326fed0619d98_d35eec84-cbf3-4d7f-bae7-d0bc83240532.webp?v=1714890359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a3a1de5187fc6e3db8ec6b889326fed0619d98_d35eec84-cbf3-4d7f-bae7-d0bc83240532.webp?v=1714890359","width":2000},{"alt":null,"id":23890807095395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b002ee61a2a05473c81bd41d19c93a02e09fa89_6e0e0562-852a-449d-97e7-c1cbc612f124.webp?v=1714890361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b002ee61a2a05473c81bd41d19c93a02e09fa89_6e0e0562-852a-449d-97e7-c1cbc612f124.webp?v=1714890361","width":2000},{"alt":null,"id":23890809618531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d3a64574dc44221b120cdc3b1b871d94590e2d5_bfafb582-4362-44b8-925f-1b80c6924a14.webp?v=1714890363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d3a64574dc44221b120cdc3b1b871d94590e2d5_bfafb582-4362-44b8-925f-1b80c6924a14.webp?v=1714890363","width":2000},{"alt":null,"id":23890812567651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af2c9efd0a660d91445f98724a25e6439c15c15_35e1776f-938a-4451-af52-a132653a031b.webp?v=1714890366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af2c9efd0a660d91445f98724a25e6439c15c15_35e1776f-938a-4451-af52-a132653a031b.webp?v=1714890366","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906521440355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485470638179,"product_id":7414442950755,"position":2,"created_at":"2024-05-05T14:25:45+08:00","updated_at":"2024-05-05T14:25:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345","variant_ids":[41906521440355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890787795043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906522226787,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485490364515,"product_id":7414442950755,"position":9,"created_at":"2024-05-05T14:26:01+08:00","updated_at":"2024-05-05T14:26:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b002ee61a2a05473c81bd41d19c93a02e09fa89_6e0e0562-852a-449d-97e7-c1cbc612f124.webp?v=1714890361","variant_ids":[41906522226787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890807095395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b002ee61a2a05473c81bd41d19c93a02e09fa89_6e0e0562-852a-449d-97e7-c1cbc612f124.webp?v=1714890361"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906521440355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485470638179,"product_id":7414442950755,"position":2,"created_at":"2024-05-05T14:25:45+08:00","updated_at":"2024-05-05T14:25:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345","variant_ids":[41906521440355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890787795043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4734eb3a117b5511e1348632af65c19a8cb001e3_c5e6e5d7-7909-49ca-90bf-896277131dfe.webp?v=1714890345"}},"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: "停產" }