$product = {"id":7981699760227,"title":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常","handle":"iphone-12-mini-solidsuit-classic-magsafe-two03","description":null,"published_at":"2026-03-19T10:04:12+08:00","created_at":"2026-03-18T14:27:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-twodeerman","device-iPhone 12 Mini","merge","reseller-twodeerman"],"price":125000,"price_min":125000,"price_max":125000,"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":44066651373667,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269699171,"product_id":7981699760227,"position":3,"created_at":"2026-03-18T14:28:15+08:00","updated_at":"2026-03-18T14:28:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297","variant_ids":[44066651373667]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840D-TWO03","featured_media":{"alt":null,"id":27034583040099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066660221027,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500270223459,"product_id":7981699760227,"position":5,"created_at":"2026-03-18T14:28:17+08:00","updated_at":"2026-03-18T14:28:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fff88a3c139082379a3f66be18d9a797eaa4ecc.webp?v=1773815299","variant_ids":[44066660221027]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-TWO03","featured_media":{"alt":null,"id":27034583564387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fff88a3c139082379a3f66be18d9a797eaa4ecc.webp?v=1773815299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066660515939,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269469795,"product_id":7981699760227,"position":2,"created_at":"2026-03-18T14:28:15+08:00","updated_at":"2026-03-18T14:28:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3ea5750132d7fb67f2ade6897e19a2760ea73d.webp?v=1773815297","variant_ids":[44066660515939]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-TWO03","featured_media":{"alt":null,"id":27034582810723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3ea5750132d7fb67f2ade6897e19a2760ea73d.webp?v=1773815297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066660778083,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269207651,"product_id":7981699760227,"position":1,"created_at":"2026-03-18T14:28:14+08:00","updated_at":"2026-03-18T14:28:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d15c7b7ba6733c057a7a229fa677a023d55569e.webp?v=1773815296","variant_ids":[44066660778083]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-TWO03","featured_media":{"alt":null,"id":27034582548579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d15c7b7ba6733c057a7a229fa677a023d55569e.webp?v=1773815296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066661072995,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500270583907,"product_id":7981699760227,"position":7,"created_at":"2026-03-18T14:28:18+08:00","updated_at":"2026-03-18T14:28:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef5cfba8e80e112b67f78981c1fd7873e42d082.webp?v=1773815300","variant_ids":[44066661072995]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-TWO03","featured_media":{"alt":null,"id":27034583892067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef5cfba8e80e112b67f78981c1fd7873e42d082.webp?v=1773815300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066661367907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269961315,"product_id":7981699760227,"position":4,"created_at":"2026-03-18T14:28:16+08:00","updated_at":"2026-03-18T14:28:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c5d55d3d6cc9686ce40a04943d9e70fb55c019.webp?v=1773815298","variant_ids":[44066661367907]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-TWO03","featured_media":{"alt":null,"id":27034583302243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c5d55d3d6cc9686ce40a04943d9e70fb55c019.webp?v=1773815298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d15c7b7ba6733c057a7a229fa677a023d55569e.webp?v=1773815296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3ea5750132d7fb67f2ade6897e19a2760ea73d.webp?v=1773815297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c5d55d3d6cc9686ce40a04943d9e70fb55c019.webp?v=1773815298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fff88a3c139082379a3f66be18d9a797eaa4ecc.webp?v=1773815299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060c29b4c8429705d67150522ef8561aaffab6ee.webp?v=1773815299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef5cfba8e80e112b67f78981c1fd7873e42d082.webp?v=1773815300"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d15c7b7ba6733c057a7a229fa677a023d55569e.webp?v=1773815296","options":["color"],"media":[{"alt":null,"id":27034582548579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d15c7b7ba6733c057a7a229fa677a023d55569e.webp?v=1773815296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d15c7b7ba6733c057a7a229fa677a023d55569e.webp?v=1773815296","width":2000},{"alt":null,"id":27034582810723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3ea5750132d7fb67f2ade6897e19a2760ea73d.webp?v=1773815297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3ea5750132d7fb67f2ade6897e19a2760ea73d.webp?v=1773815297","width":2000},{"alt":null,"id":27034583040099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297","width":2000},{"alt":null,"id":27034583302243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c5d55d3d6cc9686ce40a04943d9e70fb55c019.webp?v=1773815298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c5d55d3d6cc9686ce40a04943d9e70fb55c019.webp?v=1773815298","width":2000},{"alt":null,"id":27034583564387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fff88a3c139082379a3f66be18d9a797eaa4ecc.webp?v=1773815299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fff88a3c139082379a3f66be18d9a797eaa4ecc.webp?v=1773815299","width":2000},{"alt":null,"id":27034583793763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060c29b4c8429705d67150522ef8561aaffab6ee.webp?v=1773815299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/060c29b4c8429705d67150522ef8561aaffab6ee.webp?v=1773815299","width":2000},{"alt":null,"id":27034583892067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef5cfba8e80e112b67f78981c1fd7873e42d082.webp?v=1773815300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef5cfba8e80e112b67f78981c1fd7873e42d082.webp?v=1773815300","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44066651373667,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269699171,"product_id":7981699760227,"position":3,"created_at":"2026-03-18T14:28:15+08:00","updated_at":"2026-03-18T14:28:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297","variant_ids":[44066651373667]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840D-TWO03","featured_media":{"alt":null,"id":27034583040099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066660221027,"title":"Parakeet Green","option1":"Parakeet Green","option2":null,"option3":null,"sku":"MST011840E-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500270223459,"product_id":7981699760227,"position":5,"created_at":"2026-03-18T14:28:17+08:00","updated_at":"2026-03-18T14:28:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fff88a3c139082379a3f66be18d9a797eaa4ecc.webp?v=1773815299","variant_ids":[44066660221027]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Parakeet Green","public_title":"Parakeet Green","options":["Parakeet Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840E-TWO03","featured_media":{"alt":null,"id":27034583564387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fff88a3c139082379a3f66be18d9a797eaa4ecc.webp?v=1773815299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066660515939,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269469795,"product_id":7981699760227,"position":2,"created_at":"2026-03-18T14:28:15+08:00","updated_at":"2026-03-18T14:28:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3ea5750132d7fb67f2ade6897e19a2760ea73d.webp?v=1773815297","variant_ids":[44066660515939]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-TWO03","featured_media":{"alt":null,"id":27034582810723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3ea5750132d7fb67f2ade6897e19a2760ea73d.webp?v=1773815297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066660778083,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269207651,"product_id":7981699760227,"position":1,"created_at":"2026-03-18T14:28:14+08:00","updated_at":"2026-03-18T14:28:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d15c7b7ba6733c057a7a229fa677a023d55569e.webp?v=1773815296","variant_ids":[44066660778083]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-TWO03","featured_media":{"alt":null,"id":27034582548579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d15c7b7ba6733c057a7a229fa677a023d55569e.webp?v=1773815296"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066661072995,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500270583907,"product_id":7981699760227,"position":7,"created_at":"2026-03-18T14:28:18+08:00","updated_at":"2026-03-18T14:28:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef5cfba8e80e112b67f78981c1fd7873e42d082.webp?v=1773815300","variant_ids":[44066661072995]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-TWO03","featured_media":{"alt":null,"id":27034583892067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef5cfba8e80e112b67f78981c1fd7873e42d082.webp?v=1773815300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44066661367907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269961315,"product_id":7981699760227,"position":4,"created_at":"2026-03-18T14:28:16+08:00","updated_at":"2026-03-18T14:28:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c5d55d3d6cc9686ce40a04943d9e70fb55c019.webp?v=1773815298","variant_ids":[44066661367907]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-TWO03","featured_media":{"alt":null,"id":27034583302243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c5d55d3d6cc9686ce40a04943d9e70fb55c019.webp?v=1773815298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44066651373667,"title":"Bordeaux Red","option1":"Bordeaux Red","option2":null,"option3":null,"sku":"MST011840D-TWO03","requires_shipping":true,"taxable":true,"featured_image":{"id":35500269699171,"product_id":7981699760227,"position":3,"created_at":"2026-03-18T14:28:15+08:00","updated_at":"2026-03-18T14:28:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297","variant_ids":[44066651373667]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) 鹿人 Twodeerman 荒野牛仔日常 - Bordeaux Red","public_title":"Bordeaux Red","options":["Bordeaux Red"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840D-TWO03","featured_media":{"alt":null,"id":27034583040099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e2e35d7905cf05c2b22b65750ef9eef5a3ed152.webp?v=1773815297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }