$product = {"id":7414630154339,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 戰機-日文字系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb63","description":null,"published_at":"2024-06-11T17:52:38+08:00","created_at":"2024-05-05T14:34:48+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":41907898187875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31485901144163,"product_id":7414630154339,"position":1,"created_at":"2024-05-05T14:34:50+08:00","updated_at":"2024-05-05T14:34:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890","variant_ids":[41907898187875]},"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-PB63","featured_media":{"alt":null,"id":23891236847715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907898515555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31485904420963,"product_id":7414630154339,"position":3,"created_at":"2024-05-05T14:34:55+08:00","updated_at":"2024-05-05T14:34:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5657292c9cea801fc4b760691918936f1387bb_70b101b7-29a2-4681-ab39-25a8054bb93c.webp?v=1714890895","variant_ids":[41907898515555]},"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-PB63","featured_media":{"alt":null,"id":23891239764067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5657292c9cea801fc4b760691918936f1387bb_70b101b7-29a2-4681-ab39-25a8054bb93c.webp?v=1714890895"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3879ce9ac511ce369012deddaaf882c0cbeca93_97880e1f-ee91-418a-a817-cc4407fedb02.webp?v=1714890893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5657292c9cea801fc4b760691918936f1387bb_70b101b7-29a2-4681-ab39-25a8054bb93c.webp?v=1714890895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75ce17ad1ff1238766f53d093b87bc418187a08_0a49be8e-1807-4c5b-8641-914767aaadcc.webp?v=1714890897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a55e8d320d43ed32fb2052fac3ffb78ade5b88a_9374eaf8-cebd-494f-b213-fe2511a85bf3.webp?v=1714890899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d15aa58f6aa7cb7f27e6ac92a1058971ad8aac54_07a8801a-5bc2-43de-8d18-5ac83bc76f1e.webp?v=1714890901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c7f1e25f85990a70df9f8f43315385fb22a0556_0c8c1ba7-982a-42a0-b893-0966dccd5054.webp?v=1714890904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a133740c344054b27bc83c26e68642c8a2316c3_c5a659cc-4fb0-44ab-be60-48b41ac5dd52.webp?v=1714890906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03337d67b68b23171b76a5442ea7fa97da6a460e_9b4e2b09-1386-44ed-bfad-7e9dc29225ba.webp?v=1714890908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f939adcf87164566c73a2474fddb51907169318b_0cb5854c-47ba-4d47-bc15-12f57fcca3e9.webp?v=1714890911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec4fd92dc5444c0ea8deb9b9f165e728ede67a1d_7284e6cc-7b8b-48d3-bb51-fa229e9ab0c3.webp?v=1714890913"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890","options":["color"],"media":[{"alt":null,"id":23891236847715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890","width":2000},{"alt":null,"id":23891238551651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3879ce9ac511ce369012deddaaf882c0cbeca93_97880e1f-ee91-418a-a817-cc4407fedb02.webp?v=1714890893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3879ce9ac511ce369012deddaaf882c0cbeca93_97880e1f-ee91-418a-a817-cc4407fedb02.webp?v=1714890893","width":2000},{"alt":null,"id":23891239764067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5657292c9cea801fc4b760691918936f1387bb_70b101b7-29a2-4681-ab39-25a8054bb93c.webp?v=1714890895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5657292c9cea801fc4b760691918936f1387bb_70b101b7-29a2-4681-ab39-25a8054bb93c.webp?v=1714890895","width":2000},{"alt":null,"id":23891241238627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75ce17ad1ff1238766f53d093b87bc418187a08_0a49be8e-1807-4c5b-8641-914767aaadcc.webp?v=1714890897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75ce17ad1ff1238766f53d093b87bc418187a08_0a49be8e-1807-4c5b-8641-914767aaadcc.webp?v=1714890897","width":2000},{"alt":null,"id":23891242516579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a55e8d320d43ed32fb2052fac3ffb78ade5b88a_9374eaf8-cebd-494f-b213-fe2511a85bf3.webp?v=1714890899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a55e8d320d43ed32fb2052fac3ffb78ade5b88a_9374eaf8-cebd-494f-b213-fe2511a85bf3.webp?v=1714890899","width":2000},{"alt":null,"id":23891243827299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d15aa58f6aa7cb7f27e6ac92a1058971ad8aac54_07a8801a-5bc2-43de-8d18-5ac83bc76f1e.webp?v=1714890901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d15aa58f6aa7cb7f27e6ac92a1058971ad8aac54_07a8801a-5bc2-43de-8d18-5ac83bc76f1e.webp?v=1714890901","width":2000},{"alt":null,"id":23891244941411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c7f1e25f85990a70df9f8f43315385fb22a0556_0c8c1ba7-982a-42a0-b893-0966dccd5054.webp?v=1714890904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c7f1e25f85990a70df9f8f43315385fb22a0556_0c8c1ba7-982a-42a0-b893-0966dccd5054.webp?v=1714890904","width":2000},{"alt":null,"id":23891246481507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a133740c344054b27bc83c26e68642c8a2316c3_c5a659cc-4fb0-44ab-be60-48b41ac5dd52.webp?v=1714890906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a133740c344054b27bc83c26e68642c8a2316c3_c5a659cc-4fb0-44ab-be60-48b41ac5dd52.webp?v=1714890906","width":2000},{"alt":null,"id":23891247824995,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03337d67b68b23171b76a5442ea7fa97da6a460e_9b4e2b09-1386-44ed-bfad-7e9dc29225ba.webp?v=1714890908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03337d67b68b23171b76a5442ea7fa97da6a460e_9b4e2b09-1386-44ed-bfad-7e9dc29225ba.webp?v=1714890908","width":2000},{"alt":null,"id":23891249070179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f939adcf87164566c73a2474fddb51907169318b_0cb5854c-47ba-4d47-bc15-12f57fcca3e9.webp?v=1714890911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f939adcf87164566c73a2474fddb51907169318b_0cb5854c-47ba-4d47-bc15-12f57fcca3e9.webp?v=1714890911","width":2000},{"alt":null,"id":23891250151523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec4fd92dc5444c0ea8deb9b9f165e728ede67a1d_7284e6cc-7b8b-48d3-bb51-fa229e9ab0c3.webp?v=1714890913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec4fd92dc5444c0ea8deb9b9f165e728ede67a1d_7284e6cc-7b8b-48d3-bb51-fa229e9ab0c3.webp?v=1714890913","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907898187875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31485901144163,"product_id":7414630154339,"position":1,"created_at":"2024-05-05T14:34:50+08:00","updated_at":"2024-05-05T14:34:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890","variant_ids":[41907898187875]},"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-PB63","featured_media":{"alt":null,"id":23891236847715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907898515555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31485904420963,"product_id":7414630154339,"position":3,"created_at":"2024-05-05T14:34:55+08:00","updated_at":"2024-05-05T14:34:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5657292c9cea801fc4b760691918936f1387bb_70b101b7-29a2-4681-ab39-25a8054bb93c.webp?v=1714890895","variant_ids":[41907898515555]},"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-PB63","featured_media":{"alt":null,"id":23891239764067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5657292c9cea801fc4b760691918936f1387bb_70b101b7-29a2-4681-ab39-25a8054bb93c.webp?v=1714890895"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907898187875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB63","requires_shipping":true,"taxable":true,"featured_image":{"id":31485901144163,"product_id":7414630154339,"position":1,"created_at":"2024-05-05T14:34:50+08:00","updated_at":"2024-05-05T14:34:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890","variant_ids":[41907898187875]},"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-PB63","featured_media":{"alt":null,"id":23891236847715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f6f20aeb050f3e1e65dd1b2a02f7c1e8fbeba60_26845974-c3aa-4eb4-9bc2-659d4a54a306.webp?v=1714890890"}},"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: "停產" }