$product = {"id":7920381296739,"title":"iPhone 14 Pro Mod NX 小貓貓們 Little Cattos States of Mind","handle":"iphone-14-pro-mod-nx-ltc06","description":null,"published_at":"2025-11-11T09:21:08+08:00","created_at":"2025-11-10T11:13:23+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":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":43828423131235,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780853600355,"product_id":7920381296739,"position":10,"created_at":"2025-11-10T11:13:31+08:00","updated_at":"2025-11-10T11:13:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413","variant_ids":[43828423131235]},"available":true,"name":"iPhone 14 Pro Mod NX 小貓貓們 Little Cattos States of Mind - 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":"NPB01262J5-LTC06","featured_media":{"alt":null,"id":26346989027427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828423164003,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780852617315,"product_id":7920381296739,"position":6,"created_at":"2025-11-10T11:13:29+08:00","updated_at":"2025-11-10T11:13:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc979b7aef4e75998071025613890a86f25c6b4b.webp?v=1762744411","variant_ids":[43828423164003]},"available":true,"name":"iPhone 14 Pro Mod NX 小貓貓們 Little Cattos States of Mind - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-LTC06","featured_media":{"alt":null,"id":26346988044387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc979b7aef4e75998071025613890a86f25c6b4b.webp?v=1762744411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828423393379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780852387939,"product_id":7920381296739,"position":5,"created_at":"2025-11-10T11:13:28+08:00","updated_at":"2025-11-10T11:13:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d04de2ce5630d93fb66eca71456fde620b01adb.webp?v=1762744409","variant_ids":[43828423393379]},"available":true,"name":"iPhone 14 Pro Mod NX 小貓貓們 Little Cattos States of Mind - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-LTC06","featured_media":{"alt":null,"id":26346987815011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d04de2ce5630d93fb66eca71456fde620b01adb.webp?v=1762744409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e7a8db4f6efc026dc56f0562aee861b772c3a8.webp?v=1762744407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d42a8db0762ac358bd95daef53fc546a17d45b3.webp?v=1762744408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99869000ba4c7539d7a291ab1667239b20bf20f.webp?v=1762744409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e009518fa62a710b87712182e58d25e2a2f18168.webp?v=1762744409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d04de2ce5630d93fb66eca71456fde620b01adb.webp?v=1762744409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc979b7aef4e75998071025613890a86f25c6b4b.webp?v=1762744411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaa1e6e5a01519b9cc88ea31b077b9c828b84059.webp?v=1762744411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875527aa8f78c807a0dfdb9d1c78bbf3aa6bd768.webp?v=1762744412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6a727ea650eb0919bb6556cd6b5eca3cabcc13.webp?v=1762744413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f6e1c92b18f1734f06e5e8fee8d46ffbd23135.webp?v=1762744414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb87a5c5c6d7d64e709e32f7b20c8a69144491a.webp?v=1762744415"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e7a8db4f6efc026dc56f0562aee861b772c3a8.webp?v=1762744407","options":["color"],"media":[{"alt":null,"id":26346986602595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e7a8db4f6efc026dc56f0562aee861b772c3a8.webp?v=1762744407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2e7a8db4f6efc026dc56f0562aee861b772c3a8.webp?v=1762744407","width":2000},{"alt":null,"id":26346986766435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d42a8db0762ac358bd95daef53fc546a17d45b3.webp?v=1762744408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d42a8db0762ac358bd95daef53fc546a17d45b3.webp?v=1762744408","width":2000},{"alt":null,"id":26346987028579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99869000ba4c7539d7a291ab1667239b20bf20f.webp?v=1762744409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99869000ba4c7539d7a291ab1667239b20bf20f.webp?v=1762744409","width":2000},{"alt":null,"id":26346987520099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e009518fa62a710b87712182e58d25e2a2f18168.webp?v=1762744409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e009518fa62a710b87712182e58d25e2a2f18168.webp?v=1762744409","width":2000},{"alt":null,"id":26346987815011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d04de2ce5630d93fb66eca71456fde620b01adb.webp?v=1762744409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d04de2ce5630d93fb66eca71456fde620b01adb.webp?v=1762744409","width":2000},{"alt":null,"id":26346988044387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc979b7aef4e75998071025613890a86f25c6b4b.webp?v=1762744411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc979b7aef4e75998071025613890a86f25c6b4b.webp?v=1762744411","width":2000},{"alt":null,"id":26346988240995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaa1e6e5a01519b9cc88ea31b077b9c828b84059.webp?v=1762744411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaa1e6e5a01519b9cc88ea31b077b9c828b84059.webp?v=1762744411","width":2000},{"alt":null,"id":26346988470371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875527aa8f78c807a0dfdb9d1c78bbf3aa6bd768.webp?v=1762744412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875527aa8f78c807a0dfdb9d1c78bbf3aa6bd768.webp?v=1762744412","width":2000},{"alt":null,"id":26346988765283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6a727ea650eb0919bb6556cd6b5eca3cabcc13.webp?v=1762744413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb6a727ea650eb0919bb6556cd6b5eca3cabcc13.webp?v=1762744413","width":2000},{"alt":null,"id":26346989027427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413","width":2000},{"alt":null,"id":26346989322339,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f6e1c92b18f1734f06e5e8fee8d46ffbd23135.webp?v=1762744414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f6e1c92b18f1734f06e5e8fee8d46ffbd23135.webp?v=1762744414","width":2000},{"alt":null,"id":26346989551715,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb87a5c5c6d7d64e709e32f7b20c8a69144491a.webp?v=1762744415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2eb87a5c5c6d7d64e709e32f7b20c8a69144491a.webp?v=1762744415","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828423131235,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780853600355,"product_id":7920381296739,"position":10,"created_at":"2025-11-10T11:13:31+08:00","updated_at":"2025-11-10T11:13:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413","variant_ids":[43828423131235]},"available":true,"name":"iPhone 14 Pro Mod NX 小貓貓們 Little Cattos States of Mind - 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":"NPB01262J5-LTC06","featured_media":{"alt":null,"id":26346989027427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828423164003,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780852617315,"product_id":7920381296739,"position":6,"created_at":"2025-11-10T11:13:29+08:00","updated_at":"2025-11-10T11:13:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc979b7aef4e75998071025613890a86f25c6b4b.webp?v=1762744411","variant_ids":[43828423164003]},"available":true,"name":"iPhone 14 Pro Mod NX 小貓貓們 Little Cattos States of Mind - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-LTC06","featured_media":{"alt":null,"id":26346988044387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc979b7aef4e75998071025613890a86f25c6b4b.webp?v=1762744411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828423393379,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780852387939,"product_id":7920381296739,"position":5,"created_at":"2025-11-10T11:13:28+08:00","updated_at":"2025-11-10T11:13:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d04de2ce5630d93fb66eca71456fde620b01adb.webp?v=1762744409","variant_ids":[43828423393379]},"available":true,"name":"iPhone 14 Pro Mod NX 小貓貓們 Little Cattos States of Mind - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-LTC06","featured_media":{"alt":null,"id":26346987815011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d04de2ce5630d93fb66eca71456fde620b01adb.webp?v=1762744409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828423131235,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780853600355,"product_id":7920381296739,"position":10,"created_at":"2025-11-10T11:13:31+08:00","updated_at":"2025-11-10T11:13:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413","variant_ids":[43828423131235]},"available":true,"name":"iPhone 14 Pro Mod NX 小貓貓們 Little Cattos States of Mind - 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":"NPB01262J5-LTC06","featured_media":{"alt":null,"id":26346989027427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea1c96cb9ce1bd8763afb74058fc32a740caf736.webp?v=1762744413"}},"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: "停產" }