$product = {"id":7921955668067,"title":"iPhone 12 \/ 12 Pro Mod NX (MagSafe 兼容) TOCOROCOMUGI 草莓聖代貓","handle":"iphone-12-pro-mod-nx-magsafe-toc04","description":null,"published_at":"2025-11-14T08:23:24+08:00","created_at":"2025-11-13T10:16:56+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":43834678771811,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794083254371,"product_id":7921955668067,"position":3,"created_at":"2025-11-13T10:17:03+08:00","updated_at":"2025-11-13T10:17:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225","variant_ids":[43834678771811]},"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-TOC04","featured_media":{"alt":null,"id":26359502930019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834681884771,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794085023843,"product_id":7921955668067,"position":11,"created_at":"2025-11-13T10:17:10+08:00","updated_at":"2025-11-13T10:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4bac9a3f8a1ca8fd9dc3d6cde463f978ddd7db.webp?v=1763000232","variant_ids":[43834681884771]},"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-TOC04","featured_media":{"alt":null,"id":26359504699491,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4bac9a3f8a1ca8fd9dc3d6cde463f978ddd7db.webp?v=1763000232"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834681917539,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794084237411,"product_id":7921955668067,"position":7,"created_at":"2025-11-13T10:17:06+08:00","updated_at":"2025-11-13T10:17:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23826df073bbde70b6b7a3ae183478748c12a24.webp?v=1763000229","variant_ids":[43834681917539]},"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-TOC04","featured_media":{"alt":null,"id":26359503913059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23826df073bbde70b6b7a3ae183478748c12a24.webp?v=1763000229"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834682015843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794083975267,"product_id":7921955668067,"position":6,"created_at":"2025-11-13T10:17:06+08:00","updated_at":"2025-11-13T10:17:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96efe8317b798eedfbddb8fc9a39a6fdfa09d97c.webp?v=1763000228","variant_ids":[43834682015843]},"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-TOC04","featured_media":{"alt":null,"id":26359503716451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96efe8317b798eedfbddb8fc9a39a6fdfa09d97c.webp?v=1763000228"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834682048611,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794083582051,"product_id":7921955668067,"position":4,"created_at":"2025-11-13T10:17:04+08:00","updated_at":"2025-11-13T10:17:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea738e62b08934ffe8493900ee14239b8d192c1.webp?v=1763000227","variant_ids":[43834682048611]},"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-TOC04","featured_media":{"alt":null,"id":26359503224931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea738e62b08934ffe8493900ee14239b8d192c1.webp?v=1763000227"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a55c5642c7ba9ec3ca16911c8c9a7480f2d636.webp?v=1763000223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/268d1371602fa27c8475ec385d4bc2ed0bf8702d.webp?v=1763000224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea738e62b08934ffe8493900ee14239b8d192c1.webp?v=1763000227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d7ba8f6fb038a8a4ca4372f8687b5f532ae0cb.webp?v=1763000227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96efe8317b798eedfbddb8fc9a39a6fdfa09d97c.webp?v=1763000228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23826df073bbde70b6b7a3ae183478748c12a24.webp?v=1763000229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af92b97cb782abfdc1231fff2cd5a04dee33677.webp?v=1763000229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13a3565df840025f6b8407d164681556bc128e2.webp?v=1763000230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee9e9e9d292bd626b2ccfc73ac25814281f29ac4.webp?v=1763000231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4bac9a3f8a1ca8fd9dc3d6cde463f978ddd7db.webp?v=1763000232"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a55c5642c7ba9ec3ca16911c8c9a7480f2d636.webp?v=1763000223","options":["color"],"media":[{"alt":null,"id":26359502274659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a55c5642c7ba9ec3ca16911c8c9a7480f2d636.webp?v=1763000223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a55c5642c7ba9ec3ca16911c8c9a7480f2d636.webp?v=1763000223","width":2000},{"alt":null,"id":26359502733411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/268d1371602fa27c8475ec385d4bc2ed0bf8702d.webp?v=1763000224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/268d1371602fa27c8475ec385d4bc2ed0bf8702d.webp?v=1763000224","width":2000},{"alt":null,"id":26359502930019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225","width":2000},{"alt":null,"id":26359503224931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea738e62b08934ffe8493900ee14239b8d192c1.webp?v=1763000227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea738e62b08934ffe8493900ee14239b8d192c1.webp?v=1763000227","width":2000},{"alt":null,"id":26359503552611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d7ba8f6fb038a8a4ca4372f8687b5f532ae0cb.webp?v=1763000227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d7ba8f6fb038a8a4ca4372f8687b5f532ae0cb.webp?v=1763000227","width":2000},{"alt":null,"id":26359503716451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96efe8317b798eedfbddb8fc9a39a6fdfa09d97c.webp?v=1763000228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96efe8317b798eedfbddb8fc9a39a6fdfa09d97c.webp?v=1763000228","width":2000},{"alt":null,"id":26359503913059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23826df073bbde70b6b7a3ae183478748c12a24.webp?v=1763000229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23826df073bbde70b6b7a3ae183478748c12a24.webp?v=1763000229","width":2000},{"alt":null,"id":26359504076899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af92b97cb782abfdc1231fff2cd5a04dee33677.webp?v=1763000229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af92b97cb782abfdc1231fff2cd5a04dee33677.webp?v=1763000229","width":2000},{"alt":null,"id":26359504273507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13a3565df840025f6b8407d164681556bc128e2.webp?v=1763000230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13a3565df840025f6b8407d164681556bc128e2.webp?v=1763000230","width":2000},{"alt":null,"id":26359504568419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee9e9e9d292bd626b2ccfc73ac25814281f29ac4.webp?v=1763000231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee9e9e9d292bd626b2ccfc73ac25814281f29ac4.webp?v=1763000231","width":2000},{"alt":null,"id":26359504699491,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4bac9a3f8a1ca8fd9dc3d6cde463f978ddd7db.webp?v=1763000232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4bac9a3f8a1ca8fd9dc3d6cde463f978ddd7db.webp?v=1763000232","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834678771811,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794083254371,"product_id":7921955668067,"position":3,"created_at":"2025-11-13T10:17:03+08:00","updated_at":"2025-11-13T10:17:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225","variant_ids":[43834678771811]},"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-TOC04","featured_media":{"alt":null,"id":26359502930019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834681884771,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01185J5-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794085023843,"product_id":7921955668067,"position":11,"created_at":"2025-11-13T10:17:10+08:00","updated_at":"2025-11-13T10:17:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4bac9a3f8a1ca8fd9dc3d6cde463f978ddd7db.webp?v=1763000232","variant_ids":[43834681884771]},"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-TOC04","featured_media":{"alt":null,"id":26359504699491,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4bac9a3f8a1ca8fd9dc3d6cde463f978ddd7db.webp?v=1763000232"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834681917539,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0118504-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794084237411,"product_id":7921955668067,"position":7,"created_at":"2025-11-13T10:17:06+08:00","updated_at":"2025-11-13T10:17:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23826df073bbde70b6b7a3ae183478748c12a24.webp?v=1763000229","variant_ids":[43834681917539]},"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-TOC04","featured_media":{"alt":null,"id":26359503913059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23826df073bbde70b6b7a3ae183478748c12a24.webp?v=1763000229"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834682015843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118524-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794083975267,"product_id":7921955668067,"position":6,"created_at":"2025-11-13T10:17:06+08:00","updated_at":"2025-11-13T10:17:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96efe8317b798eedfbddb8fc9a39a6fdfa09d97c.webp?v=1763000228","variant_ids":[43834682015843]},"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-TOC04","featured_media":{"alt":null,"id":26359503716451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96efe8317b798eedfbddb8fc9a39a6fdfa09d97c.webp?v=1763000228"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43834682048611,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MPB0118569-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794083582051,"product_id":7921955668067,"position":4,"created_at":"2025-11-13T10:17:04+08:00","updated_at":"2025-11-13T10:17:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea738e62b08934ffe8493900ee14239b8d192c1.webp?v=1763000227","variant_ids":[43834682048611]},"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-TOC04","featured_media":{"alt":null,"id":26359503224931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea738e62b08934ffe8493900ee14239b8d192c1.webp?v=1763000227"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834678771811,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"MPB01185C1-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794083254371,"product_id":7921955668067,"position":3,"created_at":"2025-11-13T10:17:03+08:00","updated_at":"2025-11-13T10:17:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225","variant_ids":[43834678771811]},"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-TOC04","featured_media":{"alt":null,"id":26359502930019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/450be86b115b4c6d4af2300d8726ed5bb0ae224e.webp?v=1763000225"}},"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: "停產" }