$product = {"id":7920311533667,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Big Catto","handle":"iphone-14-plus-mod-nx-magsafe-ltc03","description":null,"published_at":"2025-11-11T09:33:52+08:00","created_at":"2025-11-10T10:56:54+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":43828160004195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780571009123,"product_id":7920311533667,"position":6,"created_at":"2025-11-10T10:57:00+08:00","updated_at":"2025-11-10T10:57:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423","variant_ids":[43828160004195]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Big Catto - 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-LTC03","featured_media":{"alt":null,"id":26346707320931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0430790a969e1caafd46400e0ca99bf272e8cde5.webp?v=1762743417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d326f9b65ff92e33177b8eec90ef9ad18bbbdfdb.webp?v=1762743418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db4cddeb7890a0aa8320ff9f4f8be31916963f05.webp?v=1762743419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54091a2518945a0915995d3965b0fc2e326cf6ae.webp?v=1762743420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45363de2acb6c9ec4610430ebcb62148a3f640b9.webp?v=1762743421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8eda7b798760fb2ab22765b784d99ae555e119.webp?v=1762743423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a150b6621f222f0df651f73285ce0315bf27346d.webp?v=1762743424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8d5c063d90007728b2ccb0de98b373742fb4f9.webp?v=1762743424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0202b35fb721724c943eac39c6a68e02f0aea53d.webp?v=1762743425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7dab1817e14b258021db088d064cc2ba9f54d2.webp?v=1762743426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0f24806ef2ab9516571717c95caddcd7d795cd.webp?v=1762743427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/978a2f2274c9ccc433748ed489102503feeee836.webp?v=1762743427"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0430790a969e1caafd46400e0ca99bf272e8cde5.webp?v=1762743417","options":["color"],"media":[{"alt":null,"id":26346706305123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0430790a969e1caafd46400e0ca99bf272e8cde5.webp?v=1762743417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0430790a969e1caafd46400e0ca99bf272e8cde5.webp?v=1762743417","width":2000},{"alt":null,"id":26346706468963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d326f9b65ff92e33177b8eec90ef9ad18bbbdfdb.webp?v=1762743418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d326f9b65ff92e33177b8eec90ef9ad18bbbdfdb.webp?v=1762743418","width":2000},{"alt":null,"id":26346706698339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db4cddeb7890a0aa8320ff9f4f8be31916963f05.webp?v=1762743419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db4cddeb7890a0aa8320ff9f4f8be31916963f05.webp?v=1762743419","width":2000},{"alt":null,"id":26346706862179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54091a2518945a0915995d3965b0fc2e326cf6ae.webp?v=1762743420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54091a2518945a0915995d3965b0fc2e326cf6ae.webp?v=1762743420","width":2000},{"alt":null,"id":26346707026019,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45363de2acb6c9ec4610430ebcb62148a3f640b9.webp?v=1762743421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45363de2acb6c9ec4610430ebcb62148a3f640b9.webp?v=1762743421","width":2000},{"alt":null,"id":26346707320931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423","width":2000},{"alt":null,"id":26346707583075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8eda7b798760fb2ab22765b784d99ae555e119.webp?v=1762743423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8eda7b798760fb2ab22765b784d99ae555e119.webp?v=1762743423","width":2000},{"alt":null,"id":26346707812451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a150b6621f222f0df651f73285ce0315bf27346d.webp?v=1762743424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a150b6621f222f0df651f73285ce0315bf27346d.webp?v=1762743424","width":2000},{"alt":null,"id":26346708041827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8d5c063d90007728b2ccb0de98b373742fb4f9.webp?v=1762743424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df8d5c063d90007728b2ccb0de98b373742fb4f9.webp?v=1762743424","width":2000},{"alt":null,"id":26346708205667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0202b35fb721724c943eac39c6a68e02f0aea53d.webp?v=1762743425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0202b35fb721724c943eac39c6a68e02f0aea53d.webp?v=1762743425","width":2000},{"alt":null,"id":26346708303971,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7dab1817e14b258021db088d064cc2ba9f54d2.webp?v=1762743426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7dab1817e14b258021db088d064cc2ba9f54d2.webp?v=1762743426","width":2000},{"alt":null,"id":26346708467811,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0f24806ef2ab9516571717c95caddcd7d795cd.webp?v=1762743427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0f24806ef2ab9516571717c95caddcd7d795cd.webp?v=1762743427","width":2000},{"alt":null,"id":26346708566115,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/978a2f2274c9ccc433748ed489102503feeee836.webp?v=1762743427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/978a2f2274c9ccc433748ed489102503feeee836.webp?v=1762743427","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828160004195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780571009123,"product_id":7920311533667,"position":6,"created_at":"2025-11-10T10:57:00+08:00","updated_at":"2025-11-10T10:57:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423","variant_ids":[43828160004195]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Big Catto - 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-LTC03","featured_media":{"alt":null,"id":26346707320931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828160004195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-LTC03","requires_shipping":true,"taxable":true,"featured_image":{"id":34780571009123,"product_id":7920311533667,"position":6,"created_at":"2025-11-10T10:57:00+08:00","updated_at":"2025-11-10T10:57:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423","variant_ids":[43828160004195]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos Big Catto - 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-LTC03","featured_media":{"alt":null,"id":26346707320931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ee6425e64e9442cd3a1035775ca88c17678f89.webp?v=1762743423"}},"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: "停產" }