$product = {"id":7868410855523,"title":"iPhone 17 Pro Max SolidX KID 黑色小鴨淺潛水款","handle":"iphone-17-pro-max-solidx-jo01","description":null,"published_at":"2025-09-10T01:26:29+08:00","created_at":"2025-08-26T16:42:10+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":43634904760419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0135352-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517130339,"product_id":7868410855523,"position":2,"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\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450","variant_ids":[43634904760419]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408247907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634906955875,"title":"Dawn Clay","option1":"Dawn Clay","option2":null,"option3":null,"sku":"NST013534H-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140520243299,"product_id":7868410855523,"position":11,"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\/1277b60efc9e72592569c939c5c2329cc5523c3b.webp?v=1782875455","variant_ids":[43634906955875]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645411360867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1277b60efc9e72592569c939c5c2329cc5523c3b.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634906988643,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST013530B-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519719011,"product_id":7868410855523,"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\/211958e2fafe9fe66477bad39f9d8f08d821719a.webp?v=1782875454","variant_ids":[43634906988643]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645410836579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/211958e2fafe9fe66477bad39f9d8f08d821719a.webp?v=1782875454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634907021411,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST013534I-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140520833123,"product_id":7868410855523,"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\/43ae74146287ec7d908b7c4b08294a0511404017.webp?v=1782875455","variant_ids":[43634907021411]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645411950691,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ae74146287ec7d908b7c4b08294a0511404017.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634907054179,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0135353-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140522111075,"product_id":7868410855523,"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\/1eb3ca9d4ffd69ef0d87a291a49d8e2333354e53.webp?v=1782875457","variant_ids":[43634907054179]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645413195875,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb3ca9d4ffd69ef0d87a291a49d8e2333354e53.webp?v=1782875457"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634907086947,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01353O8-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517359715,"product_id":7868410855523,"position":3,"created_at":"2026-07-01T11:10:48+08:00","updated_at":"2026-07-01T11:10:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b79a84987e0b60fd8fad86780d4855ad25e1786.webp?v=1782875451","variant_ids":[43634907086947]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408477283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b79a84987e0b60fd8fad86780d4855ad25e1786.webp?v=1782875451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43799336910947,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"NST013530F-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519260259,"product_id":7868410855523,"position":9,"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\/6589ee26120c2e8f0f0238b61373ded88cc71608.webp?v=1782875454","variant_ids":[43799336910947]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645410377827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6589ee26120c2e8f0f0238b61373ded88cc71608.webp?v=1782875454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43799336943715,"title":"Ultra Marine","option1":"Ultra Marine","option2":null,"option3":null,"sku":"NST013533O-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140521390179,"product_id":7868410855523,"position":13,"created_at":"2026-07-01T11:10:54+08:00","updated_at":"2026-07-01T11:10:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9bbda71b378a596120ea435a62d2b191bdc8049.webp?v=1782875455","variant_ids":[43799336943715]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645412507747,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9bbda71b378a596120ea435a62d2b191bdc8049.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44199534526563,"title":"Sunflower Yellow","option1":"Sunflower Yellow","option2":null,"option3":null,"sku":"NST013536A-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518899811,"product_id":7868410855523,"position":8,"created_at":"2026-07-01T11:10:51+08:00","updated_at":"2026-07-01T11:10:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/774595e77254a119dd4b00e0ae6100cc0d46d2e4.webp?v=1782875454","variant_ids":[44199534526563]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645410017379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/774595e77254a119dd4b00e0ae6100cc0d46d2e4.webp?v=1782875454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44199535280227,"title":"Sky Blue","option1":"Sky Blue","option2":null,"option3":null,"sku":"NST013535X-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517589091,"product_id":7868410855523,"position":4,"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\/67d05c4bed619303b15d62d08e7d7f5042653f37.webp?v=1782875451","variant_ids":[44199535280227]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408706659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d05c4bed619303b15d62d08e7d7f5042653f37.webp?v=1782875451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44199535935587,"title":"Field Green","option1":"Field Green","option2":null,"option3":null,"sku":"NST013535Y-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518309987,"product_id":7868410855523,"position":6,"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\/b852a72c10a268e3a0e938e9c03bd5303fe71557.webp?v=1782875452","variant_ids":[44199535935587]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645409427555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b852a72c10a268e3a0e938e9c03bd5303fe71557.webp?v=1782875452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44199536787555,"title":"Blossom Pink","option1":"Blossom Pink","option2":null,"option3":null,"sku":"NST013535Z-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518572131,"product_id":7868410855523,"position":7,"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\/b6245847b4a09182ce83fad050951d071c961231.webp?v=1782875453","variant_ids":[44199536787555]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645409689699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6245847b4a09182ce83fad050951d071c961231.webp?v=1782875453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44263821443171,"title":"Translucent Matte","option1":"Translucent Matte","option2":null,"option3":null,"sku":"NST013535H-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517884003,"product_id":7868410855523,"position":5,"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\/273397510c6af60bfaf573163961bf884778d77e.webp?v=1782875452","variant_ids":[44263821443171]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408968803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/273397510c6af60bfaf573163961bf884778d77e.webp?v=1782875452"}},"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-JO01.png?v=1756197733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b79a84987e0b60fd8fad86780d4855ad25e1786.webp?v=1782875451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d05c4bed619303b15d62d08e7d7f5042653f37.webp?v=1782875451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/273397510c6af60bfaf573163961bf884778d77e.webp?v=1782875452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b852a72c10a268e3a0e938e9c03bd5303fe71557.webp?v=1782875452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6245847b4a09182ce83fad050951d071c961231.webp?v=1782875453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/774595e77254a119dd4b00e0ae6100cc0d46d2e4.webp?v=1782875454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6589ee26120c2e8f0f0238b61373ded88cc71608.webp?v=1782875454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/211958e2fafe9fe66477bad39f9d8f08d821719a.webp?v=1782875454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1277b60efc9e72592569c939c5c2329cc5523c3b.webp?v=1782875455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ae74146287ec7d908b7c4b08294a0511404017.webp?v=1782875455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9bbda71b378a596120ea435a62d2b191bdc8049.webp?v=1782875455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb3ca9d4ffd69ef0d87a291a49d8e2333354e53.webp?v=1782875457"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-353-JO01.png?v=1756197733","options":["color"],"media":[{"alt":null,"id":25961250127971,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-353-JO01.png?v=1756197733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-353-JO01.png?v=1756197733","width":2000},{"alt":null,"id":27645408247907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450","width":2000},{"alt":null,"id":27645408477283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b79a84987e0b60fd8fad86780d4855ad25e1786.webp?v=1782875451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b79a84987e0b60fd8fad86780d4855ad25e1786.webp?v=1782875451","width":2000},{"alt":null,"id":27645408706659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d05c4bed619303b15d62d08e7d7f5042653f37.webp?v=1782875451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d05c4bed619303b15d62d08e7d7f5042653f37.webp?v=1782875451","width":2000},{"alt":null,"id":27645408968803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/273397510c6af60bfaf573163961bf884778d77e.webp?v=1782875452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/273397510c6af60bfaf573163961bf884778d77e.webp?v=1782875452","width":2000},{"alt":null,"id":27645409427555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b852a72c10a268e3a0e938e9c03bd5303fe71557.webp?v=1782875452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b852a72c10a268e3a0e938e9c03bd5303fe71557.webp?v=1782875452","width":2000},{"alt":null,"id":27645409689699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6245847b4a09182ce83fad050951d071c961231.webp?v=1782875453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6245847b4a09182ce83fad050951d071c961231.webp?v=1782875453","width":2000},{"alt":null,"id":27645410017379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/774595e77254a119dd4b00e0ae6100cc0d46d2e4.webp?v=1782875454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/774595e77254a119dd4b00e0ae6100cc0d46d2e4.webp?v=1782875454","width":2000},{"alt":null,"id":27645410377827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6589ee26120c2e8f0f0238b61373ded88cc71608.webp?v=1782875454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6589ee26120c2e8f0f0238b61373ded88cc71608.webp?v=1782875454","width":2000},{"alt":null,"id":27645410836579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/211958e2fafe9fe66477bad39f9d8f08d821719a.webp?v=1782875454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/211958e2fafe9fe66477bad39f9d8f08d821719a.webp?v=1782875454","width":2000},{"alt":null,"id":27645411360867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1277b60efc9e72592569c939c5c2329cc5523c3b.webp?v=1782875455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1277b60efc9e72592569c939c5c2329cc5523c3b.webp?v=1782875455","width":2000},{"alt":null,"id":27645411950691,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ae74146287ec7d908b7c4b08294a0511404017.webp?v=1782875455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ae74146287ec7d908b7c4b08294a0511404017.webp?v=1782875455","width":2000},{"alt":null,"id":27645412507747,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9bbda71b378a596120ea435a62d2b191bdc8049.webp?v=1782875455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9bbda71b378a596120ea435a62d2b191bdc8049.webp?v=1782875455","width":2000},{"alt":null,"id":27645413195875,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb3ca9d4ffd69ef0d87a291a49d8e2333354e53.webp?v=1782875457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb3ca9d4ffd69ef0d87a291a49d8e2333354e53.webp?v=1782875457","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43634904760419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0135352-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517130339,"product_id":7868410855523,"position":2,"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\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450","variant_ids":[43634904760419]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408247907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634906955875,"title":"Dawn Clay","option1":"Dawn Clay","option2":null,"option3":null,"sku":"NST013534H-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140520243299,"product_id":7868410855523,"position":11,"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\/1277b60efc9e72592569c939c5c2329cc5523c3b.webp?v=1782875455","variant_ids":[43634906955875]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645411360867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1277b60efc9e72592569c939c5c2329cc5523c3b.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634906988643,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST013530B-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519719011,"product_id":7868410855523,"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\/211958e2fafe9fe66477bad39f9d8f08d821719a.webp?v=1782875454","variant_ids":[43634906988643]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645410836579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/211958e2fafe9fe66477bad39f9d8f08d821719a.webp?v=1782875454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634907021411,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST013534I-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140520833123,"product_id":7868410855523,"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\/43ae74146287ec7d908b7c4b08294a0511404017.webp?v=1782875455","variant_ids":[43634907021411]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645411950691,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ae74146287ec7d908b7c4b08294a0511404017.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634907054179,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0135353-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140522111075,"product_id":7868410855523,"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\/1eb3ca9d4ffd69ef0d87a291a49d8e2333354e53.webp?v=1782875457","variant_ids":[43634907054179]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645413195875,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb3ca9d4ffd69ef0d87a291a49d8e2333354e53.webp?v=1782875457"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43634907086947,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01353O8-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517359715,"product_id":7868410855523,"position":3,"created_at":"2026-07-01T11:10:48+08:00","updated_at":"2026-07-01T11:10:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b79a84987e0b60fd8fad86780d4855ad25e1786.webp?v=1782875451","variant_ids":[43634907086947]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408477283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b79a84987e0b60fd8fad86780d4855ad25e1786.webp?v=1782875451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43799336910947,"title":"Neon Orange","option1":"Neon Orange","option2":null,"option3":null,"sku":"NST013530F-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140519260259,"product_id":7868410855523,"position":9,"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\/6589ee26120c2e8f0f0238b61373ded88cc71608.webp?v=1782875454","variant_ids":[43799336910947]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645410377827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6589ee26120c2e8f0f0238b61373ded88cc71608.webp?v=1782875454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43799336943715,"title":"Ultra Marine","option1":"Ultra Marine","option2":null,"option3":null,"sku":"NST013533O-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140521390179,"product_id":7868410855523,"position":13,"created_at":"2026-07-01T11:10:54+08:00","updated_at":"2026-07-01T11:10:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9bbda71b378a596120ea435a62d2b191bdc8049.webp?v=1782875455","variant_ids":[43799336943715]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645412507747,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9bbda71b378a596120ea435a62d2b191bdc8049.webp?v=1782875455"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44199534526563,"title":"Sunflower Yellow","option1":"Sunflower Yellow","option2":null,"option3":null,"sku":"NST013536A-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518899811,"product_id":7868410855523,"position":8,"created_at":"2026-07-01T11:10:51+08:00","updated_at":"2026-07-01T11:10:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/774595e77254a119dd4b00e0ae6100cc0d46d2e4.webp?v=1782875454","variant_ids":[44199534526563]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645410017379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/774595e77254a119dd4b00e0ae6100cc0d46d2e4.webp?v=1782875454"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44199535280227,"title":"Sky Blue","option1":"Sky Blue","option2":null,"option3":null,"sku":"NST013535X-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517589091,"product_id":7868410855523,"position":4,"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\/67d05c4bed619303b15d62d08e7d7f5042653f37.webp?v=1782875451","variant_ids":[44199535280227]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408706659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d05c4bed619303b15d62d08e7d7f5042653f37.webp?v=1782875451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44199535935587,"title":"Field Green","option1":"Field Green","option2":null,"option3":null,"sku":"NST013535Y-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518309987,"product_id":7868410855523,"position":6,"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\/b852a72c10a268e3a0e938e9c03bd5303fe71557.webp?v=1782875452","variant_ids":[44199535935587]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645409427555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b852a72c10a268e3a0e938e9c03bd5303fe71557.webp?v=1782875452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44199536787555,"title":"Blossom Pink","option1":"Blossom Pink","option2":null,"option3":null,"sku":"NST013535Z-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140518572131,"product_id":7868410855523,"position":7,"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\/b6245847b4a09182ce83fad050951d071c961231.webp?v=1782875453","variant_ids":[44199536787555]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645409689699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6245847b4a09182ce83fad050951d071c961231.webp?v=1782875453"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44263821443171,"title":"Translucent Matte","option1":"Translucent Matte","option2":null,"option3":null,"sku":"NST013535H-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517884003,"product_id":7868410855523,"position":5,"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\/273397510c6af60bfaf573163961bf884778d77e.webp?v=1782875452","variant_ids":[44263821443171]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408968803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/273397510c6af60bfaf573163961bf884778d77e.webp?v=1782875452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43634904760419,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0135352-JO01","requires_shipping":true,"taxable":true,"featured_image":{"id":36140517130339,"product_id":7868410855523,"position":2,"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\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450","variant_ids":[43634904760419]},"available":true,"name":"iPhone 17 Pro Max SolidX 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-JO01","featured_media":{"alt":null,"id":27645408247907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda08c92a844dd57cc84fc97accb59f25607b9da.webp?v=1782875450"}},"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: "停產"
}