$product = {"id":7920379953251,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Meow\u0026Flowers","handle":"iphone-14-plus-mod-nx-magsafe-ltc01","description":null,"published_at":"2025-11-11T09:21:22+08:00","created_at":"2025-11-10T11:13: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":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":43828418773091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34780848357475,"product_id":7920379953251,"position":11,"created_at":"2025-11-10T11:13:16+08:00","updated_at":"2025-11-10T11:13:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398","variant_ids":[43828418773091]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-LTC01","featured_media":{"alt":null,"id":26346983784547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21bc8847f0d9b7eca5dc8e5fb9b4233637e55b19.webp?v=1762744391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe5dadf771e53ed12761e22050568a77ceb8b5b7.webp?v=1762744392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa0047698569333c234c853bdc277c460825c38.webp?v=1762744393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0814e3d4427c9e9c4a28f4eb91e122ade9164045.webp?v=1762744393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ab9885ad90a9d598441c2480e2aac265db0506.webp?v=1762744394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13dee69d0b9a9f5d8190973af875b920b5cff5dc.webp?v=1762744395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc0b6fdc8781d17e94f3514bc80e7450e90c9cd.webp?v=1762744395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173f26f1e9353d5323b301bbb0611d5e2d8d84f1.webp?v=1762744396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d634e99cd53e1da86fa1dc857932ac31de66ee0.webp?v=1762744397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f74e78a768f24ffb4703fc8b99ed2a413b197ee.webp?v=1762744398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f41edc6dc2360ea68295a074072bb040fada293.webp?v=1762744399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84cb5c98ba90462608f912e45de22a67d9d688d7.webp?v=1762744400"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21bc8847f0d9b7eca5dc8e5fb9b4233637e55b19.webp?v=1762744391","options":["color"],"media":[{"alt":null,"id":26346981523555,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21bc8847f0d9b7eca5dc8e5fb9b4233637e55b19.webp?v=1762744391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21bc8847f0d9b7eca5dc8e5fb9b4233637e55b19.webp?v=1762744391","width":2000},{"alt":null,"id":26346981654627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe5dadf771e53ed12761e22050568a77ceb8b5b7.webp?v=1762744392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe5dadf771e53ed12761e22050568a77ceb8b5b7.webp?v=1762744392","width":2000},{"alt":null,"id":26346981818467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa0047698569333c234c853bdc277c460825c38.webp?v=1762744393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa0047698569333c234c853bdc277c460825c38.webp?v=1762744393","width":2000},{"alt":null,"id":26346982342755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0814e3d4427c9e9c4a28f4eb91e122ade9164045.webp?v=1762744393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0814e3d4427c9e9c4a28f4eb91e122ade9164045.webp?v=1762744393","width":2000},{"alt":null,"id":26346982572131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ab9885ad90a9d598441c2480e2aac265db0506.webp?v=1762744394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68ab9885ad90a9d598441c2480e2aac265db0506.webp?v=1762744394","width":2000},{"alt":null,"id":26346982801507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13dee69d0b9a9f5d8190973af875b920b5cff5dc.webp?v=1762744395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13dee69d0b9a9f5d8190973af875b920b5cff5dc.webp?v=1762744395","width":2000},{"alt":null,"id":26346983063651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc0b6fdc8781d17e94f3514bc80e7450e90c9cd.webp?v=1762744395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bc0b6fdc8781d17e94f3514bc80e7450e90c9cd.webp?v=1762744395","width":2000},{"alt":null,"id":26346983227491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173f26f1e9353d5323b301bbb0611d5e2d8d84f1.webp?v=1762744396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/173f26f1e9353d5323b301bbb0611d5e2d8d84f1.webp?v=1762744396","width":2000},{"alt":null,"id":26346983424099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d634e99cd53e1da86fa1dc857932ac31de66ee0.webp?v=1762744397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d634e99cd53e1da86fa1dc857932ac31de66ee0.webp?v=1762744397","width":2000},{"alt":null,"id":26346983587939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f74e78a768f24ffb4703fc8b99ed2a413b197ee.webp?v=1762744398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f74e78a768f24ffb4703fc8b99ed2a413b197ee.webp?v=1762744398","width":2000},{"alt":null,"id":26346983784547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398","width":2000},{"alt":null,"id":26346984013923,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f41edc6dc2360ea68295a074072bb040fada293.webp?v=1762744399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f41edc6dc2360ea68295a074072bb040fada293.webp?v=1762744399","width":2000},{"alt":null,"id":26346984276067,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84cb5c98ba90462608f912e45de22a67d9d688d7.webp?v=1762744400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84cb5c98ba90462608f912e45de22a67d9d688d7.webp?v=1762744400","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828418773091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34780848357475,"product_id":7920379953251,"position":11,"created_at":"2025-11-10T11:13:16+08:00","updated_at":"2025-11-10T11:13:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398","variant_ids":[43828418773091]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-LTC01","featured_media":{"alt":null,"id":26346983784547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828418773091,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC01","requires_shipping":true,"taxable":true,"featured_image":{"id":34780848357475,"product_id":7920379953251,"position":11,"created_at":"2025-11-10T11:13:16+08:00","updated_at":"2025-11-10T11:13:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398","variant_ids":[43828418773091]},"available":true,"name":"iPhone 14 Plus 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":"MPB0126124-LTC01","featured_media":{"alt":null,"id":26346983784547,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e52c3f3b270110521a4cda57a12fc532407c2d04.webp?v=1762744398"}},"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: "停產" }