$product = {"id":7920348790883,"title":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Little Cattos","handle":"iphone-14-plus-mod-nx-ltc04","description":null,"published_at":"2025-11-11T09:27:11+08:00","created_at":"2025-11-10T11:06:05+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":43828298711139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34780719808611,"product_id":7920348790883,"position":7,"created_at":"2025-11-10T11:06:12+08:00","updated_at":"2025-11-10T11:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974","variant_ids":[43828298711139]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Little Cattos - 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-LTC04","featured_media":{"alt":null,"id":26346856153187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e677f09b54c97b8b78991a817538126d80b7241c.webp?v=1762743968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15a096627c73068d3ee0fa35ed60186a3d2007c.webp?v=1762743969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c932657375fe144910a201b71f46f23282c11dd4.webp?v=1762743970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2b00a406f99d027365b4c0441c64fcd5323f80.webp?v=1762743971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e388fba45ce70dfaacdc782bd4cff60bffcd644.webp?v=1762743972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ced205f9c91b3beb3cbfafc0a11c8e992da862.webp?v=1762743973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b0ab5032908f28c559e41d3f6221589b851c6f.webp?v=1762743974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d7ee7c3a27d1c7f53e127dfb6b3b562ed9233d.webp?v=1762743975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf64dac502905629408265b7011143c498d36e9.webp?v=1762743976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab392d8a6ac138a23a1196e51f08bffa52c0e50b.webp?v=1762743977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624533b67a115769c72c7d313192b3c32d336e88.webp?v=1762743978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dce043e1def7c71ebea2d0e95815fe901382b7.webp?v=1762743979"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e677f09b54c97b8b78991a817538126d80b7241c.webp?v=1762743968","options":["color"],"media":[{"alt":null,"id":26346855399523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e677f09b54c97b8b78991a817538126d80b7241c.webp?v=1762743968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e677f09b54c97b8b78991a817538126d80b7241c.webp?v=1762743968","width":2000},{"alt":null,"id":26346855563363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15a096627c73068d3ee0fa35ed60186a3d2007c.webp?v=1762743969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a15a096627c73068d3ee0fa35ed60186a3d2007c.webp?v=1762743969","width":2000},{"alt":null,"id":26346855661667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c932657375fe144910a201b71f46f23282c11dd4.webp?v=1762743970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c932657375fe144910a201b71f46f23282c11dd4.webp?v=1762743970","width":2000},{"alt":null,"id":26346855792739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2b00a406f99d027365b4c0441c64fcd5323f80.webp?v=1762743971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2b00a406f99d027365b4c0441c64fcd5323f80.webp?v=1762743971","width":2000},{"alt":null,"id":26346855858275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e388fba45ce70dfaacdc782bd4cff60bffcd644.webp?v=1762743972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e388fba45ce70dfaacdc782bd4cff60bffcd644.webp?v=1762743972","width":2000},{"alt":null,"id":26346855989347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ced205f9c91b3beb3cbfafc0a11c8e992da862.webp?v=1762743973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5ced205f9c91b3beb3cbfafc0a11c8e992da862.webp?v=1762743973","width":2000},{"alt":null,"id":26346856153187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974","width":2000},{"alt":null,"id":26346856382563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b0ab5032908f28c559e41d3f6221589b851c6f.webp?v=1762743974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b0ab5032908f28c559e41d3f6221589b851c6f.webp?v=1762743974","width":2000},{"alt":null,"id":26346856579171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d7ee7c3a27d1c7f53e127dfb6b3b562ed9233d.webp?v=1762743975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d7ee7c3a27d1c7f53e127dfb6b3b562ed9233d.webp?v=1762743975","width":2000},{"alt":null,"id":26346856906851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf64dac502905629408265b7011143c498d36e9.webp?v=1762743976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf64dac502905629408265b7011143c498d36e9.webp?v=1762743976","width":2000},{"alt":null,"id":26346857201763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab392d8a6ac138a23a1196e51f08bffa52c0e50b.webp?v=1762743977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab392d8a6ac138a23a1196e51f08bffa52c0e50b.webp?v=1762743977","width":2000},{"alt":null,"id":26346857529443,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624533b67a115769c72c7d313192b3c32d336e88.webp?v=1762743978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624533b67a115769c72c7d313192b3c32d336e88.webp?v=1762743978","width":2000},{"alt":null,"id":26346857857123,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dce043e1def7c71ebea2d0e95815fe901382b7.webp?v=1762743979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19dce043e1def7c71ebea2d0e95815fe901382b7.webp?v=1762743979","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828298711139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34780719808611,"product_id":7920348790883,"position":7,"created_at":"2025-11-10T11:06:12+08:00","updated_at":"2025-11-10T11:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974","variant_ids":[43828298711139]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Little Cattos - 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-LTC04","featured_media":{"alt":null,"id":26346856153187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828298711139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-LTC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34780719808611,"product_id":7920348790883,"position":7,"created_at":"2025-11-10T11:06:12+08:00","updated_at":"2025-11-10T11:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974","variant_ids":[43828298711139]},"available":true,"name":"iPhone 14 Plus Mod NX 小貓貓們 Little Cattos Little Cattos - 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-LTC04","featured_media":{"alt":null,"id":26346856153187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b61ed9bd9bbf7983a41b18d43207f8ef1171f47.webp?v=1762743974"}},"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: "停產" }