Shopify.queue = []; $product = {"id":1414797000803,"title":"犀牛盾專用飾條 - iPhone 7\/8\/SE","handle":"iphone-8-mod-nx-rim","description":"\u003ch1\u003e\u003cspan\u003e\u003cstrong\u003e適用於MOD NX與CrashGuard NX\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h1\u003e\n\u003cp\u003e\u003cspan\u003e建議售價:60元\u003c\/span\u003e\u003c\/p\u003e","published_at":"2018-08-01T19:41:55+08:00","created_at":"2018-07-31T16:32:38+08:00","vendor":"犀牛盾RHINOSHIELD","type":"ModNXRim","tags":["20%","25%","30%","35%","40%","45%","45degree","50%","brand-Apple","customized-backprint","device-iPhone 8","iPhone 7\/8\/SE","member","multi-shared","quickbuy","reseller","reseller-asus","rim","Top50","type-Mod NX Rim"],"price":3000,"price_min":3000,"price_max":3000,"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":12387231891555,"title":"白色","option1":"白色","option2":null,"option3":null,"sku":"NX0105404E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796019937379,"product_id":1414797000803,"position":1,"created_at":"2018-07-31T17:14:06+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/White-strip.png?v=1630574472","variant_ids":[12387231891555]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 白色","public_title":"白色","options":["白色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-492,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927471403107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/White-strip.png?v=1630574472"}}},{"id":32535002021987,"title":"橘色","option1":"橘色","option2":null,"option3":null,"sku":"NX0105406E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796019347555,"product_id":1414797000803,"position":2,"created_at":"2018-07-31T17:13:57+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Orange-strip.png?v=1630574472","variant_ids":[32535002021987]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 橘色","public_title":"橘色","options":["橘色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-36,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927470813283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Orange-strip.png?v=1630574472"}}},{"id":12387231957091,"title":"天空藍","option1":"天空藍","option2":null,"option3":null,"sku":"NX0105407E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796018266211,"product_id":1414797000803,"position":3,"created_at":"2018-07-31T17:13:45+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Azure_Blue-strip.png?v=1630574472","variant_ids":[12387231957091]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 天空藍","public_title":"天空藍","options":["天空藍"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-432,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927469863011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Azure_Blue-strip.png?v=1630574472"}}},{"id":12387231989859,"title":"紫色","option1":"紫色","option2":null,"option3":null,"sku":"NX0105408E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796019478627,"product_id":1414797000803,"position":4,"created_at":"2018-07-31T17:13:59+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/purple-strip.png?v=1630574472","variant_ids":[12387231989859]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 紫色","public_title":"紫色","options":["紫色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-219,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927470944355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/purple-strip.png?v=1630574472"}}},{"id":12387232022627,"title":"黃色","option1":"黃色","option2":null,"option3":null,"sku":"NX0105409E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796018167907,"product_id":1414797000803,"position":5,"created_at":"2018-07-31T17:13:41+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Yellow-strip.png?v=1630574472","variant_ids":[12387232022627]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 黃色","public_title":"黃色","options":["黃色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-516,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927469764707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Yellow-strip.png?v=1630574472"}}},{"id":32535002054755,"title":"綠色","option1":"綠色","option2":null,"option3":null,"sku":"NX0105410E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796018790499,"product_id":1414797000803,"position":6,"created_at":"2018-07-31T17:13:52+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Fern_Green-strip.png?v=1630574472","variant_ids":[32535002054755]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 綠色","public_title":"綠色","options":["綠色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-37,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927470288995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Fern_Green-strip.png?v=1630574472"}}},{"id":12387232088163,"title":"紅色","option1":"紅色","option2":null,"option3":null,"sku":"NX0105414E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796019642467,"product_id":1414797000803,"position":7,"created_at":"2018-07-31T17:14:02+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Red-strip.png?v=1630574472","variant_ids":[12387232088163]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 紅色","public_title":"紅色","options":["紅色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-683,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927471108195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Red-strip.png?v=1630574472"}}},{"id":12387232120931,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"NX0105424E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796018430051,"product_id":1414797000803,"position":8,"created_at":"2018-07-31T17:13:46+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Black-strip.png?v=1630574472","variant_ids":[12387232120931]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 黑色","public_title":"黑色","options":["黑色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-246,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927470026851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Black-strip.png?v=1630574472"}}},{"id":12387232153699,"title":"櫻花粉","option1":"櫻花粉","option2":null,"option3":null,"sku":"NX0105457E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796018626659,"product_id":1414797000803,"position":9,"created_at":"2018-07-31T17:13:50+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Brush_Pink-strip.png?v=1630574472","variant_ids":[12387232153699]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 櫻花粉","public_title":"櫻花粉","options":["櫻花粉"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-345,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927470190691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Brush_Pink-strip.png?v=1630574472"}}},{"id":12387232186467,"title":"泥灰","option1":"泥灰","option2":null,"option3":null,"sku":"NX0105469E","requires_shipping":true,"taxable":true,"featured_image":{"id":3796018954339,"product_id":1414797000803,"position":10,"created_at":"2018-07-31T17:13:54+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Graphite-strip.png?v=1630574472","variant_ids":[12387232186467]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 泥灰","public_title":"泥灰","options":["泥灰"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-242,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927470452835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Graphite-strip.png?v=1630574472"}}},{"id":12387232219235,"title":"雀藍","option1":"雀藍","option2":null,"option3":null,"sku":"NX0105477E","requires_shipping":true,"taxable":true,"featured_image":{"id":15230729060451,"product_id":1414797000803,"position":11,"created_at":"2020-06-10T15:41:44+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Rim-NewFlow_e6b4d122-9e62-4a55-b7b9-78f936340a19.png?v=1630574472","variant_ids":[12387232219235]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 雀藍","public_title":"雀藍","options":["雀藍"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-261,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":7388238610531,"position":11,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Rim-NewFlow_e6b4d122-9e62-4a55-b7b9-78f936340a19.png?v=1630574472"}}},{"id":28238392819811,"title":"軍綠","option1":"軍綠","option2":null,"option3":null,"sku":"NX0105415E","requires_shipping":true,"taxable":true,"featured_image":{"id":11083900354659,"product_id":1414797000803,"position":12,"created_at":"2019-05-15T15:10:22+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green-Rim_8d542a9f-dbf3-4890-8cf0-7d7687dbca8a.png?v=1630574472","variant_ids":[28238392819811]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 軍綠","public_title":"軍綠","options":["軍綠"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-78,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1390454145123,"position":12,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green-Rim_8d542a9f-dbf3-4890-8cf0-7d7687dbca8a.png?v=1630574472"}}},{"id":28238398586979,"title":"淺灰","option1":"淺灰","option2":null,"option3":null,"sku":"NX01054C0E","requires_shipping":true,"taxable":true,"featured_image":{"id":11083906941027,"product_id":1414797000803,"position":13,"created_at":"2019-05-15T15:11:46+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray-Rim_410426b8-4691-4b12-97cc-4f85bbdbf418.png?v=1630574472","variant_ids":[28238398586979]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 淺灰","public_title":"淺灰","options":["淺灰"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-98,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1390454898787,"position":13,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray-Rim_410426b8-4691-4b12-97cc-4f85bbdbf418.png?v=1630574472"}}},{"id":28238401405027,"title":"薰衣紫","option1":"薰衣紫","option2":null,"option3":null,"sku":"NX01054C1E","requires_shipping":true,"taxable":true,"featured_image":{"id":11083911200867,"product_id":1414797000803,"position":14,"created_at":"2019-05-15T15:13:17+08:00","updated_at":"2021-09-02T17:21:12+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender-Rim_676e394b-5868-4cbe-afc9-025779de46fa.png?v=1630574472","variant_ids":[28238401405027]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 薰衣紫","public_title":"薰衣紫","options":["薰衣紫"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-114,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1390455586915,"position":14,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender-Rim_676e394b-5868-4cbe-afc9-025779de46fa.png?v=1630574472"}}},{"id":39533821722723,"title":"暗夜綠","option1":"暗夜綠","option2":null,"option3":null,"sku":"NX01054K8E","requires_shipping":true,"taxable":true,"featured_image":{"id":28481969356899,"product_id":1414797000803,"position":15,"created_at":"2021-08-23T14:25:56+08:00","updated_at":"2021-08-23T14:25:56+08:00","alt":null,"width":1701,"height":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Dark_Teal-rim-addition_3f18575b-91c5-4991-9d11-8b4cc3709427.png?v=1629699956","variant_ids":[39533821722723]},"available":true,"name":"犀牛盾專用飾條 - iPhone 7\/8\/SE - 暗夜綠","public_title":"暗夜綠","options":["暗夜綠"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-2,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20792993251427,"position":15,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Dark_Teal-rim-addition_3f18575b-91c5-4991-9d11-8b4cc3709427.png?v=1629699956"}}}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/White-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Orange-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Azure_Blue-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/purple-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Yellow-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Fern_Green-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Red-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Black-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Brush_Pink-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Graphite-strip.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Rim-NewFlow_e6b4d122-9e62-4a55-b7b9-78f936340a19.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green-Rim_8d542a9f-dbf3-4890-8cf0-7d7687dbca8a.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray-Rim_410426b8-4691-4b12-97cc-4f85bbdbf418.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender-Rim_676e394b-5868-4cbe-afc9-025779de46fa.png?v=1630574472","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Dark_Teal-rim-addition_3f18575b-91c5-4991-9d11-8b4cc3709427.png?v=1629699956"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/White-strip.png?v=1630574472","options":["Color"],"media":[{"alt":null,"id":927471403107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/White-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/White-strip.png?v=1630574472","width":1701},{"alt":null,"id":927470813283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Orange-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Orange-strip.png?v=1630574472","width":1701},{"alt":null,"id":927469863011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Azure_Blue-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Azure_Blue-strip.png?v=1630574472","width":1701},{"alt":null,"id":927470944355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/purple-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/purple-strip.png?v=1630574472","width":1701},{"alt":null,"id":927469764707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Yellow-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Yellow-strip.png?v=1630574472","width":1701},{"alt":null,"id":927470288995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Fern_Green-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Fern_Green-strip.png?v=1630574472","width":1701},{"alt":null,"id":927471108195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Red-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Red-strip.png?v=1630574472","width":1701},{"alt":null,"id":927470026851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Black-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Black-strip.png?v=1630574472","width":1701},{"alt":null,"id":927470190691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Brush_Pink-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Brush_Pink-strip.png?v=1630574472","width":1701},{"alt":null,"id":927470452835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Graphite-strip.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Graphite-strip.png?v=1630574472","width":1701},{"alt":null,"id":7388238610531,"position":11,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Rim-NewFlow_e6b4d122-9e62-4a55-b7b9-78f936340a19.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Rim-NewFlow_e6b4d122-9e62-4a55-b7b9-78f936340a19.png?v=1630574472","width":1701},{"alt":null,"id":1390454145123,"position":12,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green-Rim_8d542a9f-dbf3-4890-8cf0-7d7687dbca8a.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green-Rim_8d542a9f-dbf3-4890-8cf0-7d7687dbca8a.png?v=1630574472","width":1701},{"alt":null,"id":1390454898787,"position":13,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray-Rim_410426b8-4691-4b12-97cc-4f85bbdbf418.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray-Rim_410426b8-4691-4b12-97cc-4f85bbdbf418.png?v=1630574472","width":1701},{"alt":null,"id":1390455586915,"position":14,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender-Rim_676e394b-5868-4cbe-afc9-025779de46fa.png?v=1630574472"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender-Rim_676e394b-5868-4cbe-afc9-025779de46fa.png?v=1630574472","width":1701},{"alt":null,"id":20792993251427,"position":15,"preview_image":{"aspect_ratio":1.0,"height":1701,"width":1701,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Dark_Teal-rim-addition_3f18575b-91c5-4991-9d11-8b4cc3709427.png?v=1629699956"},"aspect_ratio":1.0,"height":1701,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Dark_Teal-rim-addition_3f18575b-91c5-4991-9d11-8b4cc3709427.png?v=1629699956","width":1701}],"content":"\u003ch1\u003e\u003cspan\u003e\u003cstrong\u003e適用於MOD NX與CrashGuard NX\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h1\u003e\n\u003cp\u003e\u003cspan\u003e建議售價:60元\u003c\/span\u003e\u003c\/p\u003e"}; $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: "停產" }