$product = {"id":7416192303203,"title":"犀牛盾Mod NX手機殼 - iPhone X - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術","handle":"iphone-x-mod-nx-printable-pb40","description":null,"published_at":"2024-06-11T16:53:00+08:00","created_at":"2024-05-06T14:08:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone X","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41917889413219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0106424-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31491612311651,"product_id":7416192303203,"position":5,"created_at":"2024-05-06T14:08:50+08:00","updated_at":"2024-05-06T14:08:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730","variant_ids":[41917889413219]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone X - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-PB40","featured_media":{"alt":null,"id":23897024299107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8b690109f9d405ed42361036f192349e202c257_2a3c5db6-0882-4199-aab7-d4424b3ce745.webp?v=1714975721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecffd45f3a3520c99cd1d2ae6a1dcaffa69b3a4_079739d3-d294-4ffd-9219-96d060d684ed.webp?v=1714975723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231d1c46c698ee767121303f76702cba762f5059_ee024931-b0c3-41e2-a69c-66af4da50bc1.webp?v=1714975725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/523667ebb65d8980f110346ca6f2c0333422dde1_6631e9f3-da86-446a-947b-e63babdb5c1d.webp?v=1714975727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/005e02ac393f7d64d5e9809606f75d4a3678be4d_183f4f11-a278-48ab-a41c-e2e3fa17765e.webp?v=1714975732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/366f63014a321ad4ccd08bbfe50377e8c2faa1ae_0e37da3a-1980-45b2-837b-31e839e27ce9.webp?v=1714975735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67cd09f27bdfc249cdb32dc6de71b23f859ea7c1_9892b724-2461-4083-a3ff-63c40fbcf669.webp?v=1714975737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af3de1ac6fcc3c3ea492ce2ebb3f18472a03f32_c74cb8fd-a682-4d9c-a70b-026547785bc5.webp?v=1714975739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3864027e07c914b3926fdf8eba85f59472f587_3fbd06b8-fdf7-495d-9b8d-31d711443d46.webp?v=1714975742"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8b690109f9d405ed42361036f192349e202c257_2a3c5db6-0882-4199-aab7-d4424b3ce745.webp?v=1714975721","options":["color"],"media":[{"alt":null,"id":23897021743203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8b690109f9d405ed42361036f192349e202c257_2a3c5db6-0882-4199-aab7-d4424b3ce745.webp?v=1714975721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8b690109f9d405ed42361036f192349e202c257_2a3c5db6-0882-4199-aab7-d4424b3ce745.webp?v=1714975721","width":2000},{"alt":null,"id":23897022398563,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecffd45f3a3520c99cd1d2ae6a1dcaffa69b3a4_079739d3-d294-4ffd-9219-96d060d684ed.webp?v=1714975723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecffd45f3a3520c99cd1d2ae6a1dcaffa69b3a4_079739d3-d294-4ffd-9219-96d060d684ed.webp?v=1714975723","width":2000},{"alt":null,"id":23897022955619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231d1c46c698ee767121303f76702cba762f5059_ee024931-b0c3-41e2-a69c-66af4da50bc1.webp?v=1714975725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/231d1c46c698ee767121303f76702cba762f5059_ee024931-b0c3-41e2-a69c-66af4da50bc1.webp?v=1714975725","width":2000},{"alt":null,"id":23897023676515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/523667ebb65d8980f110346ca6f2c0333422dde1_6631e9f3-da86-446a-947b-e63babdb5c1d.webp?v=1714975727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/523667ebb65d8980f110346ca6f2c0333422dde1_6631e9f3-da86-446a-947b-e63babdb5c1d.webp?v=1714975727","width":2000},{"alt":null,"id":23897024299107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730","width":2000},{"alt":null,"id":23897024921699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/005e02ac393f7d64d5e9809606f75d4a3678be4d_183f4f11-a278-48ab-a41c-e2e3fa17765e.webp?v=1714975732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/005e02ac393f7d64d5e9809606f75d4a3678be4d_183f4f11-a278-48ab-a41c-e2e3fa17765e.webp?v=1714975732","width":2000},{"alt":null,"id":23897025511523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/366f63014a321ad4ccd08bbfe50377e8c2faa1ae_0e37da3a-1980-45b2-837b-31e839e27ce9.webp?v=1714975735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/366f63014a321ad4ccd08bbfe50377e8c2faa1ae_0e37da3a-1980-45b2-837b-31e839e27ce9.webp?v=1714975735","width":2000},{"alt":null,"id":23897026035811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67cd09f27bdfc249cdb32dc6de71b23f859ea7c1_9892b724-2461-4083-a3ff-63c40fbcf669.webp?v=1714975737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67cd09f27bdfc249cdb32dc6de71b23f859ea7c1_9892b724-2461-4083-a3ff-63c40fbcf669.webp?v=1714975737","width":2000},{"alt":null,"id":23897026527331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af3de1ac6fcc3c3ea492ce2ebb3f18472a03f32_c74cb8fd-a682-4d9c-a70b-026547785bc5.webp?v=1714975739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5af3de1ac6fcc3c3ea492ce2ebb3f18472a03f32_c74cb8fd-a682-4d9c-a70b-026547785bc5.webp?v=1714975739","width":2000},{"alt":null,"id":23897027543139,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3864027e07c914b3926fdf8eba85f59472f587_3fbd06b8-fdf7-495d-9b8d-31d711443d46.webp?v=1714975742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3864027e07c914b3926fdf8eba85f59472f587_3fbd06b8-fdf7-495d-9b8d-31d711443d46.webp?v=1714975742","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41917889413219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0106424-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31491612311651,"product_id":7416192303203,"position":5,"created_at":"2024-05-06T14:08:50+08:00","updated_at":"2024-05-06T14:08:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730","variant_ids":[41917889413219]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone X - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-PB40","featured_media":{"alt":null,"id":23897024299107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917889413219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0106424-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31491612311651,"product_id":7416192303203,"position":5,"created_at":"2024-05-06T14:08:50+08:00","updated_at":"2024-05-06T14:08:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730","variant_ids":[41917889413219]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone X - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-PB40","featured_media":{"alt":null,"id":23897024299107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/738d6ec15aecf507f4a32c8ea34fade5e6b944d4_b9e0302e-77d8-4f2f-85da-1ac72d0fb88c.webp?v=1714975730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }