$product = {"id":7920319070307,"title":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Companionship","handle":"iphone-14-plus-mod-nx-ltc09","description":null,"published_at":"2025-11-11T09:32:34+08:00","created_at":"2025-11-10T10:58:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlecattos","device-iPhone 14 Plus","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":43828188119139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34780600828003,"product_id":7920319070307,"position":5,"created_at":"2025-11-10T10:58:52+08:00","updated_at":"2025-11-10T10:58:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534","variant_ids":[43828188119139]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Companionship - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LTC09","featured_media":{"alt":null,"id":26346737205347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf25778a39b3624119e2de2471fb5e92203c83a4.webp?v=1762743531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6e743cc235222c72a7a16511e55e6db7a9c421.webp?v=1762743532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a45ca8f249b4cc7552a696be737f106ca10c757.webp?v=1762743532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea9eaeb409f8538578a2b005fb7859268b980f5.webp?v=1762743533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdd0ce1ec0a2432141cde71983fddb5331f2902.webp?v=1762743534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdf62a880ed4b9c44c4f637ba956487b1a21484f.webp?v=1762743535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b236cbc47e60f616919d604a1d2a829f353ca7e.webp?v=1762743536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a44d3caf59e45f4aaf54b5b20e5816db7175fc.webp?v=1762743537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668c6c30a29fcbde91e7b20f63896fbe700d70f9.webp?v=1762743537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c95a91d4496aef3e43dc3defa5b4f42862843f43.webp?v=1762743538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4a94a8fe942eea8d8e1e4b91b9ee15e58100d4.webp?v=1762743539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85ca1176b9ddeecef81e1aa18634050556634787.webp?v=1762743539"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf25778a39b3624119e2de2471fb5e92203c83a4.webp?v=1762743531","options":["color"],"media":[{"alt":null,"id":26346736418915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf25778a39b3624119e2de2471fb5e92203c83a4.webp?v=1762743531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf25778a39b3624119e2de2471fb5e92203c83a4.webp?v=1762743531","width":2000},{"alt":null,"id":26346736615523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6e743cc235222c72a7a16511e55e6db7a9c421.webp?v=1762743532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6e743cc235222c72a7a16511e55e6db7a9c421.webp?v=1762743532","width":2000},{"alt":null,"id":26346736844899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a45ca8f249b4cc7552a696be737f106ca10c757.webp?v=1762743532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a45ca8f249b4cc7552a696be737f106ca10c757.webp?v=1762743532","width":2000},{"alt":null,"id":26346737074275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea9eaeb409f8538578a2b005fb7859268b980f5.webp?v=1762743533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea9eaeb409f8538578a2b005fb7859268b980f5.webp?v=1762743533","width":2000},{"alt":null,"id":26346737205347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534","width":2000},{"alt":null,"id":26346737369187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdd0ce1ec0a2432141cde71983fddb5331f2902.webp?v=1762743534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdd0ce1ec0a2432141cde71983fddb5331f2902.webp?v=1762743534","width":2000},{"alt":null,"id":26346737565795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdf62a880ed4b9c44c4f637ba956487b1a21484f.webp?v=1762743535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdf62a880ed4b9c44c4f637ba956487b1a21484f.webp?v=1762743535","width":2000},{"alt":null,"id":26346737827939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b236cbc47e60f616919d604a1d2a829f353ca7e.webp?v=1762743536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b236cbc47e60f616919d604a1d2a829f353ca7e.webp?v=1762743536","width":2000},{"alt":null,"id":26346738057315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a44d3caf59e45f4aaf54b5b20e5816db7175fc.webp?v=1762743537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a44d3caf59e45f4aaf54b5b20e5816db7175fc.webp?v=1762743537","width":2000},{"alt":null,"id":26346738352227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668c6c30a29fcbde91e7b20f63896fbe700d70f9.webp?v=1762743537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668c6c30a29fcbde91e7b20f63896fbe700d70f9.webp?v=1762743537","width":2000},{"alt":null,"id":26346738679907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c95a91d4496aef3e43dc3defa5b4f42862843f43.webp?v=1762743538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c95a91d4496aef3e43dc3defa5b4f42862843f43.webp?v=1762743538","width":2000},{"alt":null,"id":26346738909283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4a94a8fe942eea8d8e1e4b91b9ee15e58100d4.webp?v=1762743539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4a94a8fe942eea8d8e1e4b91b9ee15e58100d4.webp?v=1762743539","width":2000},{"alt":null,"id":26346739171427,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85ca1176b9ddeecef81e1aa18634050556634787.webp?v=1762743539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85ca1176b9ddeecef81e1aa18634050556634787.webp?v=1762743539","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828188119139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34780600828003,"product_id":7920319070307,"position":5,"created_at":"2025-11-10T10:58:52+08:00","updated_at":"2025-11-10T10:58:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534","variant_ids":[43828188119139]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Companionship - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LTC09","featured_media":{"alt":null,"id":26346737205347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828188119139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34780600828003,"product_id":7920319070307,"position":5,"created_at":"2025-11-10T10:58:52+08:00","updated_at":"2025-11-10T10:58:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534","variant_ids":[43828188119139]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Companionship - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-LTC09","featured_media":{"alt":null,"id":26346737205347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8b8852acafdcb7b9988788140360bc85a95668.webp?v=1762743534"}},"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: "停產" }