$product = {"id":7922023399523,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 哈密呱果凍貓","handle":"iphone-12-pro-mod-nx-magsafe-toc10","description":null,"published_at":"2025-11-14T08:11:25+08:00","created_at":"2025-11-13T10:33:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 12 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":43834943406179,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794372464739,"product_id":7922023399523,"position":6,"created_at":"2025-11-13T10:33:41+08:00","updated_at":"2025-11-13T10:33:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223","variant_ids":[43834943406179]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 哈密呱果凍貓 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-TOC10","featured_media":{"alt":null,"id":26359791485027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834946879587,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794371580003,"product_id":7922023399523,"position":4,"created_at":"2025-11-13T10:33:40+08:00","updated_at":"2025-11-13T10:33:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8064e6a7cc8454fc3c5eaeb26a0e9d2638956ec.webp?v=1763001222","variant_ids":[43834946879587]},"available":true,"name":"iPhone 12 \/ 12 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":"MPB01185J5-TOC10","featured_media":{"alt":null,"id":26359790600291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8064e6a7cc8454fc3c5eaeb26a0e9d2638956ec.webp?v=1763001222"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834946912355,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794371416163,"product_id":7922023399523,"position":3,"created_at":"2025-11-13T10:33:39+08:00","updated_at":"2025-11-13T10:33:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c991d3e7fb2d2e28247ebcaadacfc5f4e63635.webp?v=1763001221","variant_ids":[43834946912355]},"available":true,"name":"iPhone 12 \/ 12 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":"MPB0118504-TOC10","featured_media":{"alt":null,"id":26359790436451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c991d3e7fb2d2e28247ebcaadacfc5f4e63635.webp?v=1763001221"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834947010659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794373775459,"product_id":7922023399523,"position":11,"created_at":"2025-11-13T10:33:45+08:00","updated_at":"2025-11-13T10:33:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d259b8d9a68a8df11fb4272ea65b3ede380ed9a.webp?v=1763001227","variant_ids":[43834947010659]},"available":true,"name":"iPhone 12 \/ 12 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":"MPB0118524-TOC10","featured_media":{"alt":null,"id":26359792762979,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d259b8d9a68a8df11fb4272ea65b3ede380ed9a.webp?v=1763001227"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834947043427,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794371121251,"product_id":7922023399523,"position":1,"created_at":"2025-11-13T10:33:38+08:00","updated_at":"2025-11-13T10:33:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408c7676051e0c5b2218710f2d425339177a2e4e.webp?v=1763001220","variant_ids":[43834947043427]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 哈密呱果凍貓 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-TOC10","featured_media":{"alt":null,"id":26359790010467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408c7676051e0c5b2218710f2d425339177a2e4e.webp?v=1763001220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408c7676051e0c5b2218710f2d425339177a2e4e.webp?v=1763001220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5285a59ea952c624edc9068bb069a3e87c2d9136.webp?v=1763001220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c991d3e7fb2d2e28247ebcaadacfc5f4e63635.webp?v=1763001221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8064e6a7cc8454fc3c5eaeb26a0e9d2638956ec.webp?v=1763001222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee21b5a72868365fbbcc7b41d664b35fc548b82.webp?v=1763001222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a579a2c801464e46d5e9455d6f2c30d6803708bb.webp?v=1763001224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72aa04648415aa93f8d5e2f98f2f0cdcb4ba4248.webp?v=1763001224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b006ecb227a1022e5ecb83b2fdb21d6d15c0e885.webp?v=1763001225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fa91d7febdb8915ebe6409c6714fe2710a3a388.webp?v=1763001226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d259b8d9a68a8df11fb4272ea65b3ede380ed9a.webp?v=1763001227"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408c7676051e0c5b2218710f2d425339177a2e4e.webp?v=1763001220","options":["color"],"media":[{"alt":null,"id":26359790010467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408c7676051e0c5b2218710f2d425339177a2e4e.webp?v=1763001220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408c7676051e0c5b2218710f2d425339177a2e4e.webp?v=1763001220","width":2000},{"alt":null,"id":26359790239843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5285a59ea952c624edc9068bb069a3e87c2d9136.webp?v=1763001220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5285a59ea952c624edc9068bb069a3e87c2d9136.webp?v=1763001220","width":2000},{"alt":null,"id":26359790436451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c991d3e7fb2d2e28247ebcaadacfc5f4e63635.webp?v=1763001221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c991d3e7fb2d2e28247ebcaadacfc5f4e63635.webp?v=1763001221","width":2000},{"alt":null,"id":26359790600291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8064e6a7cc8454fc3c5eaeb26a0e9d2638956ec.webp?v=1763001222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8064e6a7cc8454fc3c5eaeb26a0e9d2638956ec.webp?v=1763001222","width":2000},{"alt":null,"id":26359790764131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee21b5a72868365fbbcc7b41d664b35fc548b82.webp?v=1763001222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee21b5a72868365fbbcc7b41d664b35fc548b82.webp?v=1763001222","width":2000},{"alt":null,"id":26359791485027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223","width":2000},{"alt":null,"id":26359791681635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a579a2c801464e46d5e9455d6f2c30d6803708bb.webp?v=1763001224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a579a2c801464e46d5e9455d6f2c30d6803708bb.webp?v=1763001224","width":2000},{"alt":null,"id":26359791878243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72aa04648415aa93f8d5e2f98f2f0cdcb4ba4248.webp?v=1763001224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72aa04648415aa93f8d5e2f98f2f0cdcb4ba4248.webp?v=1763001224","width":2000},{"alt":null,"id":26359792173155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b006ecb227a1022e5ecb83b2fdb21d6d15c0e885.webp?v=1763001225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b006ecb227a1022e5ecb83b2fdb21d6d15c0e885.webp?v=1763001225","width":2000},{"alt":null,"id":26359792500835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fa91d7febdb8915ebe6409c6714fe2710a3a388.webp?v=1763001226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fa91d7febdb8915ebe6409c6714fe2710a3a388.webp?v=1763001226","width":2000},{"alt":null,"id":26359792762979,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d259b8d9a68a8df11fb4272ea65b3ede380ed9a.webp?v=1763001227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d259b8d9a68a8df11fb4272ea65b3ede380ed9a.webp?v=1763001227","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834943406179,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794372464739,"product_id":7922023399523,"position":6,"created_at":"2025-11-13T10:33:41+08:00","updated_at":"2025-11-13T10:33:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223","variant_ids":[43834943406179]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 哈密呱果凍貓 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-TOC10","featured_media":{"alt":null,"id":26359791485027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834946879587,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794371580003,"product_id":7922023399523,"position":4,"created_at":"2025-11-13T10:33:40+08:00","updated_at":"2025-11-13T10:33:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8064e6a7cc8454fc3c5eaeb26a0e9d2638956ec.webp?v=1763001222","variant_ids":[43834946879587]},"available":true,"name":"iPhone 12 \/ 12 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":"MPB01185J5-TOC10","featured_media":{"alt":null,"id":26359790600291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8064e6a7cc8454fc3c5eaeb26a0e9d2638956ec.webp?v=1763001222"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834946912355,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794371416163,"product_id":7922023399523,"position":3,"created_at":"2025-11-13T10:33:39+08:00","updated_at":"2025-11-13T10:33:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c991d3e7fb2d2e28247ebcaadacfc5f4e63635.webp?v=1763001221","variant_ids":[43834946912355]},"available":true,"name":"iPhone 12 \/ 12 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":"MPB0118504-TOC10","featured_media":{"alt":null,"id":26359790436451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c991d3e7fb2d2e28247ebcaadacfc5f4e63635.webp?v=1763001221"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834947010659,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794373775459,"product_id":7922023399523,"position":11,"created_at":"2025-11-13T10:33:45+08:00","updated_at":"2025-11-13T10:33:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d259b8d9a68a8df11fb4272ea65b3ede380ed9a.webp?v=1763001227","variant_ids":[43834947010659]},"available":true,"name":"iPhone 12 \/ 12 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":"MPB0118524-TOC10","featured_media":{"alt":null,"id":26359792762979,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d259b8d9a68a8df11fb4272ea65b3ede380ed9a.webp?v=1763001227"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834947043427,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794371121251,"product_id":7922023399523,"position":1,"created_at":"2025-11-13T10:33:38+08:00","updated_at":"2025-11-13T10:33:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408c7676051e0c5b2218710f2d425339177a2e4e.webp?v=1763001220","variant_ids":[43834947043427]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 哈密呱果凍貓 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118569-TOC10","featured_media":{"alt":null,"id":26359790010467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408c7676051e0c5b2218710f2d425339177a2e4e.webp?v=1763001220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834943406179,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC10","requires_shipping":true,"taxable":true,"featured_image":{"id":34794372464739,"product_id":7922023399523,"position":6,"created_at":"2025-11-13T10:33:41+08:00","updated_at":"2025-11-13T10:33:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223","variant_ids":[43834943406179]},"available":true,"name":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 哈密呱果凍貓 - Lavender","public_title":"Lavender","options":["Lavender"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01185C1-TOC10","featured_media":{"alt":null,"id":26359791485027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56eb8ec9f9841978726ba94630471dd436cfb4cd.webp?v=1763001223"}},"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: "停產" }