$product = {"id":7920351936611,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Sunflowers","handle":"iphone-14-pro-mod-nx-magsafe-ltc08","description":null,"published_at":"2025-11-11T09:26:37+08:00","created_at":"2025-11-10T11:06:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlecattos","device-iPhone 14 Pro","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":43828308312163,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-LTC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34780729671779,"product_id":7920351936611,"position":4,"created_at":"2025-11-10T11:06:52+08:00","updated_at":"2025-11-10T11:06:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014","variant_ids":[43828308312163]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Sunflowers - 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":"MPB01262J5-LTC08","featured_media":{"alt":null,"id":26346865983587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828308344931,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-LTC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34780730032227,"product_id":7920351936611,"position":7,"created_at":"2025-11-10T11:06:54+08:00","updated_at":"2025-11-10T11:06:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be051449b65278b4b3d2004c1e4880f9d6ff3312.webp?v=1762744016","variant_ids":[43828308344931]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Sunflowers - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-LTC08","featured_media":{"alt":null,"id":26346866376803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be051449b65278b4b3d2004c1e4880f9d6ff3312.webp?v=1762744016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828308574307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-LTC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34780730294371,"product_id":7920351936611,"position":8,"created_at":"2025-11-10T11:06:55+08:00","updated_at":"2025-11-10T11:06:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a973ded3afaed54588e77612e5d2bf735168033.webp?v=1762744017","variant_ids":[43828308574307]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Sunflowers - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-LTC08","featured_media":{"alt":null,"id":26346866606179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a973ded3afaed54588e77612e5d2bf735168033.webp?v=1762744017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4327602e1faa807e3a90526709a7e871925f9f51.webp?v=1762744012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8881781e9f5370d63822b41ad7f1de4c5afb7d88.webp?v=1762744012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f7c75076286b85f8452a33d6c0bfd8d8890cccb.webp?v=1762744013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfb72f5656fb58146740f4fb2d49aa63aa7bd4.webp?v=1762744015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a739011249cbd9ae1a19b39c336c4be9c0402348.webp?v=1762744015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be051449b65278b4b3d2004c1e4880f9d6ff3312.webp?v=1762744016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a973ded3afaed54588e77612e5d2bf735168033.webp?v=1762744017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ab341be4583f1c07d7171ccb42ea8e91b6351c.webp?v=1762744017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5604d95f9a5b09c735d8213dd97a26d58f77db.webp?v=1762744018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61102bcd3bf06c6dae353010e908a9313df771d7.webp?v=1762744019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b769796805b844626f0acfe903c68e77bf4f2c85.webp?v=1762744019"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4327602e1faa807e3a90526709a7e871925f9f51.webp?v=1762744012","options":["color"],"media":[{"alt":null,"id":26346865721443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4327602e1faa807e3a90526709a7e871925f9f51.webp?v=1762744012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4327602e1faa807e3a90526709a7e871925f9f51.webp?v=1762744012","width":2000},{"alt":null,"id":26346865819747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8881781e9f5370d63822b41ad7f1de4c5afb7d88.webp?v=1762744012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8881781e9f5370d63822b41ad7f1de4c5afb7d88.webp?v=1762744012","width":2000},{"alt":null,"id":26346865885283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f7c75076286b85f8452a33d6c0bfd8d8890cccb.webp?v=1762744013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f7c75076286b85f8452a33d6c0bfd8d8890cccb.webp?v=1762744013","width":2000},{"alt":null,"id":26346865983587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014","width":2000},{"alt":null,"id":26346866049123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfb72f5656fb58146740f4fb2d49aa63aa7bd4.webp?v=1762744015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bfb72f5656fb58146740f4fb2d49aa63aa7bd4.webp?v=1762744015","width":2000},{"alt":null,"id":26346866147427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a739011249cbd9ae1a19b39c336c4be9c0402348.webp?v=1762744015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a739011249cbd9ae1a19b39c336c4be9c0402348.webp?v=1762744015","width":2000},{"alt":null,"id":26346866376803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be051449b65278b4b3d2004c1e4880f9d6ff3312.webp?v=1762744016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be051449b65278b4b3d2004c1e4880f9d6ff3312.webp?v=1762744016","width":2000},{"alt":null,"id":26346866606179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a973ded3afaed54588e77612e5d2bf735168033.webp?v=1762744017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a973ded3afaed54588e77612e5d2bf735168033.webp?v=1762744017","width":2000},{"alt":null,"id":26346866933859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ab341be4583f1c07d7171ccb42ea8e91b6351c.webp?v=1762744017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ab341be4583f1c07d7171ccb42ea8e91b6351c.webp?v=1762744017","width":2000},{"alt":null,"id":26346867228771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5604d95f9a5b09c735d8213dd97a26d58f77db.webp?v=1762744018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5604d95f9a5b09c735d8213dd97a26d58f77db.webp?v=1762744018","width":2000},{"alt":null,"id":26346867392611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61102bcd3bf06c6dae353010e908a9313df771d7.webp?v=1762744019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61102bcd3bf06c6dae353010e908a9313df771d7.webp?v=1762744019","width":2000},{"alt":null,"id":26346867556451,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b769796805b844626f0acfe903c68e77bf4f2c85.webp?v=1762744019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b769796805b844626f0acfe903c68e77bf4f2c85.webp?v=1762744019","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828308312163,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-LTC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34780729671779,"product_id":7920351936611,"position":4,"created_at":"2025-11-10T11:06:52+08:00","updated_at":"2025-11-10T11:06:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014","variant_ids":[43828308312163]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Sunflowers - 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":"MPB01262J5-LTC08","featured_media":{"alt":null,"id":26346865983587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828308344931,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-LTC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34780730032227,"product_id":7920351936611,"position":7,"created_at":"2025-11-10T11:06:54+08:00","updated_at":"2025-11-10T11:06:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be051449b65278b4b3d2004c1e4880f9d6ff3312.webp?v=1762744016","variant_ids":[43828308344931]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Sunflowers - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-LTC08","featured_media":{"alt":null,"id":26346866376803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be051449b65278b4b3d2004c1e4880f9d6ff3312.webp?v=1762744016"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828308574307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-LTC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34780730294371,"product_id":7920351936611,"position":8,"created_at":"2025-11-10T11:06:55+08:00","updated_at":"2025-11-10T11:06:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a973ded3afaed54588e77612e5d2bf735168033.webp?v=1762744017","variant_ids":[43828308574307]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Sunflowers - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-LTC08","featured_media":{"alt":null,"id":26346866606179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a973ded3afaed54588e77612e5d2bf735168033.webp?v=1762744017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828308312163,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-LTC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34780729671779,"product_id":7920351936611,"position":4,"created_at":"2025-11-10T11:06:52+08:00","updated_at":"2025-11-10T11:06:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014","variant_ids":[43828308312163]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Sunflowers - 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":"MPB01262J5-LTC08","featured_media":{"alt":null,"id":26346865983587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f298958de0fbb785deeb392e3ba5d9148aa401f.webp?v=1762744014"}},"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: "停產" }