$product = {"id":7408600711267,"title":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop","handle":"iphone-11-pro-max-mod-nx-printable-hq04","description":"","published_at":"2024-06-11T16:41:42+08:00","created_at":"2024-05-03T17:10:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 11 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","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":41887263293539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472945594467,"product_id":7408600711267,"position":4,"created_at":"2024-05-03T17:10:15+08:00","updated_at":"2025-01-22T14:53:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839","variant_ids":[41887263293539]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-HQ04","featured_media":{"alt":null,"id":23877867077731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abff89ac882180dc87fb07a75d41eb574c624e78_7ac79ebc-9522-4a61-af62-d00717a05d20.webp?v=1737528838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa9c5588690a4e3a0c547cfca77b1d9463a5484_b05394a0-6752-4de0-805c-51af72cb9c5c.webp?v=1737528838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a438a3c7535db9e4d49b675bc711e2dbbc6c6f_804e5887-3221-4bac-854d-c104867a6a56.webp?v=1737528838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a82d62d7b4226f96e72df5a5f497db4cb34cc7d_c3501af7-1634-4d56-924a-a03b03e3fe6b.webp?v=1737528839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e6034fa0dbedf40d9acde4f4a2b94776d44e12_4ae6643f-c515-4061-bcf1-42b615f24e0c.webp?v=1737528839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3e649601d4bab376e687421dd32d6ef6938844_31dd27ad-3e20-4d86-ab95-618a1807910c.webp?v=1737528839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b49cf6f43668a448239bf8850b0d31b9f05e0e7d_ead1235e-b646-4fdc-84f8-6a35f5639ca9.webp?v=1737528839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b276bb0d5689b1982abda8138d581123ce1675d1_ef4cb633-1f63-4094-bd88-284faaf6fe37.webp?v=1737528839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68384e9401c03a63a05ee77a33edbc86f3774278_e0498c55-d61f-4467-ae1f-4a56aa9d5ca3.webp?v=1737528839"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abff89ac882180dc87fb07a75d41eb574c624e78_7ac79ebc-9522-4a61-af62-d00717a05d20.webp?v=1737528838","options":["color"],"media":[{"alt":null,"id":23877865242723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abff89ac882180dc87fb07a75d41eb574c624e78_7ac79ebc-9522-4a61-af62-d00717a05d20.webp?v=1737528838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abff89ac882180dc87fb07a75d41eb574c624e78_7ac79ebc-9522-4a61-af62-d00717a05d20.webp?v=1737528838","width":2000},{"alt":null,"id":23877865930851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa9c5588690a4e3a0c547cfca77b1d9463a5484_b05394a0-6752-4de0-805c-51af72cb9c5c.webp?v=1737528838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fa9c5588690a4e3a0c547cfca77b1d9463a5484_b05394a0-6752-4de0-805c-51af72cb9c5c.webp?v=1737528838","width":2000},{"alt":null,"id":23877866553443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a438a3c7535db9e4d49b675bc711e2dbbc6c6f_804e5887-3221-4bac-854d-c104867a6a56.webp?v=1737528838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a438a3c7535db9e4d49b675bc711e2dbbc6c6f_804e5887-3221-4bac-854d-c104867a6a56.webp?v=1737528838","width":2000},{"alt":null,"id":23877867077731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839","width":2000},{"alt":null,"id":23877868093539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a82d62d7b4226f96e72df5a5f497db4cb34cc7d_c3501af7-1634-4d56-924a-a03b03e3fe6b.webp?v=1737528839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a82d62d7b4226f96e72df5a5f497db4cb34cc7d_c3501af7-1634-4d56-924a-a03b03e3fe6b.webp?v=1737528839","width":2000},{"alt":null,"id":23877869207651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e6034fa0dbedf40d9acde4f4a2b94776d44e12_4ae6643f-c515-4061-bcf1-42b615f24e0c.webp?v=1737528839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e6034fa0dbedf40d9acde4f4a2b94776d44e12_4ae6643f-c515-4061-bcf1-42b615f24e0c.webp?v=1737528839","width":2000},{"alt":null,"id":23877869699171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3e649601d4bab376e687421dd32d6ef6938844_31dd27ad-3e20-4d86-ab95-618a1807910c.webp?v=1737528839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3e649601d4bab376e687421dd32d6ef6938844_31dd27ad-3e20-4d86-ab95-618a1807910c.webp?v=1737528839","width":2000},{"alt":null,"id":23877870256227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b49cf6f43668a448239bf8850b0d31b9f05e0e7d_ead1235e-b646-4fdc-84f8-6a35f5639ca9.webp?v=1737528839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b49cf6f43668a448239bf8850b0d31b9f05e0e7d_ead1235e-b646-4fdc-84f8-6a35f5639ca9.webp?v=1737528839","width":2000},{"alt":null,"id":25221954175075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b276bb0d5689b1982abda8138d581123ce1675d1_ef4cb633-1f63-4094-bd88-284faaf6fe37.webp?v=1737528839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b276bb0d5689b1982abda8138d581123ce1675d1_ef4cb633-1f63-4094-bd88-284faaf6fe37.webp?v=1737528839","width":2000},{"alt":null,"id":23877870911587,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68384e9401c03a63a05ee77a33edbc86f3774278_e0498c55-d61f-4467-ae1f-4a56aa9d5ca3.webp?v=1737528839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68384e9401c03a63a05ee77a33edbc86f3774278_e0498c55-d61f-4467-ae1f-4a56aa9d5ca3.webp?v=1737528839","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $bumper = null; $variants = [{"id":41887263293539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472945594467,"product_id":7408600711267,"position":4,"created_at":"2024-05-03T17:10:15+08:00","updated_at":"2025-01-22T14:53:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839","variant_ids":[41887263293539]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-HQ04","featured_media":{"alt":null,"id":23877867077731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41887263293539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-HQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472945594467,"product_id":7408600711267,"position":4,"created_at":"2024-05-03T17:10:15+08:00","updated_at":"2025-01-22T14:53:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839","variant_ids":[41887263293539]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Lollipop - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-HQ04","featured_media":{"alt":null,"id":23877867077731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48af632df89b0d6609c32157ee4079d061be25dd_e27ea1c3-243a-4067-96ae-f8d6dd812b61.webp?v=1737528839"}},"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: "停產" }