Shopify.queue = []; $product = {"id":1432839094371,"title":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列","handle":"iphone-xs-solidsuit","description":"","published_at":"2018-10-07T00:16:35+08:00","created_at":"2018-09-26T11:56:45+08:00","vendor":"愛進化科技股份有限公司","type":"SolidSuit","tags":["20%","25%","30%","35%","40%","45%","45degree","50%","brand-Apple","device-iphone XS","dropdownCollection-SolidSuit","dropdownDevice-Apple iPhone XS","iPhone XS","member","quickbuy","reseller","reseller-asus","Top50"],"price":73000,"price_min":73000,"price_max":98000,"available":true,"price_varies":true,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":12609877377123,"title":"橡木紋","option1":"橡木紋","option2":null,"option3":null,"sku":"SSA0106458","requires_shipping":true,"taxable":true,"featured_image":{"id":3963507769443,"product_id":1432839094371,"position":1,"created_at":"2018-10-05T19:02:16+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_1608e948-5623-4ae4-9c06-a66ce9aa8f74.png?v=1630574440","variant_ids":[12609877377123]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 橡木紋","public_title":"橡木紋","options":["橡木紋"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-1061,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286685795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_1608e948-5623-4ae4-9c06-a66ce9aa8f74.png?v=1630574440"}}},{"id":12609877409891,"title":"胡桃木紋-棕色 \/ 黑","option1":"胡桃木紋-棕色 \/ 黑","option2":null,"option3":null,"sku":"SSA0108459","requires_shipping":true,"taxable":true,"featured_image":{"id":3963506688099,"product_id":1432839094371,"position":2,"created_at":"2018-10-05T19:02:05+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_dark_16f4894f-86e6-4d28-9739-aeb87ac56f8d.png?v=1630574440","variant_ids":[12609877409891]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 胡桃木紋-棕色 \/ 黑","public_title":"胡桃木紋-棕色 \/ 黑","options":["胡桃木紋-棕色 \/ 黑"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-490,"inventory_management":null,"inventory_policy":"continue","barcode":null,"featured_media":{"alt":null,"id":967286587491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_dark_16f4894f-86e6-4d28-9739-aeb87ac56f8d.png?v=1630574440"}}},{"id":12609877442659,"title":"胡桃木紋-杏色 \/ 白","option1":"胡桃木紋-杏色 \/ 白","option2":null,"option3":null,"sku":"SSA0108460","requires_shipping":true,"taxable":true,"featured_image":{"id":3963507277923,"product_id":1432839094371,"position":3,"created_at":"2018-10-05T19:02:10+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_light_a7c5e765-73e4-40b5-b1fb-501e9415b652.png?v=1630574440","variant_ids":[12609877442659]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 胡桃木紋-杏色 \/ 白","public_title":"胡桃木紋-杏色 \/ 白","options":["胡桃木紋-杏色 \/ 白"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-467,"inventory_management":null,"inventory_policy":"continue","barcode":null,"featured_media":{"alt":null,"id":967286620259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_light_a7c5e765-73e4-40b5-b1fb-501e9415b652.png?v=1630574440"}}},{"id":12609877475427,"title":"皮革","option1":"皮革","option2":null,"option3":null,"sku":"SSA0106461","requires_shipping":true,"taxable":true,"featured_image":{"id":3963507605603,"product_id":1432839094371,"position":4,"created_at":"2018-10-05T19:02:13+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/leather_iX_ac7267be-4126-4ff2-afeb-8b6ed74f8317.png?v=1630574440","variant_ids":[12609877475427]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 皮革","public_title":"皮革","options":["皮革"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-317,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286653027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/leather_iX_ac7267be-4126-4ff2-afeb-8b6ed74f8317.png?v=1630574440"}}},{"id":12609877508195,"title":"碳纖維","option1":"碳纖維","option2":null,"option3":null,"sku":"SSA0106449","requires_shipping":true,"taxable":true,"featured_image":{"id":3963504787555,"product_id":1432839094371,"position":5,"created_at":"2018-10-05T19:01:54+08:00","updated_at":"2020-05-26T12:22:00+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-04_f5deae4c-793b-468b-a028-666472f0d0c6.png?v=1590466920","variant_ids":[12609877508195]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 碳纖維","public_title":"碳纖維","options":["碳纖維"],"price":83000,"weight":100,"compare_at_price":null,"inventory_quantity":-2179,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286489187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-04_f5deae4c-793b-468b-a028-666472f0d0c6.png?v=1590466920"}}},{"id":12609877540963,"title":"經典黑","option1":"經典黑","option2":null,"option3":null,"sku":"SSA0106452","requires_shipping":true,"taxable":true,"featured_image":{"id":3963502854243,"product_id":1432839094371,"position":6,"created_at":"2018-10-05T19:01:44+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-01_75db98b6-3aa3-41d2-9fdc-e34ad443a1d5.png?v=1630574440","variant_ids":[12609877540963]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 經典黑","public_title":"經典黑","options":["經典黑"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-2867,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286390883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-01_75db98b6-3aa3-41d2-9fdc-e34ad443a1d5.png?v=1630574440"}}},{"id":12609877606499,"title":"經典白","option1":"經典白","option2":null,"option3":null,"sku":"SSA0106453","requires_shipping":true,"taxable":true,"featured_image":{"id":3963503902819,"product_id":1432839094371,"position":7,"created_at":"2018-10-05T19:01:50+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-03_559b2750-47b5-4ce0-9e7c-b8110de3e655.png?v=1630574440","variant_ids":[12609877606499]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 經典白","public_title":"經典白","options":["經典白"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-573,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286456419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-03_559b2750-47b5-4ce0-9e7c-b8110de3e655.png?v=1630574440"}}},{"id":12609877672035,"title":"髮絲紋","option1":"髮絲紋","option2":null,"option3":null,"sku":"SSA0106468","requires_shipping":true,"taxable":true,"featured_image":{"id":3963505279075,"product_id":1432839094371,"position":8,"created_at":"2018-10-05T19:01:56+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-05_733fb119-d699-4fa6-b0e8-22e278578e6e.png?v=1630574440","variant_ids":[12609877672035]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 髮絲紋","public_title":"髮絲紋","options":["髮絲紋"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-636,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286521955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-05_733fb119-d699-4fa6-b0e8-22e278578e6e.png?v=1630574440"}}},{"id":12609877704803,"title":"\b櫻花粉","option1":"\b櫻花粉","option2":null,"option3":null,"sku":"SSA0106457","requires_shipping":true,"taxable":true,"featured_image":{"id":3980199723107,"product_id":1432839094371,"position":9,"created_at":"2018-10-11T10:19:42+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":600,"height":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_b1a98341-3dd0-48ba-a49d-1886315d938e.png?v=1630574440","variant_ids":[12609877704803]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - \b櫻花粉","public_title":"\b櫻花粉","options":["\b櫻花粉"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-807,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":969924214883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":600,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_b1a98341-3dd0-48ba-a49d-1886315d938e.png?v=1630574440"}}},{"id":39537944428643,"title":"海軍藍","option1":"海軍藍","option2":null,"option3":null,"sku":"SSA01064J5","requires_shipping":true,"taxable":true,"featured_image":{"id":28519084458083,"product_id":1432839094371,"position":11,"created_at":"2021-09-06T11:35:29+08:00","updated_at":"2021-09-06T11:35:29+08:00","alt":null,"width":1999,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01084J5_9ffa858c-3e23-4ff4-b80a-a0688cc8c4ad.png?v=1630899329","variant_ids":[39537944428643]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 海軍藍","public_title":"海軍藍","options":["海軍藍"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-205,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20831977930851,"position":11,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01084J5_9ffa858c-3e23-4ff4-b80a-a0688cc8c4ad.png?v=1630899329"}}},{"id":39533871300707,"title":"暗夜綠","option1":"暗夜綠","option2":null,"option3":null,"sku":"SSA01064K8","requires_shipping":true,"taxable":true,"featured_image":{"id":28509377003619,"product_id":1432839094371,"position":12,"created_at":"2021-09-02T17:20:40+08:00","updated_at":"2021-09-02T17:20:40+08:00","alt":null,"width":1999,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-X_5f3eea6c-6c93-4af9-8532-53b4a58f27b9.png?v=1630574440","variant_ids":[39533871300707]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS系列 - 暗夜綠","public_title":"暗夜綠","options":["暗夜綠"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-107,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20821808087139,"position":12,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-X_5f3eea6c-6c93-4af9-8532-53b4a58f27b9.png?v=1630574440"}}}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_1608e948-5623-4ae4-9c06-a66ce9aa8f74.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_dark_16f4894f-86e6-4d28-9739-aeb87ac56f8d.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_light_a7c5e765-73e4-40b5-b1fb-501e9415b652.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/leather_iX_ac7267be-4126-4ff2-afeb-8b6ed74f8317.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-04_f5deae4c-793b-468b-a028-666472f0d0c6.png?v=1590466920","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-01_75db98b6-3aa3-41d2-9fdc-e34ad443a1d5.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-03_559b2750-47b5-4ce0-9e7c-b8110de3e655.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-05_733fb119-d699-4fa6-b0e8-22e278578e6e.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_b1a98341-3dd0-48ba-a49d-1886315d938e.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/fff38ffca88c8dc85096e8c933f3ac2d_ad5a9e76-090c-4db2-a776-30c2610f352a.png?v=1630574440","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01084J5_9ffa858c-3e23-4ff4-b80a-a0688cc8c4ad.png?v=1630899329","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-X_5f3eea6c-6c93-4af9-8532-53b4a58f27b9.png?v=1630574440"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_1608e948-5623-4ae4-9c06-a66ce9aa8f74.png?v=1630574440","options":["Color"],"media":[{"alt":null,"id":967286685795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_1608e948-5623-4ae4-9c06-a66ce9aa8f74.png?v=1630574440"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_1608e948-5623-4ae4-9c06-a66ce9aa8f74.png?v=1630574440","width":1500},{"alt":null,"id":967286587491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_dark_16f4894f-86e6-4d28-9739-aeb87ac56f8d.png?v=1630574440"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_dark_16f4894f-86e6-4d28-9739-aeb87ac56f8d.png?v=1630574440","width":1500},{"alt":null,"id":967286620259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_light_a7c5e765-73e4-40b5-b1fb-501e9415b652.png?v=1630574440"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_light_a7c5e765-73e4-40b5-b1fb-501e9415b652.png?v=1630574440","width":1500},{"alt":null,"id":967286653027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/leather_iX_ac7267be-4126-4ff2-afeb-8b6ed74f8317.png?v=1630574440"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/leather_iX_ac7267be-4126-4ff2-afeb-8b6ed74f8317.png?v=1630574440","width":1500},{"alt":null,"id":967286489187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-04_f5deae4c-793b-468b-a028-666472f0d0c6.png?v=1590466920"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-04_f5deae4c-793b-468b-a028-666472f0d0c6.png?v=1590466920","width":1500},{"alt":null,"id":967286390883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-01_75db98b6-3aa3-41d2-9fdc-e34ad443a1d5.png?v=1630574440"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-01_75db98b6-3aa3-41d2-9fdc-e34ad443a1d5.png?v=1630574440","width":1500},{"alt":null,"id":967286456419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-03_559b2750-47b5-4ce0-9e7c-b8110de3e655.png?v=1630574440"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-03_559b2750-47b5-4ce0-9e7c-b8110de3e655.png?v=1630574440","width":1500},{"alt":null,"id":967286521955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-05_733fb119-d699-4fa6-b0e8-22e278578e6e.png?v=1630574440"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-05_733fb119-d699-4fa6-b0e8-22e278578e6e.png?v=1630574440","width":1500},{"alt":null,"id":969924214883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":600,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_b1a98341-3dd0-48ba-a49d-1886315d938e.png?v=1630574440"},"aspect_ratio":1.0,"height":600,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_b1a98341-3dd0-48ba-a49d-1886315d938e.png?v=1630574440","width":600},{"alt":null,"id":20664828821603,"position":10,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/fff38ffca88c8dc85096e8c933f3ac2d_ad5a9e76-090c-4db2-a776-30c2610f352a.png?v=1630574440"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/fff38ffca88c8dc85096e8c933f3ac2d_ad5a9e76-090c-4db2-a776-30c2610f352a.png?v=1630574440","width":1999},{"alt":null,"id":20831977930851,"position":11,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01084J5_9ffa858c-3e23-4ff4-b80a-a0688cc8c4ad.png?v=1630899329"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01084J5_9ffa858c-3e23-4ff4-b80a-a0688cc8c4ad.png?v=1630899329","width":1999},{"alt":null,"id":20821808087139,"position":12,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-X_5f3eea6c-6c93-4af9-8532-53b4a58f27b9.png?v=1630574440"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-X_5f3eea6c-6c93-4af9-8532-53b4a58f27b9.png?v=1630574440","width":1999}],"content":""}; $bumper = null; if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages([productImg, bumperColors[currentVariant]],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages([bumperColors[currentVariant], productImg],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); } $(function() { // switch device $('#select-device').on('change', function() { window.location.href = $(this).val(); }); // listen quantity changed $('input[name=quantity]').on('change', function() { var quantity = $(this).val(); }); // checkbox action $("input:checkbox").on('click', function() { // in the handler, 'this' refers to the box clicked on var $box = $(this); if ($box.is(":checked")) { // the name of the box is retrieved using the .attr() method // as it is assumed and expected to be immutable var group = "input:checkbox[name='" + $box.attr("name") + "']"; // the checked state of the group/box on the other hand will change // and the current value is retrieved using .prop() method $(group).prop("checked", false); $box.prop("checked", true); } else { $box.prop("checked", false); } }); // add to cart $("#AddToCart-product-template").click(function(e){ var elem; var addition = {}; Shopify.queue = []; e.preventDefault(); // elem = $(this); // $(elem).prop("disabled", true); var original_variant_id = $('.product-form').serialize().split('&')[0].split('=')[1]; var original_variant_quantity = $('.product-form').serialize().split('&')[1].split('=')[1]; addition.id = original_variant_id; addition.quantity = original_variant_quantity; Shopify.queue.push(addition); $.each($("input[name^='recommend[']:checked"), function(i, v) { var addition = {}; var name = $(this).attr('name'); var quantity = $('select[name="' + name + '"]').val(); addition.id = $(this).val(); addition.quantity = quantity; Shopify.queue.push(addition); }); Shopify.moveAlong(); }); Shopify.moveAlong = function() { // If we still have requests in the queue, let's process the next one. // console.log(Shopify.queue); if (Shopify.queue.length) { var request = Shopify.queue.shift(); Shopify.addItem(request.id, request.quantity, Shopify.moveAlong); } // If the queue is empty, take care of the main item else { $.getJSON('/cart.js', function(cart) { $('#CartCount').removeClass('hide'); $('#item-count').text(cart.item_count); toastr.options = { "closeButton": false, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-bottom-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" }; toastr["success"]("成功加入購物車"); }); } }; });
// 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: "停產" }