$product = {"id":7922022219875,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓","handle":"iphone-14-pro-mod-nx-magsafe-toc08","description":null,"published_at":"2025-11-14T08:11:37+08:00","created_at":"2025-11-13T10:33:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 14 Pro","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":43834942652515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794368270435,"product_id":7922022219875,"position":11,"created_at":"2025-11-13T10:33:29+08:00","updated_at":"2025-11-13T10:33:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211","variant_ids":[43834942652515]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-TOC08","featured_media":{"alt":null,"id":26359787192419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834942718051,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794367680611,"product_id":7922022219875,"position":8,"created_at":"2025-11-13T10:33:27+08:00","updated_at":"2025-11-13T10:33:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f075ec9c726f2d1f6a559b10495be8ea77962bd5.webp?v=1763001208","variant_ids":[43834942718051]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-TOC08","featured_media":{"alt":null,"id":26359786700899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f075ec9c726f2d1f6a559b10495be8ea77962bd5.webp?v=1763001208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834942816355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794367516771,"product_id":7922022219875,"position":7,"created_at":"2025-11-13T10:33:26+08:00","updated_at":"2025-11-13T10:33:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c206c55f03efbcb047aad3a24384331df94cc4c1.webp?v=1763001208","variant_ids":[43834942816355]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-TOC08","featured_media":{"alt":null,"id":26359786537059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c206c55f03efbcb047aad3a24384331df94cc4c1.webp?v=1763001208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbcd46df80750ac9c53d6e7b38eac9fe9251989d.webp?v=1763001202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1af2707a70c89e40f71de11c8ab734b8d67ae10.webp?v=1763001203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23acd07ef0909ae390381b708c5910b94346b0b4.webp?v=1763001204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773856b2e9a2fc0c3e21edd0f6eef6ff30bc8ae2.webp?v=1763001204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f31779f70219e654b4d29b8bd9bf3ef6dbda4cf4.webp?v=1763001205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119698f512515612b51a7411829a2a71ceda68cb.webp?v=1763001206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c206c55f03efbcb047aad3a24384331df94cc4c1.webp?v=1763001208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f075ec9c726f2d1f6a559b10495be8ea77962bd5.webp?v=1763001208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ec10440c90ed196332b99f91760d743699b8a9.webp?v=1763001209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86b9c55cf8361244de5c8b0ed686cdc43d405e98.webp?v=1763001210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576e7d67b3a88d0eff721260141951bf5626f999.webp?v=1763001211"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbcd46df80750ac9c53d6e7b38eac9fe9251989d.webp?v=1763001202","options":["color"],"media":[{"alt":null,"id":26359784865891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbcd46df80750ac9c53d6e7b38eac9fe9251989d.webp?v=1763001202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbcd46df80750ac9c53d6e7b38eac9fe9251989d.webp?v=1763001202","width":2000},{"alt":null,"id":26359784996963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1af2707a70c89e40f71de11c8ab734b8d67ae10.webp?v=1763001203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1af2707a70c89e40f71de11c8ab734b8d67ae10.webp?v=1763001203","width":2000},{"alt":null,"id":26359785160803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23acd07ef0909ae390381b708c5910b94346b0b4.webp?v=1763001204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23acd07ef0909ae390381b708c5910b94346b0b4.webp?v=1763001204","width":2000},{"alt":null,"id":26359785357411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773856b2e9a2fc0c3e21edd0f6eef6ff30bc8ae2.webp?v=1763001204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773856b2e9a2fc0c3e21edd0f6eef6ff30bc8ae2.webp?v=1763001204","width":2000},{"alt":null,"id":26359785685091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f31779f70219e654b4d29b8bd9bf3ef6dbda4cf4.webp?v=1763001205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f31779f70219e654b4d29b8bd9bf3ef6dbda4cf4.webp?v=1763001205","width":2000},{"alt":null,"id":26359785914467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119698f512515612b51a7411829a2a71ceda68cb.webp?v=1763001206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/119698f512515612b51a7411829a2a71ceda68cb.webp?v=1763001206","width":2000},{"alt":null,"id":26359786537059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c206c55f03efbcb047aad3a24384331df94cc4c1.webp?v=1763001208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c206c55f03efbcb047aad3a24384331df94cc4c1.webp?v=1763001208","width":2000},{"alt":null,"id":26359786700899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f075ec9c726f2d1f6a559b10495be8ea77962bd5.webp?v=1763001208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f075ec9c726f2d1f6a559b10495be8ea77962bd5.webp?v=1763001208","width":2000},{"alt":null,"id":26359786864739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ec10440c90ed196332b99f91760d743699b8a9.webp?v=1763001209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ec10440c90ed196332b99f91760d743699b8a9.webp?v=1763001209","width":2000},{"alt":null,"id":26359787061347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86b9c55cf8361244de5c8b0ed686cdc43d405e98.webp?v=1763001210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86b9c55cf8361244de5c8b0ed686cdc43d405e98.webp?v=1763001210","width":2000},{"alt":null,"id":26359787192419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211","width":2000},{"alt":null,"id":26359787290723,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576e7d67b3a88d0eff721260141951bf5626f999.webp?v=1763001211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576e7d67b3a88d0eff721260141951bf5626f999.webp?v=1763001211","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834942652515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794368270435,"product_id":7922022219875,"position":11,"created_at":"2025-11-13T10:33:29+08:00","updated_at":"2025-11-13T10:33:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211","variant_ids":[43834942652515]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-TOC08","featured_media":{"alt":null,"id":26359787192419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834942718051,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794367680611,"product_id":7922022219875,"position":8,"created_at":"2025-11-13T10:33:27+08:00","updated_at":"2025-11-13T10:33:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f075ec9c726f2d1f6a559b10495be8ea77962bd5.webp?v=1763001208","variant_ids":[43834942718051]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-TOC08","featured_media":{"alt":null,"id":26359786700899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f075ec9c726f2d1f6a559b10495be8ea77962bd5.webp?v=1763001208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834942816355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794367516771,"product_id":7922022219875,"position":7,"created_at":"2025-11-13T10:33:26+08:00","updated_at":"2025-11-13T10:33:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c206c55f03efbcb047aad3a24384331df94cc4c1.webp?v=1763001208","variant_ids":[43834942816355]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-TOC08","featured_media":{"alt":null,"id":26359786537059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c206c55f03efbcb047aad3a24384331df94cc4c1.webp?v=1763001208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834942652515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-TOC08","requires_shipping":true,"taxable":true,"featured_image":{"id":34794368270435,"product_id":7922022219875,"position":11,"created_at":"2025-11-13T10:33:29+08:00","updated_at":"2025-11-13T10:33:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211","variant_ids":[43834942652515]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 糰子貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-TOC08","featured_media":{"alt":null,"id":26359787192419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b68f41c287cab9e765a309e9bb12a0f0f2c2a0c.webp?v=1763001211"}},"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: "停產" }