$product = {"id":7411368263779,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb20","description":null,"published_at":"2024-06-11T17:43:04+08:00","created_at":"2024-05-05T00:16:06+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 14 Plus","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":41898004873315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480248598627,"product_id":7411368263779,"position":7,"created_at":"2024-05-05T00:16:22+08:00","updated_at":"2024-05-05T00:16:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382","variant_ids":[41898004873315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB20","featured_media":{"alt":null,"id":23885499826275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4053677c40ff8e9e10d9a1628133056974777a1f_be660f8c-73a6-4158-a00a-29df64bf44ed.webp?v=1714839368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e82bd6a950c421aa04e10f644bdfcadc2252ec5_bfa02a73-ed55-49c5-94db-8a1a528fa07f.webp?v=1714839371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42e2e2ad039a11a4f81aac256360d574c661519_1df70538-9209-47b3-bcfa-a0c9278aa446.webp?v=1714839373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a2a007f082be647f65287d694b2e5450b1c2ae_dcbf5784-10eb-4920-b44f-748eab5a2fea.webp?v=1714839375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd37891101a76fcb9f0a5d82c942e2f08d9cd9_43ef9a65-3a92-44ea-96ce-2a6498f41a10.webp?v=1714839378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b922d76a0667a053f035f52f1e57de05f3be73ea_3a80adb2-0b7d-4127-96b7-69a86750120b.webp?v=1714839380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88890984d5b5868df6bb4696683256b7e902bb4_b7414846-f858-46f1-89bd-26d2ebc4f7e9.webp?v=1714839385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6154143f6acebe27159f096e0ba568d825f6363_eb041505-e4a1-4358-a310-ef013ed2252e.webp?v=1714839387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d76bcb1b3dd3ff25494c903706d653a4d7c598f_c0438bc9-5a43-4a73-a5ba-6170232e0c3b.webp?v=1714839389"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4053677c40ff8e9e10d9a1628133056974777a1f_be660f8c-73a6-4158-a00a-29df64bf44ed.webp?v=1714839368","options":["color"],"media":[{"alt":null,"id":23885496483939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4053677c40ff8e9e10d9a1628133056974777a1f_be660f8c-73a6-4158-a00a-29df64bf44ed.webp?v=1714839368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4053677c40ff8e9e10d9a1628133056974777a1f_be660f8c-73a6-4158-a00a-29df64bf44ed.webp?v=1714839368","width":2000},{"alt":null,"id":23885496844387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e82bd6a950c421aa04e10f644bdfcadc2252ec5_bfa02a73-ed55-49c5-94db-8a1a528fa07f.webp?v=1714839371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e82bd6a950c421aa04e10f644bdfcadc2252ec5_bfa02a73-ed55-49c5-94db-8a1a528fa07f.webp?v=1714839371","width":2000},{"alt":null,"id":23885497565283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42e2e2ad039a11a4f81aac256360d574c661519_1df70538-9209-47b3-bcfa-a0c9278aa446.webp?v=1714839373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42e2e2ad039a11a4f81aac256360d574c661519_1df70538-9209-47b3-bcfa-a0c9278aa446.webp?v=1714839373","width":2000},{"alt":null,"id":23885498220643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a2a007f082be647f65287d694b2e5450b1c2ae_dcbf5784-10eb-4920-b44f-748eab5a2fea.webp?v=1714839375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4a2a007f082be647f65287d694b2e5450b1c2ae_dcbf5784-10eb-4920-b44f-748eab5a2fea.webp?v=1714839375","width":2000},{"alt":null,"id":23885498679395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd37891101a76fcb9f0a5d82c942e2f08d9cd9_43ef9a65-3a92-44ea-96ce-2a6498f41a10.webp?v=1714839378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ffd37891101a76fcb9f0a5d82c942e2f08d9cd9_43ef9a65-3a92-44ea-96ce-2a6498f41a10.webp?v=1714839378","width":2000},{"alt":null,"id":23885499301987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b922d76a0667a053f035f52f1e57de05f3be73ea_3a80adb2-0b7d-4127-96b7-69a86750120b.webp?v=1714839380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b922d76a0667a053f035f52f1e57de05f3be73ea_3a80adb2-0b7d-4127-96b7-69a86750120b.webp?v=1714839380","width":2000},{"alt":null,"id":23885499826275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382","width":2000},{"alt":null,"id":23885500481635,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88890984d5b5868df6bb4696683256b7e902bb4_b7414846-f858-46f1-89bd-26d2ebc4f7e9.webp?v=1714839385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a88890984d5b5868df6bb4696683256b7e902bb4_b7414846-f858-46f1-89bd-26d2ebc4f7e9.webp?v=1714839385","width":2000},{"alt":null,"id":23885500940387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6154143f6acebe27159f096e0ba568d825f6363_eb041505-e4a1-4358-a310-ef013ed2252e.webp?v=1714839387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6154143f6acebe27159f096e0ba568d825f6363_eb041505-e4a1-4358-a310-ef013ed2252e.webp?v=1714839387","width":2000},{"alt":null,"id":23885501497443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d76bcb1b3dd3ff25494c903706d653a4d7c598f_c0438bc9-5a43-4a73-a5ba-6170232e0c3b.webp?v=1714839389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d76bcb1b3dd3ff25494c903706d653a4d7c598f_c0438bc9-5a43-4a73-a5ba-6170232e0c3b.webp?v=1714839389","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898004873315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480248598627,"product_id":7411368263779,"position":7,"created_at":"2024-05-05T00:16:22+08:00","updated_at":"2024-05-05T00:16:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382","variant_ids":[41898004873315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB20","featured_media":{"alt":null,"id":23885499826275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898004873315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31480248598627,"product_id":7411368263779,"position":7,"created_at":"2024-05-05T00:16:22+08:00","updated_at":"2024-05-05T00:16:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382","variant_ids":[41898004873315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB20","featured_media":{"alt":null,"id":23885499826275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51c3b4f3c7fb0f3a2857b3e2e314a49256b1baf8_76fb93b4-13bb-4010-90dc-36bf416d7ba4.webp?v=1714839382"}},"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: "停產" }