$product = {"id":7408479404131,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-黑","handle":"iphone-12-pro-max-mod-nx-printable-pb11","description":null,"published_at":"2024-06-11T16:38:23+08:00","created_at":"2024-05-03T15:34:44+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 12 pro 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":41885944610915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472381034595,"product_id":7408479404131,"position":1,"created_at":"2024-05-03T15:34:47+08:00","updated_at":"2024-05-03T15:34:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687","variant_ids":[41885944610915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具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":"NPB0118724-PB11","featured_media":{"alt":null,"id":23877298028643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd07d1a6a77d1946e9f5af1e2532f82fab8b59d_50b09169-7171-41af-8e7b-c95129551999.webp?v=1714721689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1cd20c451df7d45ef63946a83f5c3908b1fe5c8_74713f8e-4b72-4e55-84a5-99103440dc07.webp?v=1714721692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2443f4a166b617bc62f88895832b75ad31bb9910_d9a7f46d-12c0-4f6b-b17b-26230745943b.webp?v=1714721694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f892959c508484c5985f28566c7d8ef3d8e5fc83_ce285399-a4c2-44ba-a5d0-1f8933922f9a.webp?v=1714721696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20f284f10a2038e360396e1fa3a0753209d87aed_5684ae95-39e6-4ce3-8d42-5fcc893b8518.webp?v=1714721698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ea58ecb9313caa57bfa3a34c91531d18fe6825_d6387d32-f30f-418d-9371-d1b111c4da46.webp?v=1714721701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eed599a0153e92091bde2208d0454aacc8e7bd7_3c5afb27-9072-482b-a85b-c9c3128ecc0a.webp?v=1714721704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3a9870b9e2f70ff5786efb3748e74a2533122e_98944c1a-0446-4280-99f4-2020fc7dcf93.webp?v=1714721706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b83b2661a433c629c564139fbe29cfab1cb9c9b_9279563c-96dd-4921-951f-57bcd2559ca8.webp?v=1714721709"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687","options":["color"],"media":[{"alt":null,"id":23877298028643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687","width":2000},{"alt":null,"id":23877299109987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd07d1a6a77d1946e9f5af1e2532f82fab8b59d_50b09169-7171-41af-8e7b-c95129551999.webp?v=1714721689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd07d1a6a77d1946e9f5af1e2532f82fab8b59d_50b09169-7171-41af-8e7b-c95129551999.webp?v=1714721689","width":2000},{"alt":null,"id":23877299667043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1cd20c451df7d45ef63946a83f5c3908b1fe5c8_74713f8e-4b72-4e55-84a5-99103440dc07.webp?v=1714721692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1cd20c451df7d45ef63946a83f5c3908b1fe5c8_74713f8e-4b72-4e55-84a5-99103440dc07.webp?v=1714721692","width":2000},{"alt":null,"id":23877300060259,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2443f4a166b617bc62f88895832b75ad31bb9910_d9a7f46d-12c0-4f6b-b17b-26230745943b.webp?v=1714721694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2443f4a166b617bc62f88895832b75ad31bb9910_d9a7f46d-12c0-4f6b-b17b-26230745943b.webp?v=1714721694","width":2000},{"alt":null,"id":23877300551779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f892959c508484c5985f28566c7d8ef3d8e5fc83_ce285399-a4c2-44ba-a5d0-1f8933922f9a.webp?v=1714721696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f892959c508484c5985f28566c7d8ef3d8e5fc83_ce285399-a4c2-44ba-a5d0-1f8933922f9a.webp?v=1714721696","width":2000},{"alt":null,"id":23877301010531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20f284f10a2038e360396e1fa3a0753209d87aed_5684ae95-39e6-4ce3-8d42-5fcc893b8518.webp?v=1714721698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20f284f10a2038e360396e1fa3a0753209d87aed_5684ae95-39e6-4ce3-8d42-5fcc893b8518.webp?v=1714721698","width":2000},{"alt":null,"id":23877301633123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ea58ecb9313caa57bfa3a34c91531d18fe6825_d6387d32-f30f-418d-9371-d1b111c4da46.webp?v=1714721701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ea58ecb9313caa57bfa3a34c91531d18fe6825_d6387d32-f30f-418d-9371-d1b111c4da46.webp?v=1714721701","width":2000},{"alt":null,"id":23877302091875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eed599a0153e92091bde2208d0454aacc8e7bd7_3c5afb27-9072-482b-a85b-c9c3128ecc0a.webp?v=1714721704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eed599a0153e92091bde2208d0454aacc8e7bd7_3c5afb27-9072-482b-a85b-c9c3128ecc0a.webp?v=1714721704","width":2000},{"alt":null,"id":23877302550627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3a9870b9e2f70ff5786efb3748e74a2533122e_98944c1a-0446-4280-99f4-2020fc7dcf93.webp?v=1714721706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3a9870b9e2f70ff5786efb3748e74a2533122e_98944c1a-0446-4280-99f4-2020fc7dcf93.webp?v=1714721706","width":2000},{"alt":null,"id":23877303009379,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b83b2661a433c629c564139fbe29cfab1cb9c9b_9279563c-96dd-4921-951f-57bcd2559ca8.webp?v=1714721709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b83b2661a433c629c564139fbe29cfab1cb9c9b_9279563c-96dd-4921-951f-57bcd2559ca8.webp?v=1714721709","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885944610915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472381034595,"product_id":7408479404131,"position":1,"created_at":"2024-05-03T15:34:47+08:00","updated_at":"2024-05-03T15:34:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687","variant_ids":[41885944610915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具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":"NPB0118724-PB11","featured_media":{"alt":null,"id":23877298028643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885944610915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31472381034595,"product_id":7408479404131,"position":1,"created_at":"2024-05-03T15:34:47+08:00","updated_at":"2024-05-03T15:34:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687","variant_ids":[41885944610915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具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":"NPB0118724-PB11","featured_media":{"alt":null,"id":23877298028643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c552919eb9b37758b083a4d9960beb1d8572de1c_8fdc7e68-01c8-466e-9eb6-1ed9472374d7.webp?v=1714721687"}},"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: "停產" }