$product = {"id":7868548513891,"title":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款","handle":"iphone-17-pro-max-solidx-jo03","description":null,"published_at":"2025-09-10T00:52:12+08:00","created_at":"2025-08-26T16:57:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kid","device-iPhone 17 Pro Max","merge","reseller-kid"],"price":125000,"price_min":125000,"price_max":125000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":43635723501667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0135352-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140522078307,"product_id":7868548513891,"position":14,"created_at":"2026-07-01T11:10:54+08:00","updated_at":"2026-07-01T11:10:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457","variant_ids":[43635723501667]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0135352-JO03","featured_media":{"alt":null,"id":27645413228643,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725074531,"title":"Dawn Clay","option1":"Dawn Clay","option2":null,"option3":null,"sku":"NST013534H-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518670435,"product_id":7868548513891,"position":8,"created_at":"2026-07-01T11:10:51+08:00","updated_at":"2026-07-01T11:10:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb41c85179f4e594460a8319e2a8f73bbb98d7b.webp?v=1782875453","variant_ids":[43635725074531]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Dawn Clay","public_title":"Dawn Clay","options":["Dawn Clay"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013534H-JO03","featured_media":{"alt":null,"id":27645409755235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb41c85179f4e594460a8319e2a8f73bbb98d7b.webp?v=1782875453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725107299,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST013530B-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517851235,"product_id":7868548513891,"position":6,"created_at":"2026-07-01T11:10:49+08:00","updated_at":"2026-07-01T11:10:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10837bc515ff6fea2a84f85ed0d4fdd36ebafb0.webp?v=1782875452","variant_ids":[43635725107299]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013530B-JO03","featured_media":{"alt":null,"id":27645409001571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10837bc515ff6fea2a84f85ed0d4fdd36ebafb0.webp?v=1782875452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725140067,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST013534I-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519489635,"product_id":7868548513891,"position":10,"created_at":"2026-07-01T11:10:52+08:00","updated_at":"2026-07-01T11:10:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6571b1ef9769350a01a4dbd8cb12f66d13403f.webp?v=1782875454","variant_ids":[43635725140067]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013534I-JO03","featured_media":{"alt":null,"id":27645410607203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6571b1ef9769350a01a4dbd8cb12f66d13403f.webp?v=1782875454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725172835,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0135353-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518178915,"product_id":7868548513891,"position":7,"created_at":"2026-07-01T11:10:50+08:00","updated_at":"2026-07-01T11:10:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36439880121d912fa782c6fdc3dd1c19bf331b65.webp?v=1782875452","variant_ids":[43635725172835]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0135353-JO03","featured_media":{"alt":null,"id":27645409329251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36439880121d912fa782c6fdc3dd1c19bf331b65.webp?v=1782875452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725205603,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01353O8-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140520439907,"product_id":7868548513891,"position":12,"created_at":"2026-07-01T11:10:53+08:00","updated_at":"2026-07-01T11:10:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf0e2f56048c9e1b1df80275cd507de4507303b.webp?v=1782875455","variant_ids":[43635725205603]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01353O8-JO03","featured_media":{"alt":null,"id":27645411557475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf0e2f56048c9e1b1df80275cd507de4507303b.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43799432134755,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"NST013530F-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517556323,"product_id":7868548513891,"position":5,"created_at":"2026-07-01T11:10:49+08:00","updated_at":"2026-07-01T11:10:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5b11d45bfe0106dfaed42376ede603565e46ee.webp?v=1782875451","variant_ids":[43799432134755]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013530F-JO03","featured_media":{"alt":null,"id":27645408673891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5b11d45bfe0106dfaed42376ede603565e46ee.webp?v=1782875451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43799432167523,"title":"Ultra Marine","option1":"Ultra Marine","option2":null,"option3":null,"sku":"NST013533O-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517097571,"product_id":7868548513891,"position":3,"created_at":"2026-07-01T11:10:48+08:00","updated_at":"2026-07-01T11:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59149db66b40f7d46d8118f85c0f238a163c8e2b.webp?v=1782875450","variant_ids":[43799432167523]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Ultra Marine","public_title":"Ultra Marine","options":["Ultra Marine"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013533O-JO03","featured_media":{"alt":null,"id":27645408215139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59149db66b40f7d46d8118f85c0f238a163c8e2b.webp?v=1782875450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44200724168803,"title":"Sunflower Yellow","option1":"Sunflower Yellow","option2":null,"option3":null,"sku":"NST013536A-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519063651,"product_id":7868548513891,"position":9,"created_at":"2026-07-01T11:10:51+08:00","updated_at":"2026-07-01T11:10:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32de5434dc7154dbac2ed80ff398a5e0f25635f.webp?v=1782875453","variant_ids":[44200724168803]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Sunflower Yellow","public_title":"Sunflower Yellow","options":["Sunflower Yellow"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013536A-JO03","featured_media":{"alt":null,"id":27645410181219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32de5434dc7154dbac2ed80ff398a5e0f25635f.webp?v=1782875453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44200724627555,"title":"Sky Blue","option1":"Sky Blue","option2":null,"option3":null,"sku":"NST013535X-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140516966499,"product_id":7868548513891,"position":2,"created_at":"2026-07-01T11:10:47+08:00","updated_at":"2026-07-01T11:10:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f11e5e499f799d0c61ae0f687333a58d7a3ba7.webp?v=1782875449","variant_ids":[44200724627555]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Sky Blue","public_title":"Sky Blue","options":["Sky Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013535X-JO03","featured_media":{"alt":null,"id":27645408051299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f11e5e499f799d0c61ae0f687333a58d7a3ba7.webp?v=1782875449"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44200725282915,"title":"Field Green","option1":"Field Green","option2":null,"option3":null,"sku":"NST013535Y-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517326947,"product_id":7868548513891,"position":4,"created_at":"2026-07-01T11:10:48+08:00","updated_at":"2026-07-01T11:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51cc53b0f24482031d9c8641a7566a83649b0f5.webp?v=1782875450","variant_ids":[44200725282915]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Field Green","public_title":"Field Green","options":["Field Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013535Y-JO03","featured_media":{"alt":null,"id":27645408444515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51cc53b0f24482031d9c8641a7566a83649b0f5.webp?v=1782875450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44200725938275,"title":"Blossom Pink","option1":"Blossom Pink","option2":null,"option3":null,"sku":"NST013535Z-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140521160803,"product_id":7868548513891,"position":13,"created_at":"2026-07-01T11:10:54+08:00","updated_at":"2026-07-01T11:10:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d2fc7128e33c963402979b573e0329b626273f.webp?v=1782875456","variant_ids":[44200725938275]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Blossom Pink","public_title":"Blossom Pink","options":["Blossom Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013535Z-JO03","featured_media":{"alt":null,"id":27645412278371,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d2fc7128e33c963402979b573e0329b626273f.webp?v=1782875456"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44263821541475,"title":"Translucent Matte","option1":"Translucent Matte","option2":null,"option3":null,"sku":"NST013535H-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519948387,"product_id":7868548513891,"position":11,"created_at":"2026-07-01T11:10:52+08:00","updated_at":"2026-07-01T11:10:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18b1f639b78be42498a6e3ba7e636c6a80a319f7.webp?v=1782875455","variant_ids":[44263821541475]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Translucent Matte","public_title":"Translucent Matte","options":["Translucent Matte"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013535H-JO03","featured_media":{"alt":null,"id":27645411065955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18b1f639b78be42498a6e3ba7e636c6a80a319f7.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-353-JO03.png?v=1756198643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f11e5e499f799d0c61ae0f687333a58d7a3ba7.webp?v=1782875449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59149db66b40f7d46d8118f85c0f238a163c8e2b.webp?v=1782875450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51cc53b0f24482031d9c8641a7566a83649b0f5.webp?v=1782875450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5b11d45bfe0106dfaed42376ede603565e46ee.webp?v=1782875451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10837bc515ff6fea2a84f85ed0d4fdd36ebafb0.webp?v=1782875452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36439880121d912fa782c6fdc3dd1c19bf331b65.webp?v=1782875452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb41c85179f4e594460a8319e2a8f73bbb98d7b.webp?v=1782875453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32de5434dc7154dbac2ed80ff398a5e0f25635f.webp?v=1782875453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6571b1ef9769350a01a4dbd8cb12f66d13403f.webp?v=1782875454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18b1f639b78be42498a6e3ba7e636c6a80a319f7.webp?v=1782875455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf0e2f56048c9e1b1df80275cd507de4507303b.webp?v=1782875455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d2fc7128e33c963402979b573e0329b626273f.webp?v=1782875456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-353-JO03.png?v=1756198643","options":["color"],"media":[{"alt":null,"id":25961415966819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-353-JO03.png?v=1756198643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-353-JO03.png?v=1756198643","width":2000},{"alt":null,"id":27645408051299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f11e5e499f799d0c61ae0f687333a58d7a3ba7.webp?v=1782875449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f11e5e499f799d0c61ae0f687333a58d7a3ba7.webp?v=1782875449","width":2000},{"alt":null,"id":27645408215139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59149db66b40f7d46d8118f85c0f238a163c8e2b.webp?v=1782875450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59149db66b40f7d46d8118f85c0f238a163c8e2b.webp?v=1782875450","width":2000},{"alt":null,"id":27645408444515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51cc53b0f24482031d9c8641a7566a83649b0f5.webp?v=1782875450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51cc53b0f24482031d9c8641a7566a83649b0f5.webp?v=1782875450","width":2000},{"alt":null,"id":27645408673891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5b11d45bfe0106dfaed42376ede603565e46ee.webp?v=1782875451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5b11d45bfe0106dfaed42376ede603565e46ee.webp?v=1782875451","width":2000},{"alt":null,"id":27645409001571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10837bc515ff6fea2a84f85ed0d4fdd36ebafb0.webp?v=1782875452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10837bc515ff6fea2a84f85ed0d4fdd36ebafb0.webp?v=1782875452","width":2000},{"alt":null,"id":27645409329251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36439880121d912fa782c6fdc3dd1c19bf331b65.webp?v=1782875452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36439880121d912fa782c6fdc3dd1c19bf331b65.webp?v=1782875452","width":2000},{"alt":null,"id":27645409755235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb41c85179f4e594460a8319e2a8f73bbb98d7b.webp?v=1782875453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb41c85179f4e594460a8319e2a8f73bbb98d7b.webp?v=1782875453","width":2000},{"alt":null,"id":27645410181219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32de5434dc7154dbac2ed80ff398a5e0f25635f.webp?v=1782875453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32de5434dc7154dbac2ed80ff398a5e0f25635f.webp?v=1782875453","width":2000},{"alt":null,"id":27645410607203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6571b1ef9769350a01a4dbd8cb12f66d13403f.webp?v=1782875454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6571b1ef9769350a01a4dbd8cb12f66d13403f.webp?v=1782875454","width":2000},{"alt":null,"id":27645411065955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18b1f639b78be42498a6e3ba7e636c6a80a319f7.webp?v=1782875455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18b1f639b78be42498a6e3ba7e636c6a80a319f7.webp?v=1782875455","width":2000},{"alt":null,"id":27645411557475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf0e2f56048c9e1b1df80275cd507de4507303b.webp?v=1782875455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf0e2f56048c9e1b1df80275cd507de4507303b.webp?v=1782875455","width":2000},{"alt":null,"id":27645412278371,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d2fc7128e33c963402979b573e0329b626273f.webp?v=1782875456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d2fc7128e33c963402979b573e0329b626273f.webp?v=1782875456","width":2000},{"alt":null,"id":27645413228643,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43635723501667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0135352-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140522078307,"product_id":7868548513891,"position":14,"created_at":"2026-07-01T11:10:54+08:00","updated_at":"2026-07-01T11:10:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457","variant_ids":[43635723501667]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0135352-JO03","featured_media":{"alt":null,"id":27645413228643,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725074531,"title":"Dawn Clay","option1":"Dawn Clay","option2":null,"option3":null,"sku":"NST013534H-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518670435,"product_id":7868548513891,"position":8,"created_at":"2026-07-01T11:10:51+08:00","updated_at":"2026-07-01T11:10:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb41c85179f4e594460a8319e2a8f73bbb98d7b.webp?v=1782875453","variant_ids":[43635725074531]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Dawn Clay","public_title":"Dawn Clay","options":["Dawn Clay"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013534H-JO03","featured_media":{"alt":null,"id":27645409755235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffb41c85179f4e594460a8319e2a8f73bbb98d7b.webp?v=1782875453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725107299,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST013530B-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517851235,"product_id":7868548513891,"position":6,"created_at":"2026-07-01T11:10:49+08:00","updated_at":"2026-07-01T11:10:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10837bc515ff6fea2a84f85ed0d4fdd36ebafb0.webp?v=1782875452","variant_ids":[43635725107299]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013530B-JO03","featured_media":{"alt":null,"id":27645409001571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10837bc515ff6fea2a84f85ed0d4fdd36ebafb0.webp?v=1782875452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725140067,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST013534I-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519489635,"product_id":7868548513891,"position":10,"created_at":"2026-07-01T11:10:52+08:00","updated_at":"2026-07-01T11:10:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6571b1ef9769350a01a4dbd8cb12f66d13403f.webp?v=1782875454","variant_ids":[43635725140067]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013534I-JO03","featured_media":{"alt":null,"id":27645410607203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6571b1ef9769350a01a4dbd8cb12f66d13403f.webp?v=1782875454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725172835,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0135353-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518178915,"product_id":7868548513891,"position":7,"created_at":"2026-07-01T11:10:50+08:00","updated_at":"2026-07-01T11:10:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36439880121d912fa782c6fdc3dd1c19bf331b65.webp?v=1782875452","variant_ids":[43635725172835]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0135353-JO03","featured_media":{"alt":null,"id":27645409329251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36439880121d912fa782c6fdc3dd1c19bf331b65.webp?v=1782875452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43635725205603,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01353O8-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140520439907,"product_id":7868548513891,"position":12,"created_at":"2026-07-01T11:10:53+08:00","updated_at":"2026-07-01T11:10:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf0e2f56048c9e1b1df80275cd507de4507303b.webp?v=1782875455","variant_ids":[43635725205603]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01353O8-JO03","featured_media":{"alt":null,"id":27645411557475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf0e2f56048c9e1b1df80275cd507de4507303b.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43799432134755,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"NST013530F-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517556323,"product_id":7868548513891,"position":5,"created_at":"2026-07-01T11:10:49+08:00","updated_at":"2026-07-01T11:10:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5b11d45bfe0106dfaed42376ede603565e46ee.webp?v=1782875451","variant_ids":[43799432134755]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Neon Orange","public_title":"Neon Orange","options":["Neon Orange"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013530F-JO03","featured_media":{"alt":null,"id":27645408673891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d5b11d45bfe0106dfaed42376ede603565e46ee.webp?v=1782875451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43799432167523,"title":"Ultra Marine","option1":"Ultra Marine","option2":null,"option3":null,"sku":"NST013533O-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517097571,"product_id":7868548513891,"position":3,"created_at":"2026-07-01T11:10:48+08:00","updated_at":"2026-07-01T11:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59149db66b40f7d46d8118f85c0f238a163c8e2b.webp?v=1782875450","variant_ids":[43799432167523]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Ultra Marine","public_title":"Ultra Marine","options":["Ultra Marine"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013533O-JO03","featured_media":{"alt":null,"id":27645408215139,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59149db66b40f7d46d8118f85c0f238a163c8e2b.webp?v=1782875450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44200724168803,"title":"Sunflower Yellow","option1":"Sunflower Yellow","option2":null,"option3":null,"sku":"NST013536A-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519063651,"product_id":7868548513891,"position":9,"created_at":"2026-07-01T11:10:51+08:00","updated_at":"2026-07-01T11:10:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32de5434dc7154dbac2ed80ff398a5e0f25635f.webp?v=1782875453","variant_ids":[44200724168803]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Sunflower Yellow","public_title":"Sunflower Yellow","options":["Sunflower Yellow"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013536A-JO03","featured_media":{"alt":null,"id":27645410181219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c32de5434dc7154dbac2ed80ff398a5e0f25635f.webp?v=1782875453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44200724627555,"title":"Sky Blue","option1":"Sky Blue","option2":null,"option3":null,"sku":"NST013535X-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140516966499,"product_id":7868548513891,"position":2,"created_at":"2026-07-01T11:10:47+08:00","updated_at":"2026-07-01T11:10:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f11e5e499f799d0c61ae0f687333a58d7a3ba7.webp?v=1782875449","variant_ids":[44200724627555]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Sky Blue","public_title":"Sky Blue","options":["Sky Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013535X-JO03","featured_media":{"alt":null,"id":27645408051299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44f11e5e499f799d0c61ae0f687333a58d7a3ba7.webp?v=1782875449"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44200725282915,"title":"Field Green","option1":"Field Green","option2":null,"option3":null,"sku":"NST013535Y-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517326947,"product_id":7868548513891,"position":4,"created_at":"2026-07-01T11:10:48+08:00","updated_at":"2026-07-01T11:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51cc53b0f24482031d9c8641a7566a83649b0f5.webp?v=1782875450","variant_ids":[44200725282915]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Field Green","public_title":"Field Green","options":["Field Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013535Y-JO03","featured_media":{"alt":null,"id":27645408444515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d51cc53b0f24482031d9c8641a7566a83649b0f5.webp?v=1782875450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44200725938275,"title":"Blossom Pink","option1":"Blossom Pink","option2":null,"option3":null,"sku":"NST013535Z-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140521160803,"product_id":7868548513891,"position":13,"created_at":"2026-07-01T11:10:54+08:00","updated_at":"2026-07-01T11:10:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d2fc7128e33c963402979b573e0329b626273f.webp?v=1782875456","variant_ids":[44200725938275]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Blossom Pink","public_title":"Blossom Pink","options":["Blossom Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013535Z-JO03","featured_media":{"alt":null,"id":27645412278371,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d2fc7128e33c963402979b573e0329b626273f.webp?v=1782875456"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44263821541475,"title":"Translucent Matte","option1":"Translucent Matte","option2":null,"option3":null,"sku":"NST013535H-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519948387,"product_id":7868548513891,"position":11,"created_at":"2026-07-01T11:10:52+08:00","updated_at":"2026-07-01T11:10:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18b1f639b78be42498a6e3ba7e636c6a80a319f7.webp?v=1782875455","variant_ids":[44263821541475]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Translucent Matte","public_title":"Translucent Matte","options":["Translucent Matte"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST013535H-JO03","featured_media":{"alt":null,"id":27645411065955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18b1f639b78be42498a6e3ba7e636c6a80a319f7.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43635723501667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0135352-JO03","requires_shipping":true,"taxable":true,"featured_image":{"id":36140522078307,"product_id":7868548513891,"position":14,"created_at":"2026-07-01T11:10:54+08:00","updated_at":"2026-07-01T11:10:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457","variant_ids":[43635723501667]},"available":true,"name":"iPhone 17 Pro Max SolidX KID KID笑臉-草稿素描款 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0135352-JO03","featured_media":{"alt":null,"id":27645413228643,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b9aaeed5c053cd6ef6adb509d3f0677e0eae776.webp?v=1782875457"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(document).ready(function() {
var productImg = $product.images[0];
var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]);
var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate')
? [productImg, bumperImg]
: [bumperImg, productImg];
window.mergeProductImages(layers).then(function (mergedImg) {
$('.merged-img').attr('src', mergedImg);
});
});
};
var sellingStatusData
window.fetchSellingStatus().then(data => {
try {
sellingStatusData = data;
} catch (error) {
sellingStatusData = null
console.error('Unable to parse selling status', error)
}
$(document).ready(function() {
handleSellingStatus($defaultVariant.sku);
});
})
function handleSellingStatus(currentSku) {
if (!sellingStatusData) {
console.error('No selling status available!')
return
}
const sellingStatusElement = document.getElementById('selling-status')
const addToCartButton = document.getElementById('AddToCart-product-template')
const currentProductSku = currentSku.replace(/-(.*)$/, '-')
if ($variants) {
const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder]
const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku)
if (matchSellingStatusProduct.length > 0) {
const isProductPending = matchSellingStatusProduct[0].status === 'pending'
const matchDate = matchSellingStatusProduct[0].date
sellingStatus = isProductPending
? "缺貨中"
: "預購完成出貨日:" + matchDate
sellingStatusElement.textContent = sellingStatus
if (sellingStatus.includes("缺貨中")){
addToCartButton.disabled ='true';
addToCartButton.textContent = "缺貨中無法加入購物車"
} else {
addToCartButton.textContent = "加到購物車"
}
} else {
sellingStatusElement.textContent = ''
addToCartButton.textContent = "加到購物車"
};
};
};
document.addEventListener('DOMContentLoaded', function () {
var currentVariantSelect = document.getElementById('SingleOptionSelector-0')
currentVariantSelect.addEventListener('change', function() {
var currentSku = $('#current_sku').text()
var skuElement = document.getElementById('current-sku')
skuElement.textContent = currentSku
handleSellingStatus(currentSku)
});
});
// Override default values of shop.strings for each template.
// Alternate product templates can change values of
// add to cart button, sold out, and unavailable states here.
theme.productStrings = {
addToCart: "加到購物車",
soldOut: "售完",
unavailable: "停產"
}