$product = {"id":7876131881059,"title":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-eb74","description":null,"published_at":"2025-09-04T09:34:21+08:00","created_at":"2025-09-03T12:09:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-byebyechuchu","device-iPhone 13 Pro Max","merge","reseller-byebyechuchu"],"price":110000,"price_min":110000,"price_max":110000,"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":43675555659875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-EB74","requires_shipping":true,"taxable":true,"featured_image":{"id":34416513482851,"product_id":7876131881059,"position":10,"created_at":"2025-09-03T12:09:42+08:00","updated_at":"2025-09-03T12:09:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584","variant_ids":[43675555659875]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-EB74","featured_media":{"alt":null,"id":25988787863651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675555823715,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-EB74","requires_shipping":true,"taxable":true,"featured_image":{"id":34416512303203,"product_id":7876131881059,"position":4,"created_at":"2025-09-03T12:09:38+08:00","updated_at":"2025-09-03T12:09:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e62e57edd815b454af1a6f2209f8372a4278ea.webp?v=1756872579","variant_ids":[43675555823715]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-EB74","featured_media":{"alt":null,"id":25988786684003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e62e57edd815b454af1a6f2209f8372a4278ea.webp?v=1756872579"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21547fd3230818068570b16d723258ad06e327f.webp?v=1756872577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c02b2bfcf04bc1628809e804e1b4a3c21560b2.webp?v=1756872578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beaf76c9c9be1cf575a4b1570fc2201027040368.webp?v=1756872579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e62e57edd815b454af1a6f2209f8372a4278ea.webp?v=1756872579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6450070abed07eb414318bd2c2e42e3f8767fc.webp?v=1756872580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e7b48ad5461cf21ce05e2e051181d643d11917.webp?v=1756872581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0560e9684723dfcbd4372d6738fb1979b65ca01.webp?v=1756872582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7a7467b7a0b2e09d30bb35748f5a2e85efbbe4.webp?v=1756872583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d74828e7cd8eab698070b821e2a336128f9242.webp?v=1756872583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c1a35a89850766179912298608679112765a1b.webp?v=1756872585"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21547fd3230818068570b16d723258ad06e327f.webp?v=1756872577","options":["color"],"media":[{"alt":null,"id":25988786323555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21547fd3230818068570b16d723258ad06e327f.webp?v=1756872577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21547fd3230818068570b16d723258ad06e327f.webp?v=1756872577","width":2000},{"alt":null,"id":25988786487395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c02b2bfcf04bc1628809e804e1b4a3c21560b2.webp?v=1756872578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c02b2bfcf04bc1628809e804e1b4a3c21560b2.webp?v=1756872578","width":2000},{"alt":null,"id":25988786585699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beaf76c9c9be1cf575a4b1570fc2201027040368.webp?v=1756872579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beaf76c9c9be1cf575a4b1570fc2201027040368.webp?v=1756872579","width":2000},{"alt":null,"id":25988786684003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e62e57edd815b454af1a6f2209f8372a4278ea.webp?v=1756872579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e62e57edd815b454af1a6f2209f8372a4278ea.webp?v=1756872579","width":2000},{"alt":null,"id":25988787109987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6450070abed07eb414318bd2c2e42e3f8767fc.webp?v=1756872580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef6450070abed07eb414318bd2c2e42e3f8767fc.webp?v=1756872580","width":2000},{"alt":null,"id":25988787241059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e7b48ad5461cf21ce05e2e051181d643d11917.webp?v=1756872581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e7b48ad5461cf21ce05e2e051181d643d11917.webp?v=1756872581","width":2000},{"alt":null,"id":25988787404899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0560e9684723dfcbd4372d6738fb1979b65ca01.webp?v=1756872582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0560e9684723dfcbd4372d6738fb1979b65ca01.webp?v=1756872582","width":2000},{"alt":null,"id":25988787601507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7a7467b7a0b2e09d30bb35748f5a2e85efbbe4.webp?v=1756872583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7a7467b7a0b2e09d30bb35748f5a2e85efbbe4.webp?v=1756872583","width":2000},{"alt":null,"id":25988787732579,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d74828e7cd8eab698070b821e2a336128f9242.webp?v=1756872583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d74828e7cd8eab698070b821e2a336128f9242.webp?v=1756872583","width":2000},{"alt":null,"id":25988787863651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584","width":2000},{"alt":null,"id":25988788060259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c1a35a89850766179912298608679112765a1b.webp?v=1756872585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16c1a35a89850766179912298608679112765a1b.webp?v=1756872585","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43675555659875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-EB74","requires_shipping":true,"taxable":true,"featured_image":{"id":34416513482851,"product_id":7876131881059,"position":10,"created_at":"2025-09-03T12:09:42+08:00","updated_at":"2025-09-03T12:09:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584","variant_ids":[43675555659875]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-EB74","featured_media":{"alt":null,"id":25988787863651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675555823715,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-EB74","requires_shipping":true,"taxable":true,"featured_image":{"id":34416512303203,"product_id":7876131881059,"position":4,"created_at":"2025-09-03T12:09:38+08:00","updated_at":"2025-09-03T12:09:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e62e57edd815b454af1a6f2209f8372a4278ea.webp?v=1756872579","variant_ids":[43675555823715]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-EB74","featured_media":{"alt":null,"id":25988786684003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e62e57edd815b454af1a6f2209f8372a4278ea.webp?v=1756872579"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675555659875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-EB74","requires_shipping":true,"taxable":true,"featured_image":{"id":34416513482851,"product_id":7876131881059,"position":10,"created_at":"2025-09-03T12:09:42+08:00","updated_at":"2025-09-03T12:09:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584","variant_ids":[43675555659875]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 奧樂雞 OLOGY 每一天啊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-EB74","featured_media":{"alt":null,"id":25988787863651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d595bf74238cc41707373ea00a614fbaa664207.webp?v=1756872584"}},"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: "停產" }