$product = {"id":7414601023587,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星際大戰徽章-潮流系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb50","description":null,"published_at":"2024-06-11T17:52:27+08:00","created_at":"2024-05-05T14:33:24+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":41907713212515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31485861920867,"product_id":7414601023587,"position":9,"created_at":"2024-05-05T14:33:45+08:00","updated_at":"2024-05-05T14:33:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825","variant_ids":[41907713212515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB50","featured_media":{"alt":null,"id":23891197034595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907713638499,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31485853237347,"product_id":7414601023587,"position":2,"created_at":"2024-05-05T14:33:29+08:00","updated_at":"2024-05-05T14:33:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b3f83d2a22b2c1ce03f2b4d3d1d685c9f24fe0_08a969ac-cf98-4396-8188-4d6a205705ff.webp?v=1714890809","variant_ids":[41907713638499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB50","featured_media":{"alt":null,"id":23891188351075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b3f83d2a22b2c1ce03f2b4d3d1d685c9f24fe0_08a969ac-cf98-4396-8188-4d6a205705ff.webp?v=1714890809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/329300974f1cff3549c89e686d4b32487a4bc788_5bbae5f7-91b8-490a-9bab-5640a45bed63.webp?v=1714890806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b3f83d2a22b2c1ce03f2b4d3d1d685c9f24fe0_08a969ac-cf98-4396-8188-4d6a205705ff.webp?v=1714890809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3cce33b8ae43b13b3a135853c6875efe32af40_716c89e5-37af-42d5-8fc1-d27a9277b754.webp?v=1714890811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64982b4fec8be3bf49c1ba5fa18ac32740168651_6474f812-ff1f-4a3b-a14e-a9f09420218c.webp?v=1714890813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4111941cd0e007e87aee1e51ffb8098f84b641d_6468d79b-0564-418d-9093-2de6bcba8de5.webp?v=1714890816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91eb685161007c2cfaac1be5ed0b8ee907144727_b9bba909-aa0f-4e93-9c4a-d3b07eac517d.webp?v=1714890818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bfb1a051d492263f9ecfdcaed01c25972d3bfad_44157b4e-4796-4b4e-b6cb-6f8789cf6907.webp?v=1714890820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564938fbe68fa06811cd044b055ef29cf2e9e517_1fefd24f-ebb1-41e2-bfe5-b269df7ddb0b.webp?v=1714890822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7977826d8d05bbdf2febc43be1288f948b73f58a_2526e581-0630-411a-9622-51a607c40841.webp?v=1714890827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0925f955f4f04064a31a3172fd17c1daf205c44f_a5855966-092e-4c71-9472-819d6fd95af7.webp?v=1714890830"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/329300974f1cff3549c89e686d4b32487a4bc788_5bbae5f7-91b8-490a-9bab-5640a45bed63.webp?v=1714890806","options":["color"],"media":[{"alt":null,"id":23891186876515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/329300974f1cff3549c89e686d4b32487a4bc788_5bbae5f7-91b8-490a-9bab-5640a45bed63.webp?v=1714890806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/329300974f1cff3549c89e686d4b32487a4bc788_5bbae5f7-91b8-490a-9bab-5640a45bed63.webp?v=1714890806","width":2000},{"alt":null,"id":23891188351075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b3f83d2a22b2c1ce03f2b4d3d1d685c9f24fe0_08a969ac-cf98-4396-8188-4d6a205705ff.webp?v=1714890809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b3f83d2a22b2c1ce03f2b4d3d1d685c9f24fe0_08a969ac-cf98-4396-8188-4d6a205705ff.webp?v=1714890809","width":2000},{"alt":null,"id":23891189727331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3cce33b8ae43b13b3a135853c6875efe32af40_716c89e5-37af-42d5-8fc1-d27a9277b754.webp?v=1714890811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3cce33b8ae43b13b3a135853c6875efe32af40_716c89e5-37af-42d5-8fc1-d27a9277b754.webp?v=1714890811","width":2000},{"alt":null,"id":23891190841443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64982b4fec8be3bf49c1ba5fa18ac32740168651_6474f812-ff1f-4a3b-a14e-a9f09420218c.webp?v=1714890813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64982b4fec8be3bf49c1ba5fa18ac32740168651_6474f812-ff1f-4a3b-a14e-a9f09420218c.webp?v=1714890813","width":2000},{"alt":null,"id":23891192152163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4111941cd0e007e87aee1e51ffb8098f84b641d_6468d79b-0564-418d-9093-2de6bcba8de5.webp?v=1714890816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4111941cd0e007e87aee1e51ffb8098f84b641d_6468d79b-0564-418d-9093-2de6bcba8de5.webp?v=1714890816","width":2000},{"alt":null,"id":23891193266275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91eb685161007c2cfaac1be5ed0b8ee907144727_b9bba909-aa0f-4e93-9c4a-d3b07eac517d.webp?v=1714890818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91eb685161007c2cfaac1be5ed0b8ee907144727_b9bba909-aa0f-4e93-9c4a-d3b07eac517d.webp?v=1714890818","width":2000},{"alt":null,"id":23891194478691,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bfb1a051d492263f9ecfdcaed01c25972d3bfad_44157b4e-4796-4b4e-b6cb-6f8789cf6907.webp?v=1714890820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bfb1a051d492263f9ecfdcaed01c25972d3bfad_44157b4e-4796-4b4e-b6cb-6f8789cf6907.webp?v=1714890820","width":2000},{"alt":null,"id":23891195461731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564938fbe68fa06811cd044b055ef29cf2e9e517_1fefd24f-ebb1-41e2-bfe5-b269df7ddb0b.webp?v=1714890822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/564938fbe68fa06811cd044b055ef29cf2e9e517_1fefd24f-ebb1-41e2-bfe5-b269df7ddb0b.webp?v=1714890822","width":2000},{"alt":null,"id":23891197034595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825","width":2000},{"alt":null,"id":23891198115939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7977826d8d05bbdf2febc43be1288f948b73f58a_2526e581-0630-411a-9622-51a607c40841.webp?v=1714890827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7977826d8d05bbdf2febc43be1288f948b73f58a_2526e581-0630-411a-9622-51a607c40841.webp?v=1714890827","width":2000},{"alt":null,"id":23891199361123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0925f955f4f04064a31a3172fd17c1daf205c44f_a5855966-092e-4c71-9472-819d6fd95af7.webp?v=1714890830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0925f955f4f04064a31a3172fd17c1daf205c44f_a5855966-092e-4c71-9472-819d6fd95af7.webp?v=1714890830","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907713212515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31485861920867,"product_id":7414601023587,"position":9,"created_at":"2024-05-05T14:33:45+08:00","updated_at":"2024-05-05T14:33:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825","variant_ids":[41907713212515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB50","featured_media":{"alt":null,"id":23891197034595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907713638499,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31485853237347,"product_id":7414601023587,"position":2,"created_at":"2024-05-05T14:33:29+08:00","updated_at":"2024-05-05T14:33:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b3f83d2a22b2c1ce03f2b4d3d1d685c9f24fe0_08a969ac-cf98-4396-8188-4d6a205705ff.webp?v=1714890809","variant_ids":[41907713638499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB50","featured_media":{"alt":null,"id":23891188351075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b3f83d2a22b2c1ce03f2b4d3d1d685c9f24fe0_08a969ac-cf98-4396-8188-4d6a205705ff.webp?v=1714890809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907713212515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31485861920867,"product_id":7414601023587,"position":9,"created_at":"2024-05-05T14:33:45+08:00","updated_at":"2024-05-05T14:33:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825","variant_ids":[41907713212515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB50","featured_media":{"alt":null,"id":23891197034595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b80d4d8bf7737310c9e0ce709a74172c87abb89_02b9155c-b716-481b-8036-53664d5a906b.webp?v=1714890825"}},"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: "停產" }