$product = {"id":7920307961955,"title":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Meow\u0026Flowers","handle":"iphone-13-pro-max-mod-nx-magsafe-ltc01","description":null,"published_at":"2025-11-11T09:34:26+08:00","created_at":"2025-11-10T10:56:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlecattos","device-iPhone 13 Pro Max","merge","reseller-littlecattos"],"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":43828145913955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-LTC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34780557836387,"product_id":7920307961955,"position":10,"created_at":"2025-11-10T10:56:11+08:00","updated_at":"2025-11-10T10:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373","variant_ids":[43828145913955]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Meow\u0026Flowers - 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-LTC01","featured_media":{"alt":null,"id":26346694115427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828146143331,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-LTC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34780556591203,"product_id":7920307961955,"position":3,"created_at":"2025-11-10T10:56:06+08:00","updated_at":"2025-11-10T10:56:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edae7543b21138a9b1fc3e56933e5ca0941b55d1.webp?v=1762743368","variant_ids":[43828146143331]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Meow\u0026Flowers - 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-LTC01","featured_media":{"alt":null,"id":26346692968547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edae7543b21138a9b1fc3e56933e5ca0941b55d1.webp?v=1762743368"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0291cd53363dc9a2383560512e776c6ff79a2b.webp?v=1762743367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a91693a52dca39ef5570bf7a1e33111663fac561.webp?v=1762743367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edae7543b21138a9b1fc3e56933e5ca0941b55d1.webp?v=1762743368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930c6406789f38bf563981dc3ed24f1c68d162d0.webp?v=1762743369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ae2c237765763b1d3b172f411f279f3436837b.webp?v=1762743370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da18c77801b192c5bdd46d258fd5fbddd5a69bf2.webp?v=1762743370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a20737699e71b3d7617056103a9a80f3e3ab3e1.webp?v=1762743371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d503339f2d056487c7806750ef306089592fac.webp?v=1762743372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/179a2231a7cf2677d627a643b2603fada6bdf6b8.webp?v=1762743372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0291cd53363dc9a2383560512e776c6ff79a2b.webp?v=1762743367","options":["color"],"media":[{"alt":null,"id":26346692575331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0291cd53363dc9a2383560512e776c6ff79a2b.webp?v=1762743367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc0291cd53363dc9a2383560512e776c6ff79a2b.webp?v=1762743367","width":2000},{"alt":null,"id":26346692771939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a91693a52dca39ef5570bf7a1e33111663fac561.webp?v=1762743367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a91693a52dca39ef5570bf7a1e33111663fac561.webp?v=1762743367","width":2000},{"alt":null,"id":26346692968547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edae7543b21138a9b1fc3e56933e5ca0941b55d1.webp?v=1762743368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edae7543b21138a9b1fc3e56933e5ca0941b55d1.webp?v=1762743368","width":2000},{"alt":null,"id":26346693066851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930c6406789f38bf563981dc3ed24f1c68d162d0.webp?v=1762743369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/930c6406789f38bf563981dc3ed24f1c68d162d0.webp?v=1762743369","width":2000},{"alt":null,"id":26346693263459,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ae2c237765763b1d3b172f411f279f3436837b.webp?v=1762743370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ae2c237765763b1d3b172f411f279f3436837b.webp?v=1762743370","width":2000},{"alt":null,"id":26346693394531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da18c77801b192c5bdd46d258fd5fbddd5a69bf2.webp?v=1762743370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da18c77801b192c5bdd46d258fd5fbddd5a69bf2.webp?v=1762743370","width":2000},{"alt":null,"id":26346693656675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a20737699e71b3d7617056103a9a80f3e3ab3e1.webp?v=1762743371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a20737699e71b3d7617056103a9a80f3e3ab3e1.webp?v=1762743371","width":2000},{"alt":null,"id":26346693787747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d503339f2d056487c7806750ef306089592fac.webp?v=1762743372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d503339f2d056487c7806750ef306089592fac.webp?v=1762743372","width":2000},{"alt":null,"id":26346693918819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/179a2231a7cf2677d627a643b2603fada6bdf6b8.webp?v=1762743372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/179a2231a7cf2677d627a643b2603fada6bdf6b8.webp?v=1762743372","width":2000},{"alt":null,"id":26346694115427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43828145913955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-LTC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34780557836387,"product_id":7920307961955,"position":10,"created_at":"2025-11-10T10:56:11+08:00","updated_at":"2025-11-10T10:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373","variant_ids":[43828145913955]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Meow\u0026Flowers - 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-LTC01","featured_media":{"alt":null,"id":26346694115427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828146143331,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-LTC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34780556591203,"product_id":7920307961955,"position":3,"created_at":"2025-11-10T10:56:06+08:00","updated_at":"2025-11-10T10:56:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edae7543b21138a9b1fc3e56933e5ca0941b55d1.webp?v=1762743368","variant_ids":[43828146143331]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Meow\u0026Flowers - 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-LTC01","featured_media":{"alt":null,"id":26346692968547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edae7543b21138a9b1fc3e56933e5ca0941b55d1.webp?v=1762743368"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828145913955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-LTC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34780557836387,"product_id":7920307961955,"position":10,"created_at":"2025-11-10T10:56:11+08:00","updated_at":"2025-11-10T10:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373","variant_ids":[43828145913955]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Meow\u0026Flowers - 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-LTC01","featured_media":{"alt":null,"id":26346694115427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f0e322072f30e527816a8314dc891d88c821ef6.webp?v=1762743373"}},"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: "停產" }