Shopify.queue = []; $product = {"id":1414800539747,"title":"犀牛盾快拆式按鈕","handle":"iphone-mod-nx-button","description":"\u003cul\u003e\n\u003cli\u003e\u003cb\u003e單色按鈕內含:3顆小按鍵及1顆大按鍵(大按鍵為 iPhone X 以上型號專用)\u003c\/b\u003e\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003e適用型號:iPhone MOD、\u003c\/b\u003e\u003cb\u003eMOD NX、CrashGuard NX、iPhone SolidSuit與Google Pixel系列\u003c\/b\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003e\u003cspan style=\"color: #ff0000;\"\u003e\u003cstrong\u003e建議售價:60元\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h3\u003e","published_at":"2018-08-01T19:41:57+08:00","created_at":"2018-07-31T16:53:29+08:00","vendor":"愛進化科技股份有限公司","type":"Buttons","tags":["20%","25%","30%","35%","40%","45%","50%","brand-Apple","button","iPhone","member","quickbuy","reseller","reseller-asus","Top50"],"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":12387252797539,"title":"白色","option1":"白色","option2":null,"option3":null,"sku":"NX0104K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795990773859,"product_id":1414800539747,"position":11,"created_at":"2018-07-31T16:58:46+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/25c3d2352c2d2b63bf8f9a0d804cde1f.png?v=1571630998","variant_ids":[12387252797539]},"available":true,"name":"犀牛盾快拆式按鈕 - 白色","public_title":"白色","options":["白色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-5827,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451316323,"position":11,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/25c3d2352c2d2b63bf8f9a0d804cde1f.png?v=1569079415"}}},{"id":12387252830307,"title":"橘色","option1":"橘色","option2":null,"option3":null,"sku":"NX0106K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795992510563,"product_id":1414800539747,"position":13,"created_at":"2018-07-31T16:59:55+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/5697dc870b2a31ad18ad2609d83dd728.png?v=1571630998","variant_ids":[12387252830307]},"available":true,"name":"犀牛盾快拆式按鈕 - 橘色","public_title":"橘色","options":["橘色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-4274,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927452266595,"position":13,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/5697dc870b2a31ad18ad2609d83dd728.png?v=1569079415"}}},{"id":12387252863075,"title":"天空藍","option1":"天空藍","option2":null,"option3":null,"sku":"NX0107K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795990511715,"product_id":1414800539747,"position":3,"created_at":"2018-07-31T16:58:31+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/d062801de38cac06c2c9ef6002f7107e.png?v=1571630998","variant_ids":[12387252863075]},"available":true,"name":"犀牛盾快拆式按鈕 - 天空藍","public_title":"天空藍","options":["天空藍"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-4553,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451185251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/d062801de38cac06c2c9ef6002f7107e.png?v=1569079415"}}},{"id":12387252895843,"title":"紫色","option1":"紫色","option2":null,"option3":null,"sku":"NX0108K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795991953507,"product_id":1414800539747,"position":8,"created_at":"2018-07-31T16:59:27+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/87d48d8ceae5963397d897e452e10189.png?v=1571630998","variant_ids":[12387252895843]},"available":true,"name":"犀牛盾快拆式按鈕 - 紫色","public_title":"紫色","options":["紫色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-2283,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451873379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/87d48d8ceae5963397d897e452e10189.png?v=1569079415"}}},{"id":12387252928611,"title":"黃色","option1":"黃色","option2":null,"option3":null,"sku":"NX0109K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795992379491,"product_id":1414800539747,"position":9,"created_at":"2018-07-31T16:59:44+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f5454b9a839966314e1cb316f6c55856.png?v=1571630998","variant_ids":[12387252928611]},"available":true,"name":"犀牛盾快拆式按鈕 - 黃色","public_title":"黃色","options":["黃色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-7145,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927452168291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f5454b9a839966314e1cb316f6c55856.png?v=1569079415"}}},{"id":12387252961379,"title":"綠色","option1":"綠色","option2":null,"option3":null,"sku":"NX0110K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795991298147,"product_id":1414800539747,"position":6,"created_at":"2018-07-31T16:59:09+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b6f5a11dae189849bcb5f49660b45003.png?v=1571630998","variant_ids":[12387252961379]},"available":true,"name":"犀牛盾快拆式按鈕 - 綠色","public_title":"綠色","options":["綠色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-2553,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451512931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b6f5a11dae189849bcb5f49660b45003.png?v=1569079415"}}},{"id":12387252994147,"title":"紅色","option1":"紅色","option2":null,"option3":null,"sku":"NX0114K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795991068771,"product_id":1414800539747,"position":16,"created_at":"2018-07-31T16:58:56+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f75d01542c60d32614c131bdd5bf59e3.png?v=1571630998","variant_ids":[12387252994147]},"available":true,"name":"犀牛盾快拆式按鈕 - 紅色","public_title":"紅色","options":["紅色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-8896,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451414627,"position":16,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f75d01542c60d32614c131bdd5bf59e3.png?v=1569079415"}}},{"id":12387253026915,"title":"靛藍色","option1":"靛藍色","option2":null,"option3":null,"sku":"NX0116K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795992707171,"product_id":1414800539747,"position":14,"created_at":"2018-07-31T17:00:05+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/47b8904b035cd37f5a1e46dec26a2e2c.png?v=1571630998","variant_ids":[12387253026915]},"available":true,"name":"犀牛盾快拆式按鈕 - 靛藍色","public_title":"靛藍色","options":["靛藍色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1385,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927452299363,"position":14,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/47b8904b035cd37f5a1e46dec26a2e2c.png?v=1569079415"}}},{"id":12387253059683,"title":"山茶紅","option1":"山茶紅","option2":null,"option3":null,"sku":"NX0123K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795990413411,"product_id":1414800539747,"position":2,"created_at":"2018-07-31T16:58:24+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/e22c9529f9e9d7e9c4ba14f997f766a0.png?v=1571630998","variant_ids":[12387253059683]},"available":true,"name":"犀牛盾快拆式按鈕 - 山茶紅","public_title":"山茶紅","options":["山茶紅"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-4011,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451152483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/e22c9529f9e9d7e9c4ba14f997f766a0.png?v=1569079415"}}},{"id":12387253092451,"title":"黑色","option1":"黑色","option2":null,"option3":null,"sku":"NX0124K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795992445027,"product_id":1414800539747,"position":10,"created_at":"2018-07-31T16:59:50+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/2218b0223bfebfb7baca19d71afe89db.png?v=1571630998","variant_ids":[12387253092451]},"available":true,"name":"犀牛盾快拆式按鈕 - 黑色","public_title":"黑色","options":["黑色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-3538,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927452233827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/2218b0223bfebfb7baca19d71afe89db.png?v=1569079415"}}},{"id":12387253125219,"title":"透明","option1":"透明","option2":null,"option3":null,"sku":"NX0126K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795991625827,"product_id":1414800539747,"position":15,"created_at":"2018-07-31T16:59:15+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3d4408c8738e6ed420e7e514a97a8bf9.png?v=1571630998","variant_ids":[12387253125219]},"available":true,"name":"犀牛盾快拆式按鈕 - 透明","public_title":"透明","options":["透明"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1373,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451644003,"position":15,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3d4408c8738e6ed420e7e514a97a8bf9.png?v=1569079415"}}},{"id":12387253157987,"title":"狼灰色","option1":"狼灰色","option2":null,"option3":null,"sku":"NX0155K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795991134307,"product_id":1414800539747,"position":12,"created_at":"2018-07-31T16:59:04+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/aba67ed9f62a3d41000397f05e4d5460.png?v=1571630998","variant_ids":[12387253157987]},"available":true,"name":"犀牛盾快拆式按鈕 - 狼灰色","public_title":"狼灰色","options":["狼灰色"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-2048,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451447395,"position":12,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/aba67ed9f62a3d41000397f05e4d5460.png?v=1569079415"}}},{"id":12387253190755,"title":"牛仔藍","option1":"牛仔藍","option2":null,"option3":null,"sku":"NX0156K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795990642787,"product_id":1414800539747,"position":4,"created_at":"2018-07-31T16:58:40+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f93364f3af4422def3ccd6cb06946d57.png?v=1571630998","variant_ids":[12387253190755]},"available":true,"name":"犀牛盾快拆式按鈕 - 牛仔藍","public_title":"牛仔藍","options":["牛仔藍"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1939,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451218019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f93364f3af4422def3ccd6cb06946d57.png?v=1569079415"}}},{"id":12387253223523,"title":"櫻花粉","option1":"櫻花粉","option2":null,"option3":null,"sku":"NX0157K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795990216803,"product_id":1414800539747,"position":1,"created_at":"2018-07-31T16:58:11+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8a1d8cb5c1abcc916e20d245024ff7c2.png?v=1571630998","variant_ids":[12387253223523]},"available":true,"name":"犀牛盾快拆式按鈕 - 櫻花粉","public_title":"櫻花粉","options":["櫻花粉"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-4152,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451119715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8a1d8cb5c1abcc916e20d245024ff7c2.png?v=1569079415"}}},{"id":12555627987043,"title":"泥灰","option1":"泥灰","option2":null,"option3":null,"sku":"NX0169K","requires_shipping":true,"taxable":true,"featured_image":{"id":3795990839395,"product_id":1414800539747,"position":5,"created_at":"2018-07-31T16:58:51+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/fa485fb390971a5aaaabf7eefe0305ef.png?v=1571630998","variant_ids":[12555627987043]},"available":true,"name":"犀牛盾快拆式按鈕 - 泥灰","public_title":"泥灰","options":["泥灰"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1756,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":927451349091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/fa485fb390971a5aaaabf7eefe0305ef.png?v=1569079415"}}},{"id":12387253289059,"title":"雀藍","option1":"雀藍","option2":null,"option3":null,"sku":"NX0177K","requires_shipping":true,"taxable":true,"featured_image":{"id":28357475270755,"product_id":1414800539747,"position":23,"created_at":"2021-06-29T10:08:47+08:00","updated_at":"2021-06-29T10:08:47+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Button-NewFlow_92b620f4-f6cf-4293-9f34-b32d0fe48846.png?v=1624932527","variant_ids":[12387253289059]},"available":true,"name":"犀牛盾快拆式按鈕 - 雀藍","public_title":"雀藍","options":["雀藍"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-2531,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20664829378659,"position":23,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Button-NewFlow_92b620f4-f6cf-4293-9f34-b32d0fe48846.png?v=1624932527"}}},{"id":28238351761507,"title":"軍綠","option1":"軍綠","option2":null,"option3":null,"sku":"NX0115K","requires_shipping":true,"taxable":true,"featured_image":{"id":11083873484899,"product_id":1414800539747,"position":18,"created_at":"2019-05-15T15:04:10+08:00","updated_at":"2019-10-17T09:02:12+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green.png?v=1571274132","variant_ids":[28238351761507]},"available":true,"name":"犀牛盾快拆式按鈕 - 軍綠","public_title":"軍綠","options":["軍綠"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1131,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1390449033315,"position":18,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green.png?v=1569169732"}}},{"id":28238361952355,"title":"淺灰","option1":"淺灰","option2":null,"option3":null,"sku":"NX01C0K","requires_shipping":true,"taxable":true,"featured_image":{"id":11083876860003,"product_id":1414800539747,"position":19,"created_at":"2019-05-15T15:04:55+08:00","updated_at":"2019-10-17T09:02:12+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray.png?v=1571274132","variant_ids":[28238361952355]},"available":true,"name":"犀牛盾快拆式按鈕 - 淺灰","public_title":"淺灰","options":["淺灰"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1043,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1390450409571,"position":19,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray.png?v=1569169732"}}},{"id":28238367260771,"title":"薰衣紫","option1":"薰衣紫","option2":null,"option3":null,"sku":"NX01C1K","requires_shipping":true,"taxable":true,"featured_image":{"id":11083879776355,"product_id":1414800539747,"position":20,"created_at":"2019-05-15T15:05:29+08:00","updated_at":"2019-10-17T09:02:12+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender.png?v=1571274132","variant_ids":[28238367260771]},"available":true,"name":"犀牛盾快拆式按鈕 - 薰衣紫","public_title":"薰衣紫","options":["薰衣紫"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1936,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1390450868323,"position":20,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender.png?v=1569169732"}}},{"id":30929014849635,"title":"薄荷綠","option1":"薄荷綠","option2":null,"option3":null,"sku":"NX01C5K","requires_shipping":true,"taxable":true,"featured_image":{"id":13252058710115,"product_id":1414800539747,"position":21,"created_at":"2019-10-21T12:09:58+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b7ca91eb5731669206e294dbd681fe3d.png?v=1571630998","variant_ids":[30929014849635]},"available":true,"name":"犀牛盾快拆式按鈕 - 薄荷綠","public_title":"薄荷綠","options":["薄荷綠"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-2247,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":5409058095203,"position":21,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b7ca91eb5731669206e294dbd681fe3d.png?v=1571630998"}}},{"id":32550640222307,"title":"可可棕","option1":"可可棕","option2":null,"option3":null,"sku":"NX01E6K","requires_shipping":true,"taxable":true,"featured_image":{"id":28357475303523,"product_id":1414800539747,"position":24,"created_at":"2021-06-29T10:08:47+08:00","updated_at":"2021-06-29T10:08:47+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/76e53d3eca5b8f1df6366cb984453d1f_ccd81759-a58f-4e3a-84c9-d64b70601ba9.png?v=1624932527","variant_ids":[32550640222307]},"available":true,"name":"犀牛盾快拆式按鈕 - 可可棕","public_title":"可可棕","options":["可可棕"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1313,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20664829411427,"position":24,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/76e53d3eca5b8f1df6366cb984453d1f_ccd81759-a58f-4e3a-84c9-d64b70601ba9.png?v=1624932527"}}},{"id":32550642384995,"title":"卡其","option1":"卡其","option2":null,"option3":null,"sku":"NX01E7K","requires_shipping":true,"taxable":true,"featured_image":{"id":15007726141539,"product_id":1414800539747,"position":22,"created_at":"2020-05-20T17:23:25+08:00","updated_at":"2021-06-21T15:56:16+08:00","alt":null,"width":1404,"height":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3e9b617cbf1149c02e2c60fbf23886eb.png?v=1624262176","variant_ids":[32550642384995]},"available":true,"name":"犀牛盾快拆式按鈕 - 卡其","public_title":"卡其","options":["卡其"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-1345,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":7165147775075,"position":22,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3e9b617cbf1149c02e2c60fbf23886eb.png?v=1589966605"}}},{"id":12744684765283,"title":"六色按鈕組合包(六色小顆各一,顏色:紅\/白\/黃\/靛藍\/草地綠\/山茶紅)","option1":"六色按鈕組合包(六色小顆各一,顏色:紅\/白\/黃\/靛藍\/草地綠\/山茶紅)","option2":null,"option3":null,"sku":"NXA5K","requires_shipping":true,"taxable":true,"featured_image":{"id":4148653359203,"product_id":1414800539747,"position":17,"created_at":"2018-11-23T10:48:39+08:00","updated_at":"2019-10-21T12:09:58+08:00","alt":null,"width":600,"height":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/NXA5K_grande_4b0d4b00-0184-4f5d-a719-7e51cd973085.jpg?v=1571630998","variant_ids":[12744684765283]},"available":true,"name":"犀牛盾快拆式按鈕 - 六色按鈕組合包(六色小顆各一,顏色:紅\/白\/黃\/靛藍\/草地綠\/山茶紅)","public_title":"六色按鈕組合包(六色小顆各一,顏色:紅\/白\/黃\/靛藍\/草地綠\/山茶紅)","options":["六色按鈕組合包(六色小顆各一,顏色:紅\/白\/黃\/靛藍\/草地綠\/山茶紅)"],"price":3000,"weight":0,"compare_at_price":null,"inventory_quantity":-709,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":1008886513763,"position":17,"preview_image":{"aspect_ratio":1.0,"height":600,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/NXA5K_grande_4b0d4b00-0184-4f5d-a719-7e51cd973085.jpg?v=1569095394"}}}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8a1d8cb5c1abcc916e20d245024ff7c2.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/e22c9529f9e9d7e9c4ba14f997f766a0.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/d062801de38cac06c2c9ef6002f7107e.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f93364f3af4422def3ccd6cb06946d57.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/fa485fb390971a5aaaabf7eefe0305ef.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b6f5a11dae189849bcb5f49660b45003.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8898413c467f17125570a57321cf2381.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/87d48d8ceae5963397d897e452e10189.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f5454b9a839966314e1cb316f6c55856.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/2218b0223bfebfb7baca19d71afe89db.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/25c3d2352c2d2b63bf8f9a0d804cde1f.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/aba67ed9f62a3d41000397f05e4d5460.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/5697dc870b2a31ad18ad2609d83dd728.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/47b8904b035cd37f5a1e46dec26a2e2c.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3d4408c8738e6ed420e7e514a97a8bf9.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f75d01542c60d32614c131bdd5bf59e3.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/NXA5K_grande_4b0d4b00-0184-4f5d-a719-7e51cd973085.jpg?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green.png?v=1571274132","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray.png?v=1571274132","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender.png?v=1571274132","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b7ca91eb5731669206e294dbd681fe3d.png?v=1571630998","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3e9b617cbf1149c02e2c60fbf23886eb.png?v=1624262176","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Button-NewFlow_92b620f4-f6cf-4293-9f34-b32d0fe48846.png?v=1624932527","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/76e53d3eca5b8f1df6366cb984453d1f_ccd81759-a58f-4e3a-84c9-d64b70601ba9.png?v=1624932527"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8a1d8cb5c1abcc916e20d245024ff7c2.png?v=1571630998","options":["Color"],"media":[{"alt":null,"id":927451119715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8a1d8cb5c1abcc916e20d245024ff7c2.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8a1d8cb5c1abcc916e20d245024ff7c2.png?v=1569079415","width":1404},{"alt":null,"id":927451152483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/e22c9529f9e9d7e9c4ba14f997f766a0.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/e22c9529f9e9d7e9c4ba14f997f766a0.png?v=1569079415","width":1404},{"alt":null,"id":927451185251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/d062801de38cac06c2c9ef6002f7107e.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/d062801de38cac06c2c9ef6002f7107e.png?v=1569079415","width":1404},{"alt":null,"id":927451218019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f93364f3af4422def3ccd6cb06946d57.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f93364f3af4422def3ccd6cb06946d57.png?v=1569079415","width":1404},{"alt":null,"id":927451349091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/fa485fb390971a5aaaabf7eefe0305ef.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/fa485fb390971a5aaaabf7eefe0305ef.png?v=1569079415","width":1404},{"alt":null,"id":927451512931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b6f5a11dae189849bcb5f49660b45003.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b6f5a11dae189849bcb5f49660b45003.png?v=1569079415","width":1404},{"alt":null,"id":927451742307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8898413c467f17125570a57321cf2381.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8898413c467f17125570a57321cf2381.png?v=1569079415","width":1404},{"alt":null,"id":927451873379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/87d48d8ceae5963397d897e452e10189.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/87d48d8ceae5963397d897e452e10189.png?v=1569079415","width":1404},{"alt":null,"id":927452168291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f5454b9a839966314e1cb316f6c55856.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f5454b9a839966314e1cb316f6c55856.png?v=1569079415","width":1404},{"alt":null,"id":927452233827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/2218b0223bfebfb7baca19d71afe89db.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/2218b0223bfebfb7baca19d71afe89db.png?v=1569079415","width":1404},{"alt":null,"id":927451316323,"position":11,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/25c3d2352c2d2b63bf8f9a0d804cde1f.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/25c3d2352c2d2b63bf8f9a0d804cde1f.png?v=1569079415","width":1404},{"alt":null,"id":927451447395,"position":12,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/aba67ed9f62a3d41000397f05e4d5460.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/aba67ed9f62a3d41000397f05e4d5460.png?v=1569079415","width":1404},{"alt":null,"id":927452266595,"position":13,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/5697dc870b2a31ad18ad2609d83dd728.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/5697dc870b2a31ad18ad2609d83dd728.png?v=1569079415","width":1404},{"alt":null,"id":927452299363,"position":14,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/47b8904b035cd37f5a1e46dec26a2e2c.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/47b8904b035cd37f5a1e46dec26a2e2c.png?v=1569079415","width":1404},{"alt":null,"id":927451644003,"position":15,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3d4408c8738e6ed420e7e514a97a8bf9.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3d4408c8738e6ed420e7e514a97a8bf9.png?v=1569079415","width":1404},{"alt":null,"id":927451414627,"position":16,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f75d01542c60d32614c131bdd5bf59e3.png?v=1569079415"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f75d01542c60d32614c131bdd5bf59e3.png?v=1569079415","width":1404},{"alt":null,"id":1008886513763,"position":17,"preview_image":{"aspect_ratio":1.0,"height":600,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/NXA5K_grande_4b0d4b00-0184-4f5d-a719-7e51cd973085.jpg?v=1569095394"},"aspect_ratio":1.0,"height":600,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/NXA5K_grande_4b0d4b00-0184-4f5d-a719-7e51cd973085.jpg?v=1569095394","width":600},{"alt":null,"id":1390449033315,"position":18,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green.png?v=1569169732"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Camo_Green.png?v=1569169732","width":1404},{"alt":null,"id":1390450409571,"position":19,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray.png?v=1569169732"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Platinum_Gray.png?v=1569169732","width":1404},{"alt":null,"id":1390450868323,"position":20,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender.png?v=1569169732"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Lavender.png?v=1569169732","width":1404},{"alt":null,"id":5409058095203,"position":21,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b7ca91eb5731669206e294dbd681fe3d.png?v=1571630998"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/b7ca91eb5731669206e294dbd681fe3d.png?v=1571630998","width":1404},{"alt":null,"id":7165147775075,"position":22,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3e9b617cbf1149c02e2c60fbf23886eb.png?v=1589966605"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/3e9b617cbf1149c02e2c60fbf23886eb.png?v=1589966605","width":1404},{"alt":null,"id":20664829378659,"position":23,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Button-NewFlow_92b620f4-f6cf-4293-9f34-b32d0fe48846.png?v=1624932527"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/Royal_Blue-Button-NewFlow_92b620f4-f6cf-4293-9f34-b32d0fe48846.png?v=1624932527","width":1404},{"alt":null,"id":20664829411427,"position":24,"preview_image":{"aspect_ratio":1.0,"height":1404,"width":1404,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/76e53d3eca5b8f1df6366cb984453d1f_ccd81759-a58f-4e3a-84c9-d64b70601ba9.png?v=1624932527"},"aspect_ratio":1.0,"height":1404,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/76e53d3eca5b8f1df6366cb984453d1f_ccd81759-a58f-4e3a-84c9-d64b70601ba9.png?v=1624932527","width":1404}],"content":"\u003cul\u003e\n\u003cli\u003e\u003cb\u003e單色按鈕內含:3顆小按鍵及1顆大按鍵(大按鍵為 iPhone X 以上型號專用)\u003c\/b\u003e\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003e適用型號:iPhone MOD、\u003c\/b\u003e\u003cb\u003eMOD NX、CrashGuard NX、iPhone SolidSuit與Google Pixel系列\u003c\/b\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003e\u003cspan style=\"color: #ff0000;\"\u003e\u003cstrong\u003e建議售價:60元\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h3\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: "停產" }