$product = {"id":7920300818531,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Companionship","handle":"iphone-14-plus-mod-nx-magsafe-ltc09","description":null,"published_at":"2025-11-11T09:35:41+08:00","created_at":"2025-11-10T10:54:10+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":43828119699555,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34780526575715,"product_id":7920300818531,"position":7,"created_at":"2025-11-10T10:54:18+08:00","updated_at":"2025-11-10T10:54:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260","variant_ids":[43828119699555]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Companionship - 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-LTC09","featured_media":{"alt":null,"id":26346662854755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c985b2efa92b6c21e1cb99560ac88e65466497d.webp?v=1762743256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18e7bcf334d48a09e72d78ef1297417241fa4f8d.webp?v=1762743256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3a5e7eeb4c0aaac0b8a73e47a82aaf17d2045a.webp?v=1762743257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7727d08f020fd47ec01b4ce3e8d9587c57cca4.webp?v=1762743258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5afc56058b89e08954122ab6334e4016dd6d9f.webp?v=1762743259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e9f43dd3b69e425241dbcd60babbfe597692ae.webp?v=1762743259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb470f9d21e9f65cbc98653fbc696f93e581edcc.webp?v=1762743261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf8f6626bd53402aa1b7f1b1b06a14df265b094.webp?v=1762743262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b31a78446b617f0f950c9ad0c7ac493bbf45ddc.webp?v=1762743262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dca84971b9b7f3e4c71bc7f86bced69a58b23c4.webp?v=1762743263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6160d6f71940a488d1d9b6428215162d9d7fb844.webp?v=1762743264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6006482f692ba4e47fe0c8b54dab2b3c89aaedbd.webp?v=1762743265"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c985b2efa92b6c21e1cb99560ac88e65466497d.webp?v=1762743256","options":["color"],"media":[{"alt":null,"id":26346661740643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c985b2efa92b6c21e1cb99560ac88e65466497d.webp?v=1762743256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c985b2efa92b6c21e1cb99560ac88e65466497d.webp?v=1762743256","width":2000},{"alt":null,"id":26346661904483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18e7bcf334d48a09e72d78ef1297417241fa4f8d.webp?v=1762743256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18e7bcf334d48a09e72d78ef1297417241fa4f8d.webp?v=1762743256","width":2000},{"alt":null,"id":26346662035555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3a5e7eeb4c0aaac0b8a73e47a82aaf17d2045a.webp?v=1762743257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3a5e7eeb4c0aaac0b8a73e47a82aaf17d2045a.webp?v=1762743257","width":2000},{"alt":null,"id":26346662199395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7727d08f020fd47ec01b4ce3e8d9587c57cca4.webp?v=1762743258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7727d08f020fd47ec01b4ce3e8d9587c57cca4.webp?v=1762743258","width":2000},{"alt":null,"id":26346662494307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5afc56058b89e08954122ab6334e4016dd6d9f.webp?v=1762743259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5afc56058b89e08954122ab6334e4016dd6d9f.webp?v=1762743259","width":2000},{"alt":null,"id":26346662690915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e9f43dd3b69e425241dbcd60babbfe597692ae.webp?v=1762743259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e9f43dd3b69e425241dbcd60babbfe597692ae.webp?v=1762743259","width":2000},{"alt":null,"id":26346662854755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260","width":2000},{"alt":null,"id":26346663215203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb470f9d21e9f65cbc98653fbc696f93e581edcc.webp?v=1762743261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb470f9d21e9f65cbc98653fbc696f93e581edcc.webp?v=1762743261","width":2000},{"alt":null,"id":26346663510115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf8f6626bd53402aa1b7f1b1b06a14df265b094.webp?v=1762743262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf8f6626bd53402aa1b7f1b1b06a14df265b094.webp?v=1762743262","width":2000},{"alt":null,"id":26346663772259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b31a78446b617f0f950c9ad0c7ac493bbf45ddc.webp?v=1762743262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b31a78446b617f0f950c9ad0c7ac493bbf45ddc.webp?v=1762743262","width":2000},{"alt":null,"id":26346664034403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dca84971b9b7f3e4c71bc7f86bced69a58b23c4.webp?v=1762743263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dca84971b9b7f3e4c71bc7f86bced69a58b23c4.webp?v=1762743263","width":2000},{"alt":null,"id":26346664329315,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6160d6f71940a488d1d9b6428215162d9d7fb844.webp?v=1762743264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6160d6f71940a488d1d9b6428215162d9d7fb844.webp?v=1762743264","width":2000},{"alt":null,"id":26346664591459,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6006482f692ba4e47fe0c8b54dab2b3c89aaedbd.webp?v=1762743265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6006482f692ba4e47fe0c8b54dab2b3c89aaedbd.webp?v=1762743265","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828119699555,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34780526575715,"product_id":7920300818531,"position":7,"created_at":"2025-11-10T10:54:18+08:00","updated_at":"2025-11-10T10:54:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260","variant_ids":[43828119699555]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Companionship - 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-LTC09","featured_media":{"alt":null,"id":26346662854755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828119699555,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC09","requires_shipping":true,"taxable":true,"featured_image":{"id":34780526575715,"product_id":7920300818531,"position":7,"created_at":"2025-11-10T10:54:18+08:00","updated_at":"2025-11-10T10:54:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260","variant_ids":[43828119699555]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Companionship - 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-LTC09","featured_media":{"alt":null,"id":26346662854755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7745cf3209e8f8882cbf81ba7c193822b4f9d858.webp?v=1762743260"}},"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: "停產" }