$product = {"id":7875997827171,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了","handle":"iphone-14-plus-mod-nx-magsafe-printable-ea105","description":null,"published_at":"2025-09-04T10:38:50+08:00","created_at":"2025-09-03T11:33:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 14 Plus","merge","reseller-songsongmeow"],"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":43674908459107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34415950004323,"product_id":7875997827171,"position":6,"created_at":"2025-09-03T11:33:34+08:00","updated_at":"2025-09-03T11:33:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416","variant_ids":[43674908459107]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - 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-EA105","featured_media":{"alt":null,"id":25988224811107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daa6fe854e34a252ade199a5f0c03326569e3310.webp?v=1756870412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddee2d5a3fa7235fd30896bf328a979bfe77aea2.webp?v=1756870413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490ccdb27347d8e9759b9287eb6e6308c4947f79.webp?v=1756870414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2a1ad3662688b5780d5a08991a3c7b441c0da0.webp?v=1756870414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e9129dbbea1ed20d19d0175987764c6166a948c.webp?v=1756870415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855f8e44f2abc024734e9ba938a9177477cd945e.webp?v=1756870417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dac78572277ba4ed9ed051cd9dd12b0569bf23a.webp?v=1756870417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee819203ed250c193b74477d1efa2b1d6becc420.webp?v=1756870418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49550845b9425d09cd7bf1bb6d1e42aee6f2c79e.webp?v=1756870419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ce62c5ad1f745f97b4d298befb903db0b72268.webp?v=1756870420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f529c1b9c69d2a72ae082ca439e27df10aba79.webp?v=1756870420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efad36d794c28755f096eb2b51940b9cde80621b.webp?v=1756870421"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daa6fe854e34a252ade199a5f0c03326569e3310.webp?v=1756870412","options":["color"],"media":[{"alt":null,"id":25988223729763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daa6fe854e34a252ade199a5f0c03326569e3310.webp?v=1756870412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daa6fe854e34a252ade199a5f0c03326569e3310.webp?v=1756870412","width":2000},{"alt":null,"id":25988223959139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddee2d5a3fa7235fd30896bf328a979bfe77aea2.webp?v=1756870413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddee2d5a3fa7235fd30896bf328a979bfe77aea2.webp?v=1756870413","width":2000},{"alt":null,"id":25988224122979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490ccdb27347d8e9759b9287eb6e6308c4947f79.webp?v=1756870414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490ccdb27347d8e9759b9287eb6e6308c4947f79.webp?v=1756870414","width":2000},{"alt":null,"id":25988224352355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2a1ad3662688b5780d5a08991a3c7b441c0da0.webp?v=1756870414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c2a1ad3662688b5780d5a08991a3c7b441c0da0.webp?v=1756870414","width":2000},{"alt":null,"id":25988224548963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e9129dbbea1ed20d19d0175987764c6166a948c.webp?v=1756870415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e9129dbbea1ed20d19d0175987764c6166a948c.webp?v=1756870415","width":2000},{"alt":null,"id":25988224811107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416","width":2000},{"alt":null,"id":25988225138787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855f8e44f2abc024734e9ba938a9177477cd945e.webp?v=1756870417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855f8e44f2abc024734e9ba938a9177477cd945e.webp?v=1756870417","width":2000},{"alt":null,"id":25988225368163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dac78572277ba4ed9ed051cd9dd12b0569bf23a.webp?v=1756870417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dac78572277ba4ed9ed051cd9dd12b0569bf23a.webp?v=1756870417","width":2000},{"alt":null,"id":25988225564771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee819203ed250c193b74477d1efa2b1d6becc420.webp?v=1756870418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee819203ed250c193b74477d1efa2b1d6becc420.webp?v=1756870418","width":2000},{"alt":null,"id":25988225728611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49550845b9425d09cd7bf1bb6d1e42aee6f2c79e.webp?v=1756870419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49550845b9425d09cd7bf1bb6d1e42aee6f2c79e.webp?v=1756870419","width":2000},{"alt":null,"id":25988226056291,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ce62c5ad1f745f97b4d298befb903db0b72268.webp?v=1756870420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ce62c5ad1f745f97b4d298befb903db0b72268.webp?v=1756870420","width":2000},{"alt":null,"id":25988226285667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f529c1b9c69d2a72ae082ca439e27df10aba79.webp?v=1756870420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29f529c1b9c69d2a72ae082ca439e27df10aba79.webp?v=1756870420","width":2000},{"alt":null,"id":25988226515043,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efad36d794c28755f096eb2b51940b9cde80621b.webp?v=1756870421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efad36d794c28755f096eb2b51940b9cde80621b.webp?v=1756870421","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43674908459107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34415950004323,"product_id":7875997827171,"position":6,"created_at":"2025-09-03T11:33:34+08:00","updated_at":"2025-09-03T11:33:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416","variant_ids":[43674908459107]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - 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-EA105","featured_media":{"alt":null,"id":25988224811107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43674908459107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA105","requires_shipping":true,"taxable":true,"featured_image":{"id":34415950004323,"product_id":7875997827171,"position":6,"created_at":"2025-09-03T11:33:34+08:00","updated_at":"2025-09-03T11:33:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416","variant_ids":[43674908459107]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 準備好去愛了 - 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-EA105","featured_media":{"alt":null,"id":25988224811107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1342dedfaa8bfa4e1de73bae3909e588751b3e35.webp?v=1756870416"}},"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: "停產" }