$product = {"id":7922035261539,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 麵包出爐貓","handle":"iphone-14-plus-mod-nx-magsafe-toc02","description":null,"published_at":"2025-11-14T08:09:15+08:00","created_at":"2025-11-13T10:36:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 14 Plus","merge","reseller-tocorocomugi"],"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":43834994589795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC02","requires_shipping":true,"taxable":true,"featured_image":{"id":34794423681123,"product_id":7922035261539,"position":9,"created_at":"2025-11-13T10:36:21+08:00","updated_at":"2025-11-13T10:36:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383","variant_ids":[43834994589795]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 麵包出爐貓 - 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-TOC02","featured_media":{"alt":null,"id":26359842701411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c35fff008b14cf75f9185bd0dc3e22b045d69b0.webp?v=1763001375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdbe46cbcf86147df1f95aab4546e716d9eb755d.webp?v=1763001376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28c2f38cc7aea342c4416ffdb5d85b4944a49d25.webp?v=1763001377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cead587c5a32c016ab19b2a9cf0014368fa93a7.webp?v=1763001377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ca12c10b71795a0ea0e6fdc8563aa550c1cfe4.webp?v=1763001378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d29d826b14f9ee438218a254a15463bbff5454.webp?v=1763001380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9058a94d335871acf193ddd12de4863134fcb682.webp?v=1763001381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b53211426ae6484cb49cd2256e2f03eb4d65149.webp?v=1763001382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345408341a2e63e4a321f4629a71d8bc5d87776d.webp?v=1763001384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be48f76d43aed17997b8fe8fd611feba6435e78a.webp?v=1763001385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86394ff1ce98386953fbf9e1e63566934499b7de.webp?v=1763001385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a657f3d56ea61f71eb170689ee28a2f4b23cdf7.webp?v=1763001385"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c35fff008b14cf75f9185bd0dc3e22b045d69b0.webp?v=1763001375","options":["color"],"media":[{"alt":null,"id":26359840047203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c35fff008b14cf75f9185bd0dc3e22b045d69b0.webp?v=1763001375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c35fff008b14cf75f9185bd0dc3e22b045d69b0.webp?v=1763001375","width":2000},{"alt":null,"id":26359840309347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdbe46cbcf86147df1f95aab4546e716d9eb755d.webp?v=1763001376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdbe46cbcf86147df1f95aab4546e716d9eb755d.webp?v=1763001376","width":2000},{"alt":null,"id":26359840637027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28c2f38cc7aea342c4416ffdb5d85b4944a49d25.webp?v=1763001377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28c2f38cc7aea342c4416ffdb5d85b4944a49d25.webp?v=1763001377","width":2000},{"alt":null,"id":26359840931939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cead587c5a32c016ab19b2a9cf0014368fa93a7.webp?v=1763001377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cead587c5a32c016ab19b2a9cf0014368fa93a7.webp?v=1763001377","width":2000},{"alt":null,"id":26359841194083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ca12c10b71795a0ea0e6fdc8563aa550c1cfe4.webp?v=1763001378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ca12c10b71795a0ea0e6fdc8563aa550c1cfe4.webp?v=1763001378","width":2000},{"alt":null,"id":26359841620067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d29d826b14f9ee438218a254a15463bbff5454.webp?v=1763001380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6d29d826b14f9ee438218a254a15463bbff5454.webp?v=1763001380","width":2000},{"alt":null,"id":26359841914979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9058a94d335871acf193ddd12de4863134fcb682.webp?v=1763001381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9058a94d335871acf193ddd12de4863134fcb682.webp?v=1763001381","width":2000},{"alt":null,"id":26359842275427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b53211426ae6484cb49cd2256e2f03eb4d65149.webp?v=1763001382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b53211426ae6484cb49cd2256e2f03eb4d65149.webp?v=1763001382","width":2000},{"alt":null,"id":26359842701411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383","width":2000},{"alt":null,"id":26359842996323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345408341a2e63e4a321f4629a71d8bc5d87776d.webp?v=1763001384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345408341a2e63e4a321f4629a71d8bc5d87776d.webp?v=1763001384","width":2000},{"alt":null,"id":26359843160163,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be48f76d43aed17997b8fe8fd611feba6435e78a.webp?v=1763001385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be48f76d43aed17997b8fe8fd611feba6435e78a.webp?v=1763001385","width":2000},{"alt":null,"id":26359843389539,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86394ff1ce98386953fbf9e1e63566934499b7de.webp?v=1763001385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86394ff1ce98386953fbf9e1e63566934499b7de.webp?v=1763001385","width":2000},{"alt":null,"id":26359843684451,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a657f3d56ea61f71eb170689ee28a2f4b23cdf7.webp?v=1763001385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a657f3d56ea61f71eb170689ee28a2f4b23cdf7.webp?v=1763001385","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834994589795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC02","requires_shipping":true,"taxable":true,"featured_image":{"id":34794423681123,"product_id":7922035261539,"position":9,"created_at":"2025-11-13T10:36:21+08:00","updated_at":"2025-11-13T10:36:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383","variant_ids":[43834994589795]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 麵包出爐貓 - 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-TOC02","featured_media":{"alt":null,"id":26359842701411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834994589795,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC02","requires_shipping":true,"taxable":true,"featured_image":{"id":34794423681123,"product_id":7922035261539,"position":9,"created_at":"2025-11-13T10:36:21+08:00","updated_at":"2025-11-13T10:36:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383","variant_ids":[43834994589795]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 麵包出爐貓 - 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-TOC02","featured_media":{"alt":null,"id":26359842701411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdecc94186c5d2932c9c8a5bab32e2f319a9949b.webp?v=1763001383"}},"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: "停產" }