$product = {"id":7922033524835,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 橙香貓","handle":"iphone-14-plus-mod-nx-magsafe-toc07","description":null,"published_at":"2025-11-14T08:09:33+08:00","created_at":"2025-11-13T10:35:46+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":43834985513059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794414178403,"product_id":7922033524835,"position":10,"created_at":"2025-11-13T10:35:53+08:00","updated_at":"2025-11-13T10:35:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355","variant_ids":[43834985513059]},"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-TOC07","featured_media":{"alt":null,"id":26359833198691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/989b48a75c5e0cc9488beca9880e5badd907f9ba.webp?v=1763001349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3762e957df506e5f43068818ce5339a86b6509dc.webp?v=1763001349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8845b5d240cf5c0b9529d8f31fa079db97d16a81.webp?v=1763001350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40555943a5c8cc44c43e1db667faacc8fe2c0ed.webp?v=1763001351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57af97d0fc6a7ec780fed1c9aa60e4b6547b17dd.webp?v=1763001351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c917684a5724645e9d2ab9aa9f379c2a99e21ac.webp?v=1763001352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183b7e5e9445bfe966f04840ec56fbc054ec3d9c.webp?v=1763001353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33a4c25580b3045cc5c5c753113ed5538c8b0dd.webp?v=1763001354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17ae1578d4352098aff63279df132f61bbe64b9.webp?v=1763001354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b302bb58c52889f95bbb3cddd74eae3be72d406.webp?v=1763001356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86625b5d2952351c0cf6a7e8b13092c5675bef89.webp?v=1763001357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b044b1019476484b8233bd8358f24c26d2f8b97d.webp?v=1763001357"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/989b48a75c5e0cc9488beca9880e5badd907f9ba.webp?v=1763001349","options":["color"],"media":[{"alt":null,"id":26359830839395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/989b48a75c5e0cc9488beca9880e5badd907f9ba.webp?v=1763001349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/989b48a75c5e0cc9488beca9880e5badd907f9ba.webp?v=1763001349","width":2000},{"alt":null,"id":26359831167075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3762e957df506e5f43068818ce5339a86b6509dc.webp?v=1763001349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3762e957df506e5f43068818ce5339a86b6509dc.webp?v=1763001349","width":2000},{"alt":null,"id":26359831396451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8845b5d240cf5c0b9529d8f31fa079db97d16a81.webp?v=1763001350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8845b5d240cf5c0b9529d8f31fa079db97d16a81.webp?v=1763001350","width":2000},{"alt":null,"id":26359831625827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40555943a5c8cc44c43e1db667faacc8fe2c0ed.webp?v=1763001351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40555943a5c8cc44c43e1db667faacc8fe2c0ed.webp?v=1763001351","width":2000},{"alt":null,"id":26359831855203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57af97d0fc6a7ec780fed1c9aa60e4b6547b17dd.webp?v=1763001351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57af97d0fc6a7ec780fed1c9aa60e4b6547b17dd.webp?v=1763001351","width":2000},{"alt":null,"id":26359832019043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c917684a5724645e9d2ab9aa9f379c2a99e21ac.webp?v=1763001352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c917684a5724645e9d2ab9aa9f379c2a99e21ac.webp?v=1763001352","width":2000},{"alt":null,"id":26359832313955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183b7e5e9445bfe966f04840ec56fbc054ec3d9c.webp?v=1763001353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/183b7e5e9445bfe966f04840ec56fbc054ec3d9c.webp?v=1763001353","width":2000},{"alt":null,"id":26359832674403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33a4c25580b3045cc5c5c753113ed5538c8b0dd.webp?v=1763001354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e33a4c25580b3045cc5c5c753113ed5538c8b0dd.webp?v=1763001354","width":2000},{"alt":null,"id":26359832936547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17ae1578d4352098aff63279df132f61bbe64b9.webp?v=1763001354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17ae1578d4352098aff63279df132f61bbe64b9.webp?v=1763001354","width":2000},{"alt":null,"id":26359833198691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355","width":2000},{"alt":null,"id":26359833395299,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b302bb58c52889f95bbb3cddd74eae3be72d406.webp?v=1763001356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b302bb58c52889f95bbb3cddd74eae3be72d406.webp?v=1763001356","width":2000},{"alt":null,"id":26359833722979,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86625b5d2952351c0cf6a7e8b13092c5675bef89.webp?v=1763001357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86625b5d2952351c0cf6a7e8b13092c5675bef89.webp?v=1763001357","width":2000},{"alt":null,"id":26359834050659,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b044b1019476484b8233bd8358f24c26d2f8b97d.webp?v=1763001357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b044b1019476484b8233bd8358f24c26d2f8b97d.webp?v=1763001357","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834985513059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794414178403,"product_id":7922033524835,"position":10,"created_at":"2025-11-13T10:35:53+08:00","updated_at":"2025-11-13T10:35:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355","variant_ids":[43834985513059]},"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-TOC07","featured_media":{"alt":null,"id":26359833198691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834985513059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC07","requires_shipping":true,"taxable":true,"featured_image":{"id":34794414178403,"product_id":7922033524835,"position":10,"created_at":"2025-11-13T10:35:53+08:00","updated_at":"2025-11-13T10:35:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355","variant_ids":[43834985513059]},"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-TOC07","featured_media":{"alt":null,"id":26359833198691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0ec90fa239935bab3e9868fe1a0c69525195a5.webp?v=1763001355"}},"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: "停產" }