$product = {"id":7931276853347,"title":"iPhone 13 Pro Max Mod NX 白白日記 By Darylhochi OOOPS!!","handle":"iphone-13-pro-max-mod-nx-ei80","description":null,"published_at":"2025-11-28T11:03:10+08:00","created_at":"2025-11-28T09:59:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 13 Pro Max","merge","reseller-darylhochi"],"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":43860840546403,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861438402659,"product_id":7931276853347,"position":7,"created_at":"2025-11-28T10:00:51+08:00","updated_at":"2025-11-28T10:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253","variant_ids":[43860840546403]},"available":true,"name":"iPhone 13 Pro Max Mod NX 白白日記 By Darylhochi OOOPS!! - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-EI80","featured_media":{"alt":null,"id":26425858064483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860840677475,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861438632035,"product_id":7931276853347,"position":8,"created_at":"2025-11-28T10:00:52+08:00","updated_at":"2025-11-28T10:00:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a24f611e2d68694420ca3d3028766e7e77fe9f.webp?v=1764295254","variant_ids":[43860840677475]},"available":true,"name":"iPhone 13 Pro Max Mod NX 白白日記 By Darylhochi OOOPS!! - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-EI80","featured_media":{"alt":null,"id":26425858261091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a24f611e2d68694420ca3d3028766e7e77fe9f.webp?v=1764295254"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26c03117e88edf77d80801ec9cf8e75920e94ea.webp?v=1764295250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939cd27f0a0930290597a1bbeedfd67c8944edb8.webp?v=1764295251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147faa195d37146991064c21134cfadd5845885a.webp?v=1764295251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f034ef07f416ed869eb49de696f4088b748de.webp?v=1764295252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615d5e1e16c1acd79510efb187d38ebd212af7df.webp?v=1764295252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045ad8b9d27dd941b5499ca089875f8dc0215b33.webp?v=1764295253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a24f611e2d68694420ca3d3028766e7e77fe9f.webp?v=1764295254","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c98e2db6e2766688dd7c15151c1f785c92285f.webp?v=1764295254"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26c03117e88edf77d80801ec9cf8e75920e94ea.webp?v=1764295250","options":["color"],"media":[{"alt":null,"id":26425856720995,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26c03117e88edf77d80801ec9cf8e75920e94ea.webp?v=1764295250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d26c03117e88edf77d80801ec9cf8e75920e94ea.webp?v=1764295250","width":2000},{"alt":null,"id":26425857048675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939cd27f0a0930290597a1bbeedfd67c8944edb8.webp?v=1764295251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/939cd27f0a0930290597a1bbeedfd67c8944edb8.webp?v=1764295251","width":2000},{"alt":null,"id":26425857245283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147faa195d37146991064c21134cfadd5845885a.webp?v=1764295251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/147faa195d37146991064c21134cfadd5845885a.webp?v=1764295251","width":2000},{"alt":null,"id":26425857474659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f034ef07f416ed869eb49de696f4088b748de.webp?v=1764295252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f034ef07f416ed869eb49de696f4088b748de.webp?v=1764295252","width":2000},{"alt":null,"id":26425857671267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615d5e1e16c1acd79510efb187d38ebd212af7df.webp?v=1764295252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/615d5e1e16c1acd79510efb187d38ebd212af7df.webp?v=1764295252","width":2000},{"alt":null,"id":26425857835107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045ad8b9d27dd941b5499ca089875f8dc0215b33.webp?v=1764295253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/045ad8b9d27dd941b5499ca089875f8dc0215b33.webp?v=1764295253","width":2000},{"alt":null,"id":26425858064483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253","width":2000},{"alt":null,"id":26425858261091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a24f611e2d68694420ca3d3028766e7e77fe9f.webp?v=1764295254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a24f611e2d68694420ca3d3028766e7e77fe9f.webp?v=1764295254","width":2000},{"alt":null,"id":26425858523235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c98e2db6e2766688dd7c15151c1f785c92285f.webp?v=1764295254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4c98e2db6e2766688dd7c15151c1f785c92285f.webp?v=1764295254","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43860840546403,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861438402659,"product_id":7931276853347,"position":7,"created_at":"2025-11-28T10:00:51+08:00","updated_at":"2025-11-28T10:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253","variant_ids":[43860840546403]},"available":true,"name":"iPhone 13 Pro Max Mod NX 白白日記 By Darylhochi OOOPS!! - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-EI80","featured_media":{"alt":null,"id":26425858064483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860840677475,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861438632035,"product_id":7931276853347,"position":8,"created_at":"2025-11-28T10:00:52+08:00","updated_at":"2025-11-28T10:00:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a24f611e2d68694420ca3d3028766e7e77fe9f.webp?v=1764295254","variant_ids":[43860840677475]},"available":true,"name":"iPhone 13 Pro Max Mod NX 白白日記 By Darylhochi OOOPS!! - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-EI80","featured_media":{"alt":null,"id":26425858261091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a24f611e2d68694420ca3d3028766e7e77fe9f.webp?v=1764295254"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860840546403,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861438402659,"product_id":7931276853347,"position":7,"created_at":"2025-11-28T10:00:51+08:00","updated_at":"2025-11-28T10:00:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253","variant_ids":[43860840546403]},"available":true,"name":"iPhone 13 Pro Max Mod NX 白白日記 By Darylhochi OOOPS!! - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-EI80","featured_media":{"alt":null,"id":26425858064483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6f0502bddb15b09c611d0fe5907ebc9b5fd5ae.webp?v=1764295253"}},"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: "停產" }