$product = {"id":7922067603555,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 旋轉可頌貓","handle":"iphone-14-plus-mod-nx-magsafe-toc05","description":null,"published_at":"2025-11-14T08:03:27+08:00","created_at":"2025-11-13T10:42:55+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":43835113013347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC05","requires_shipping":true,"taxable":true,"featured_image":{"id":34794548887651,"product_id":7922067603555,"position":4,"created_at":"2025-11-13T10:42:58+08:00","updated_at":"2025-11-13T10:43:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780","variant_ids":[43835113013347]},"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-TOC05","featured_media":{"alt":null,"id":26359967875171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fb8c527013dc046d16db7a3166534cc4a060ca.webp?v=1763001778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9a285f11a9fbcb61e50fd386c28634e7689705.webp?v=1763001778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce0f5e5f80f5c870a458567b4401aa2539d6bfbc.webp?v=1763001779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35db9bd7da1cfbe35a1df5b70f20747303d93c9.webp?v=1763001781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bfe4749a747bd92f71e2708862aa71682c858.webp?v=1763001781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85eb427212cba823dd495be7aa22244adfaef66a.webp?v=1763001782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86bfed1d44c40b6fabd7b3b70229566564ae23c4.webp?v=1763001783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652cb2254fe5f1fe11d73e39da4d966545155e2c.webp?v=1763001783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bcdbb01354daa9f51bd5ad98e0190709260ac8e.webp?v=1763001784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b97431cec8e3a959133c246cc32251cb198923c.webp?v=1763001785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baaf0a03bbc61174feaedcbf386dbfc75cde407a.webp?v=1763001785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7021b0a9405c74565714f59709bb740adfd36ed9.webp?v=1763001786"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fb8c527013dc046d16db7a3166534cc4a060ca.webp?v=1763001778","options":["color"],"media":[{"alt":null,"id":26359967252579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fb8c527013dc046d16db7a3166534cc4a060ca.webp?v=1763001778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52fb8c527013dc046d16db7a3166534cc4a060ca.webp?v=1763001778","width":2000},{"alt":null,"id":26359967481955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9a285f11a9fbcb61e50fd386c28634e7689705.webp?v=1763001778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9a285f11a9fbcb61e50fd386c28634e7689705.webp?v=1763001778","width":2000},{"alt":null,"id":26359967678563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce0f5e5f80f5c870a458567b4401aa2539d6bfbc.webp?v=1763001779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce0f5e5f80f5c870a458567b4401aa2539d6bfbc.webp?v=1763001779","width":2000},{"alt":null,"id":26359967875171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780","width":2000},{"alt":null,"id":26359968235619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35db9bd7da1cfbe35a1df5b70f20747303d93c9.webp?v=1763001781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35db9bd7da1cfbe35a1df5b70f20747303d93c9.webp?v=1763001781","width":2000},{"alt":null,"id":26359968563299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bfe4749a747bd92f71e2708862aa71682c858.webp?v=1763001781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bfe4749a747bd92f71e2708862aa71682c858.webp?v=1763001781","width":2000},{"alt":null,"id":26359968923747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85eb427212cba823dd495be7aa22244adfaef66a.webp?v=1763001782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85eb427212cba823dd495be7aa22244adfaef66a.webp?v=1763001782","width":2000},{"alt":null,"id":26359969218659,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86bfed1d44c40b6fabd7b3b70229566564ae23c4.webp?v=1763001783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86bfed1d44c40b6fabd7b3b70229566564ae23c4.webp?v=1763001783","width":2000},{"alt":null,"id":26359969415267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652cb2254fe5f1fe11d73e39da4d966545155e2c.webp?v=1763001783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652cb2254fe5f1fe11d73e39da4d966545155e2c.webp?v=1763001783","width":2000},{"alt":null,"id":26359969546339,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bcdbb01354daa9f51bd5ad98e0190709260ac8e.webp?v=1763001784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bcdbb01354daa9f51bd5ad98e0190709260ac8e.webp?v=1763001784","width":2000},{"alt":null,"id":26359969841251,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b97431cec8e3a959133c246cc32251cb198923c.webp?v=1763001785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b97431cec8e3a959133c246cc32251cb198923c.webp?v=1763001785","width":2000},{"alt":null,"id":26359969972323,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baaf0a03bbc61174feaedcbf386dbfc75cde407a.webp?v=1763001785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baaf0a03bbc61174feaedcbf386dbfc75cde407a.webp?v=1763001785","width":2000},{"alt":null,"id":26359970201699,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7021b0a9405c74565714f59709bb740adfd36ed9.webp?v=1763001786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7021b0a9405c74565714f59709bb740adfd36ed9.webp?v=1763001786","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43835113013347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC05","requires_shipping":true,"taxable":true,"featured_image":{"id":34794548887651,"product_id":7922067603555,"position":4,"created_at":"2025-11-13T10:42:58+08:00","updated_at":"2025-11-13T10:43:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780","variant_ids":[43835113013347]},"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-TOC05","featured_media":{"alt":null,"id":26359967875171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43835113013347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC05","requires_shipping":true,"taxable":true,"featured_image":{"id":34794548887651,"product_id":7922067603555,"position":4,"created_at":"2025-11-13T10:42:58+08:00","updated_at":"2025-11-13T10:43:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780","variant_ids":[43835113013347]},"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-TOC05","featured_media":{"alt":null,"id":26359967875171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd308e3d464b60ccc863e5b68e9ed0ef51d7ae18.webp?v=1763001780"}},"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: "停產" }