Shopify.queue = []; $product = {"id":1432688001123,"title":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列","handle":"iphone-xs-max-solidsuit","description":"","published_at":"2018-10-07T00:16:52+08:00","created_at":"2018-09-26T00:32:58+08:00","vendor":"愛進化科技股份有限公司","type":"SolidSuit","tags":["20%","25%","30%","35%","40%","45%","45degree","50%","brand-Apple","device-iphone XS Max","dropdownCollection-SolidSuit","dropdownDevice-Apple iPhone XS Max","iPhone XS Max","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":12557321568355,"title":"橡木紋","option1":"橡木紋","option2":null,"option3":null,"sku":"SSA0108658","requires_shipping":true,"taxable":true,"featured_image":{"id":3963549745251,"product_id":1432688001123,"position":1,"created_at":"2018-10-05T19:06:20+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_bb702d87-3030-4988-9c54-edfa0a30d46d.png?v=1630574442","variant_ids":[12557321568355]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 橡木紋","public_title":"橡木紋","options":["橡木紋"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-1066,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967287308387,"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_bb702d87-3030-4988-9c54-edfa0a30d46d.png?v=1630574442"}}},{"id":12557321601123,"title":"胡桃木紋-棕色 \/ 黑","option1":"胡桃木紋-棕色 \/ 黑","option2":null,"option3":null,"sku":"SSA0108659","requires_shipping":true,"taxable":true,"featured_image":{"id":3963545747555,"product_id":1432688001123,"position":2,"created_at":"2018-10-05T19:05:59+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_dark_93a53bbb-0a17-43fa-b273-d06b53cac527.png?v=1630574442","variant_ids":[12557321601123]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 胡桃木紋-棕色 \/ 黑","public_title":"胡桃木紋-棕色 \/ 黑","options":["胡桃木紋-棕色 \/ 黑"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-545,"inventory_management":null,"inventory_policy":"continue","barcode":null,"featured_media":{"alt":null,"id":967287177315,"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_93a53bbb-0a17-43fa-b273-d06b53cac527.png?v=1630574442"}}},{"id":12557321633891,"title":"胡桃木紋-杏色 \/ 白","option1":"胡桃木紋-杏色 \/ 白","option2":null,"option3":null,"sku":"SSA0108660","requires_shipping":true,"taxable":true,"featured_image":{"id":3963546992739,"product_id":1432688001123,"position":3,"created_at":"2018-10-05T19:06:05+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_light_99fc6480-8850-4abb-bf50-19b5eb611e49.png?v=1630574442","variant_ids":[12557321633891]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 胡桃木紋-杏色 \/ 白","public_title":"胡桃木紋-杏色 \/ 白","options":["胡桃木紋-杏色 \/ 白"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-469,"inventory_management":null,"inventory_policy":"continue","barcode":null,"featured_media":{"alt":null,"id":967287210083,"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_99fc6480-8850-4abb-bf50-19b5eb611e49.png?v=1630574442"}}},{"id":12557321666659,"title":"皮革","option1":"皮革","option2":null,"option3":null,"sku":"SSA0108661","requires_shipping":true,"taxable":true,"featured_image":{"id":3963548500067,"product_id":1432688001123,"position":4,"created_at":"2018-10-05T19:06:13+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/leather_iX_285ce9fb-a101-4e47-a220-0981a24ae6a2.png?v=1630574442","variant_ids":[12557321666659]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 皮革","public_title":"皮革","options":["皮革"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-259,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967287242851,"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_285ce9fb-a101-4e47-a220-0981a24ae6a2.png?v=1630574442"}}},{"id":12557321699427,"title":"碳纖維","option1":"碳纖維","option2":null,"option3":null,"sku":"SSA0108649","requires_shipping":true,"taxable":true,"featured_image":{"id":3963540078691,"product_id":1432688001123,"position":5,"created_at":"2018-10-05T19:05:31+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-04_b44f1c8b-f362-4725-b813-ab4be7657c18.png?v=1630574442","variant_ids":[12557321699427]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 碳纖維","public_title":"碳纖維","options":["碳纖維"],"price":83000,"weight":100,"compare_at_price":null,"inventory_quantity":-1899,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967287079011,"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_b44f1c8b-f362-4725-b813-ab4be7657c18.png?v=1630574442"}}},{"id":12557321732195,"title":"經典黑","option1":"經典黑","option2":null,"option3":null,"sku":"SSA0108652","requires_shipping":true,"taxable":true,"featured_image":{"id":3963535622243,"product_id":1432688001123,"position":6,"created_at":"2018-10-05T19:05:05+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-01_d36486a7-9e01-44a7-8602-28356733c85a.png?v=1630574442","variant_ids":[12557321732195]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 經典黑","public_title":"經典黑","options":["經典黑"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-1616,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286980707,"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_d36486a7-9e01-44a7-8602-28356733c85a.png?v=1630574442"}}},{"id":12609616969827,"title":"櫻花粉","option1":"櫻花粉","option2":null,"option3":null,"sku":"SSA0108657","requires_shipping":true,"taxable":true,"featured_image":{"id":3980217778275,"product_id":1432688001123,"position":7,"created_at":"2018-10-11T10:27:05+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":600,"height":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_140304bb-4c1e-4d22-a8b6-d5a28a3e197b.png?v=1630574442","variant_ids":[12609616969827]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 櫻花粉","public_title":"櫻花粉","options":["櫻花粉"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-773,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":969932243043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":600,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_140304bb-4c1e-4d22-a8b6-d5a28a3e197b.png?v=1630574442"}}},{"id":12557321797731,"title":"經典白","option1":"經典白","option2":null,"option3":null,"sku":"SSA0108653","requires_shipping":true,"taxable":true,"featured_image":{"id":3963538538595,"product_id":1432688001123,"position":8,"created_at":"2018-10-05T19:05:22+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-03_6c7e8186-004d-4203-94b7-16f3e45f6b40.png?v=1630574442","variant_ids":[12557321797731]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 經典白","public_title":"經典白","options":["經典白"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-312,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967287046243,"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-03_6c7e8186-004d-4203-94b7-16f3e45f6b40.png?v=1630574442"}}},{"id":12557321863267,"title":"髮絲紋","option1":"髮絲紋","option2":null,"option3":null,"sku":"SSA0108668","requires_shipping":true,"taxable":true,"featured_image":{"id":3963540766819,"product_id":1432688001123,"position":9,"created_at":"2018-10-05T19:05:34+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1500,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-05_84ccb938-6aa1-404e-acc0-67eda5c24904.png?v=1630574442","variant_ids":[12557321863267]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 髮絲紋","public_title":"髮絲紋","options":["髮絲紋"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-493,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967287111779,"position":9,"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_84ccb938-6aa1-404e-acc0-67eda5c24904.png?v=1630574442"}}},{"id":32550598639715,"title":"雀藍","option1":"雀藍","option2":null,"option3":null,"sku":"SSA0108677","requires_shipping":true,"taxable":true,"featured_image":{"id":28357474779235,"product_id":1432688001123,"position":10,"created_at":"2021-06-29T10:07:55+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1999,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/4911dcf3a093ba2913213581cc09fed1_2f51482b-0270-48b9-b0ba-e69285fc8592.png?v=1630574442","variant_ids":[32550598639715]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 雀藍","public_title":"雀藍","options":["雀藍"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-193,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20664828854371,"position":10,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/4911dcf3a093ba2913213581cc09fed1_2f51482b-0270-48b9-b0ba-e69285fc8592.png?v=1630574442"}}},{"id":39537944330339,"title":"海軍藍","option1":"海軍藍","option2":null,"option3":null,"sku":"SSA01086J5","requires_shipping":true,"taxable":true,"featured_image":{"id":28519084294243,"product_id":1432688001123,"position":13,"created_at":"2021-09-06T11:35:27+08:00","updated_at":"2021-09-06T11:35:27+08:00","alt":null,"width":1999,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01086J5.png?v=1630899327","variant_ids":[39537944330339]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 海軍藍","public_title":"海軍藍","options":["海軍藍"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-104,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20831977767011,"position":13,"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-SSA01086J5.png?v=1630899327"}}},{"id":39533871235171,"title":"暗夜綠","option1":"暗夜綠","option2":null,"option3":null,"sku":"SSA01086K8","requires_shipping":true,"taxable":true,"featured_image":{"id":28509377232995,"product_id":1432688001123,"position":14,"created_at":"2021-09-02T17:20:42+08:00","updated_at":"2021-09-02T17:20:42+08:00","alt":null,"width":1999,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-XSmax_38c5a6ff-1b04-4f7c-9c17-268fab090df6.png?v=1630574442","variant_ids":[39533871235171]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XS Max系列 - 暗夜綠","public_title":"暗夜綠","options":["暗夜綠"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-98,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20821808283747,"position":14,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-XSmax_38c5a6ff-1b04-4f7c-9c17-268fab090df6.png?v=1630574442"}}}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_bb702d87-3030-4988-9c54-edfa0a30d46d.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_dark_93a53bbb-0a17-43fa-b273-d06b53cac527.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_light_99fc6480-8850-4abb-bf50-19b5eb611e49.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/leather_iX_285ce9fb-a101-4e47-a220-0981a24ae6a2.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-04_b44f1c8b-f362-4725-b813-ab4be7657c18.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-01_d36486a7-9e01-44a7-8602-28356733c85a.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_140304bb-4c1e-4d22-a8b6-d5a28a3e197b.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-03_6c7e8186-004d-4203-94b7-16f3e45f6b40.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0330-20_solidsuit-x-05_84ccb938-6aa1-404e-acc0-67eda5c24904.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/4911dcf3a093ba2913213581cc09fed1_2f51482b-0270-48b9-b0ba-e69285fc8592.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/871f3e85284fb920c74d18eb102d0320.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/c65d83978cfb795ad352f64f46dc4297_d982f02a-f896-4be9-9e66-456edbff805a.png?v=1630574442","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01086J5.png?v=1630899327","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-XSmax_38c5a6ff-1b04-4f7c-9c17-268fab090df6.png?v=1630574442"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_bb702d87-3030-4988-9c54-edfa0a30d46d.png?v=1630574442","options":["Color"],"media":[{"alt":null,"id":967287308387,"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_bb702d87-3030-4988-9c54-edfa0a30d46d.png?v=1630574442"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/oak_iX_bb702d87-3030-4988-9c54-edfa0a30d46d.png?v=1630574442","width":1500},{"alt":null,"id":967287177315,"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_93a53bbb-0a17-43fa-b273-d06b53cac527.png?v=1630574442"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_dark_93a53bbb-0a17-43fa-b273-d06b53cac527.png?v=1630574442","width":1500},{"alt":null,"id":967287210083,"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_99fc6480-8850-4abb-bf50-19b5eb611e49.png?v=1630574442"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/iX_3_light_99fc6480-8850-4abb-bf50-19b5eb611e49.png?v=1630574442","width":1500},{"alt":null,"id":967287242851,"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_285ce9fb-a101-4e47-a220-0981a24ae6a2.png?v=1630574442"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/leather_iX_285ce9fb-a101-4e47-a220-0981a24ae6a2.png?v=1630574442","width":1500},{"alt":null,"id":967287079011,"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_b44f1c8b-f362-4725-b813-ab4be7657c18.png?v=1630574442"},"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_b44f1c8b-f362-4725-b813-ab4be7657c18.png?v=1630574442","width":1500},{"alt":null,"id":967286980707,"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_d36486a7-9e01-44a7-8602-28356733c85a.png?v=1630574442"},"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_d36486a7-9e01-44a7-8602-28356733c85a.png?v=1630574442","width":1500},{"alt":null,"id":969932243043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":600,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_140304bb-4c1e-4d22-a8b6-d5a28a3e197b.png?v=1630574442"},"aspect_ratio":1.0,"height":600,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA0108457_grande_grande_140304bb-4c1e-4d22-a8b6-d5a28a3e197b.png?v=1630574442","width":600},{"alt":null,"id":967287046243,"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-03_6c7e8186-004d-4203-94b7-16f3e45f6b40.png?v=1630574442"},"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_6c7e8186-004d-4203-94b7-16f3e45f6b40.png?v=1630574442","width":1500},{"alt":null,"id":967287111779,"position":9,"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_84ccb938-6aa1-404e-acc0-67eda5c24904.png?v=1630574442"},"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_84ccb938-6aa1-404e-acc0-67eda5c24904.png?v=1630574442","width":1500},{"alt":null,"id":20664828854371,"position":10,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/4911dcf3a093ba2913213581cc09fed1_2f51482b-0270-48b9-b0ba-e69285fc8592.png?v=1630574442"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/4911dcf3a093ba2913213581cc09fed1_2f51482b-0270-48b9-b0ba-e69285fc8592.png?v=1630574442","width":1999},{"alt":null,"id":7219366264931,"position":11,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/871f3e85284fb920c74d18eb102d0320.png?v=1630574442"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/871f3e85284fb920c74d18eb102d0320.png?v=1630574442","width":1999},{"alt":null,"id":20664828887139,"position":12,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/c65d83978cfb795ad352f64f46dc4297_d982f02a-f896-4be9-9e66-456edbff805a.png?v=1630574442"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/c65d83978cfb795ad352f64f46dc4297_d982f02a-f896-4be9-9e66-456edbff805a.png?v=1630574442","width":1999},{"alt":null,"id":20831977767011,"position":13,"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-SSA01086J5.png?v=1630899327"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01086J5.png?v=1630899327","width":1999},{"alt":null,"id":20821808283747,"position":14,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-XSmax_38c5a6ff-1b04-4f7c-9c17-268fab090df6.png?v=1630574442"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-XSmax_38c5a6ff-1b04-4f7c-9c17-268fab090df6.png?v=1630574442","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: "停產" }