$product = {"id":7415919575139,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列","handle":"iphone-xs-max-mod-nx-printable-pb48","description":null,"published_at":"2024-06-11T16:47:57+08:00","created_at":"2024-05-06T12:24:59+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 XS Max","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":41915535294563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31490736848995,"product_id":7415919575139,"position":4,"created_at":"2024-05-06T12:25:13+08:00","updated_at":"2024-05-06T12:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513","variant_ids":[41915535294563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"NPB0108624-PB48","featured_media":{"alt":null,"id":23896143626339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70f2e476e409e44e208c7aa5df85f9dc4e8fa81_391cd638-3b74-4996-a18b-dbacbfc265d4.webp?v=1714969502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8630da23c2418fca15022696b3143b964a3b85_b0554f68-01e8-4e81-a170-b3c3b784024b.webp?v=1714969504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ad091b4850c521ce5712176a371638e6d34309_3fce3541-f59b-4bf2-804b-06fcedd6f1b3.webp?v=1714969509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463735b293b6e5d4b18b85342df215ff82546efc_db8eb7c5-59e3-40f3-a299-f2d740d16ea5.webp?v=1714969515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52a1e3c2b5f72e066833d5d1a32234085eb0f5ae_b229d96c-6e7b-4340-9460-4608140a44ce.webp?v=1714969518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6f3ba835903ea45274cadc12505c1b4b3d7a57_75acce7e-84f7-4a23-8a90-e7fc10411104.webp?v=1714969520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68cbca6995c7080a8a9660433d2f069c175ef766_767f7f62-8d06-426c-a33c-5427f87118f6.webp?v=1714969523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ea21c9b2f70818f8aa998048a8470ede344108_970b4d33-1a92-4e8e-9f8e-ce1da72ebdf9.webp?v=1714969525"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70f2e476e409e44e208c7aa5df85f9dc4e8fa81_391cd638-3b74-4996-a18b-dbacbfc265d4.webp?v=1714969502","options":["color"],"media":[{"alt":null,"id":23896141299811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70f2e476e409e44e208c7aa5df85f9dc4e8fa81_391cd638-3b74-4996-a18b-dbacbfc265d4.webp?v=1714969502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70f2e476e409e44e208c7aa5df85f9dc4e8fa81_391cd638-3b74-4996-a18b-dbacbfc265d4.webp?v=1714969502","width":2000},{"alt":null,"id":23896141955171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8630da23c2418fca15022696b3143b964a3b85_b0554f68-01e8-4e81-a170-b3c3b784024b.webp?v=1714969504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8630da23c2418fca15022696b3143b964a3b85_b0554f68-01e8-4e81-a170-b3c3b784024b.webp?v=1714969504","width":2000},{"alt":null,"id":23896142970979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ad091b4850c521ce5712176a371638e6d34309_3fce3541-f59b-4bf2-804b-06fcedd6f1b3.webp?v=1714969509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ad091b4850c521ce5712176a371638e6d34309_3fce3541-f59b-4bf2-804b-06fcedd6f1b3.webp?v=1714969509","width":2000},{"alt":null,"id":23896143626339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513","width":2000},{"alt":null,"id":23896144216163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463735b293b6e5d4b18b85342df215ff82546efc_db8eb7c5-59e3-40f3-a299-f2d740d16ea5.webp?v=1714969515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463735b293b6e5d4b18b85342df215ff82546efc_db8eb7c5-59e3-40f3-a299-f2d740d16ea5.webp?v=1714969515","width":2000},{"alt":null,"id":23896144773219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52a1e3c2b5f72e066833d5d1a32234085eb0f5ae_b229d96c-6e7b-4340-9460-4608140a44ce.webp?v=1714969518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52a1e3c2b5f72e066833d5d1a32234085eb0f5ae_b229d96c-6e7b-4340-9460-4608140a44ce.webp?v=1714969518","width":2000},{"alt":null,"id":23896145330275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6f3ba835903ea45274cadc12505c1b4b3d7a57_75acce7e-84f7-4a23-8a90-e7fc10411104.webp?v=1714969520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6f3ba835903ea45274cadc12505c1b4b3d7a57_75acce7e-84f7-4a23-8a90-e7fc10411104.webp?v=1714969520","width":2000},{"alt":null,"id":23896146247779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68cbca6995c7080a8a9660433d2f069c175ef766_767f7f62-8d06-426c-a33c-5427f87118f6.webp?v=1714969523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68cbca6995c7080a8a9660433d2f069c175ef766_767f7f62-8d06-426c-a33c-5427f87118f6.webp?v=1714969523","width":2000},{"alt":null,"id":23896146739299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ea21c9b2f70818f8aa998048a8470ede344108_970b4d33-1a92-4e8e-9f8e-ce1da72ebdf9.webp?v=1714969525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ea21c9b2f70818f8aa998048a8470ede344108_970b4d33-1a92-4e8e-9f8e-ce1da72ebdf9.webp?v=1714969525","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41915535294563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31490736848995,"product_id":7415919575139,"position":4,"created_at":"2024-05-06T12:25:13+08:00","updated_at":"2024-05-06T12:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513","variant_ids":[41915535294563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"NPB0108624-PB48","featured_media":{"alt":null,"id":23896143626339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915535294563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31490736848995,"product_id":7415919575139,"position":4,"created_at":"2024-05-06T12:25:13+08:00","updated_at":"2024-05-06T12:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513","variant_ids":[41915535294563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"NPB0108624-PB48","featured_media":{"alt":null,"id":23896143626339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb1513e997cdec94288def8299a12f76b08da305_3bd6d4f7-dec6-4571-99b5-6120ecfe9e4a.webp?v=1714969513"}},"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: "停產" }