$product = {"id":7815627407459,"title":"AirPods Pro AirPods Case 小玉米花 金盞花","handle":"airpods-pro-airpods-case-bundle-front-crossover-design-eg12","description":null,"published_at":"2025-06-11T15:26:45+08:00","created_at":"2025-06-11T14:26:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-Airpods Pro","merge","reseller-littlepopcorn"],"price":75000,"price_min":75000,"price_max":75000,"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":43444858912867,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"ABT01171P2-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012264628323,"product_id":7815627407459,"position":31,"created_at":"2025-06-12T10:08:43+08:00","updated_at":"2025-06-12T10:08:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125","variant_ids":[43444858912867]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171P2-EG12","featured_media":{"alt":null,"id":25692855697507,"position":31,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444858945635,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"ABT01171O9-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012264005731,"product_id":7815627407459,"position":30,"created_at":"2025-06-12T10:08:43+08:00","updated_at":"2025-06-12T10:08:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_5249f2f7-8e2d-4319-b549-8f54916d7295.webp?v=1749694125","variant_ids":[43444858945635]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171O9-EG12","featured_media":{"alt":null,"id":25692854812771,"position":30,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_5249f2f7-8e2d-4319-b549-8f54916d7295.webp?v=1749694125"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444858978403,"title":"Antique Bronze","option1":"Antique Bronze","option2":null,"option3":null,"sku":"ABT01171P0-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012266135651,"product_id":7815627407459,"position":32,"created_at":"2025-06-12T10:08:44+08:00","updated_at":"2025-06-12T10:08:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_de73ce50-3997-4039-83e7-dfe7d162f049.webp?v=1749694126","variant_ids":[43444858978403]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Antique Bronze","public_title":"Antique Bronze","options":["Antique Bronze"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171P0-EG12","featured_media":{"alt":null,"id":25692856057955,"position":32,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_de73ce50-3997-4039-83e7-dfe7d162f049.webp?v=1749694126"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444859011171,"title":"Transparent","option1":"Transparent","option2":null,"option3":null,"sku":"ABT01171R4-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012260139107,"product_id":7815627407459,"position":26,"created_at":"2025-06-12T10:08:40+08:00","updated_at":"2025-06-12T10:08:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_5bc3af45-dd49-4815-a7bc-cbdc2086a0ff.webp?v=1749694122","variant_ids":[43444859011171]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Transparent","public_title":"Transparent","options":["Transparent"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171R4-EG12","featured_media":{"alt":null,"id":25692853076067,"position":26,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_5bc3af45-dd49-4815-a7bc-cbdc2086a0ff.webp?v=1749694122"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444859043939,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"ABT0117152-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012263317603,"product_id":7815627407459,"position":29,"created_at":"2025-06-12T10:08:42+08:00","updated_at":"2025-06-12T10:08:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_14cab8a8-b653-473a-9169-f12a6605a272.webp?v=1749694124","variant_ids":[43444859043939]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Black","public_title":"Black","options":["Black"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT0117152-EG12","featured_media":{"alt":null,"id":25692854386787,"position":29,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_14cab8a8-b653-473a-9169-f12a6605a272.webp?v=1749694124"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444859109475,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"ABT01171O8-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012259024995,"product_id":7815627407459,"position":25,"created_at":"2025-06-12T10:08:40+08:00","updated_at":"2025-06-12T10:08:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_f72b0dff-d5e6-46a2-8cdd-8f2e797c684e.webp?v=1749694121","variant_ids":[43444859109475]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171O8-EG12","featured_media":{"alt":null,"id":25692852453475,"position":25,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_f72b0dff-d5e6-46a2-8cdd-8f2e797c684e.webp?v=1749694121"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb.webp?v=1749623187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c.webp?v=1749623187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663.webp?v=1749623188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a.webp?v=1749623188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88.webp?v=1749623189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15.webp?v=1749623189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725.webp?v=1749623190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f.webp?v=1749623190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_67d1793f-135a-40fb-9e11-ee5acec1d5af.webp?v=1749624459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_c8e708b0-7c4d-49aa-98f7-a666a4fb6f3f.webp?v=1749624460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_90249ed7-5844-4d8f-9821-8ab197c824a3.webp?v=1749624461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_b96f9fba-3d95-4211-87a8-309315086f18.webp?v=1749624461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_cfc4fc66-065e-4a53-9b6b-adb624bbdb48.webp?v=1749624462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_112bd731-8ebd-4819-972b-a6602d8230af.webp?v=1749624462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_db5b1288-c6f2-463a-8bdf-34a0086d9f20.webp?v=1749624463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_cba3fb34-c0ae-4d4a-98db-3c79acd0b0ca.webp?v=1749624463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_780f9590-6991-46eb-8d77-eb235f0b11c2.webp?v=1749625384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_dacf523d-8c8c-45b3-8617-aef5ee353d81.webp?v=1749625384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_75619acd-be30-47f2-8691-6bfdc649f712.webp?v=1749625385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_f3929994-9fe6-43d2-b1d0-4a2e6ecdf1b7.webp?v=1749625385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_ec6597ba-5960-4a13-abef-0035293525e0.webp?v=1749625387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_4b6842c4-a6ce-457c-a1c4-f9344ab1c567.webp?v=1749625387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_9ede34e5-b277-4fdf-b3d9-dbe8f066c7ea.webp?v=1749625388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_50b56b69-1529-4184-abab-b0b3175e04f7.webp?v=1749625388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_f72b0dff-d5e6-46a2-8cdd-8f2e797c684e.webp?v=1749694121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_5bc3af45-dd49-4815-a7bc-cbdc2086a0ff.webp?v=1749694122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_a8250043-72a1-4671-aade-51e1418adc3d.webp?v=1749694123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_fe547986-8bc7-41f5-b7cc-96bb357b2793.webp?v=1749694123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_14cab8a8-b653-473a-9169-f12a6605a272.webp?v=1749694124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_5249f2f7-8e2d-4319-b549-8f54916d7295.webp?v=1749694125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_de73ce50-3997-4039-83e7-dfe7d162f049.webp?v=1749694126"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb.webp?v=1749623187","options":["color"],"media":[{"alt":null,"id":25689516834915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb.webp?v=1749623187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb.webp?v=1749623187","width":2000},{"alt":null,"id":25689517129827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c.webp?v=1749623187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c.webp?v=1749623187","width":2000},{"alt":null,"id":25689517359203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663.webp?v=1749623188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663.webp?v=1749623188","width":2000},{"alt":null,"id":25689517457507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a.webp?v=1749623188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a.webp?v=1749623188","width":2000},{"alt":null,"id":25689517654115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88.webp?v=1749623189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88.webp?v=1749623189","width":2000},{"alt":null,"id":25689517719651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15.webp?v=1749623189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15.webp?v=1749623189","width":2000},{"alt":null,"id":25689517883491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725.webp?v=1749623190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725.webp?v=1749623190","width":2000},{"alt":null,"id":25689518112867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f.webp?v=1749623190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f.webp?v=1749623190","width":2000},{"alt":null,"id":25689729499235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_67d1793f-135a-40fb-9e11-ee5acec1d5af.webp?v=1749624459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_67d1793f-135a-40fb-9e11-ee5acec1d5af.webp?v=1749624459","width":2000},{"alt":null,"id":25689729597539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_c8e708b0-7c4d-49aa-98f7-a666a4fb6f3f.webp?v=1749624460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_c8e708b0-7c4d-49aa-98f7-a666a4fb6f3f.webp?v=1749624460","width":2000},{"alt":null,"id":25689729794147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_90249ed7-5844-4d8f-9821-8ab197c824a3.webp?v=1749624461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_90249ed7-5844-4d8f-9821-8ab197c824a3.webp?v=1749624461","width":2000},{"alt":null,"id":25689730023523,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_b96f9fba-3d95-4211-87a8-309315086f18.webp?v=1749624461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_b96f9fba-3d95-4211-87a8-309315086f18.webp?v=1749624461","width":2000},{"alt":null,"id":25689730252899,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_cfc4fc66-065e-4a53-9b6b-adb624bbdb48.webp?v=1749624462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_cfc4fc66-065e-4a53-9b6b-adb624bbdb48.webp?v=1749624462","width":2000},{"alt":null,"id":25689730482275,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_112bd731-8ebd-4819-972b-a6602d8230af.webp?v=1749624462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_112bd731-8ebd-4819-972b-a6602d8230af.webp?v=1749624462","width":2000},{"alt":null,"id":25689730744419,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_db5b1288-c6f2-463a-8bdf-34a0086d9f20.webp?v=1749624463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_db5b1288-c6f2-463a-8bdf-34a0086d9f20.webp?v=1749624463","width":2000},{"alt":null,"id":25689730875491,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_cba3fb34-c0ae-4d4a-98db-3c79acd0b0ca.webp?v=1749624463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_cba3fb34-c0ae-4d4a-98db-3c79acd0b0ca.webp?v=1749624463","width":2000},{"alt":null,"id":25689961594979,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_780f9590-6991-46eb-8d77-eb235f0b11c2.webp?v=1749625384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_780f9590-6991-46eb-8d77-eb235f0b11c2.webp?v=1749625384","width":2000},{"alt":null,"id":25689961889891,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_dacf523d-8c8c-45b3-8617-aef5ee353d81.webp?v=1749625384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_dacf523d-8c8c-45b3-8617-aef5ee353d81.webp?v=1749625384","width":2000},{"alt":null,"id":25689962152035,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_75619acd-be30-47f2-8691-6bfdc649f712.webp?v=1749625385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_75619acd-be30-47f2-8691-6bfdc649f712.webp?v=1749625385","width":2000},{"alt":null,"id":25689962381411,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_f3929994-9fe6-43d2-b1d0-4a2e6ecdf1b7.webp?v=1749625385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_f3929994-9fe6-43d2-b1d0-4a2e6ecdf1b7.webp?v=1749625385","width":2000},{"alt":null,"id":25689962676323,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_ec6597ba-5960-4a13-abef-0035293525e0.webp?v=1749625387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_ec6597ba-5960-4a13-abef-0035293525e0.webp?v=1749625387","width":2000},{"alt":null,"id":25689963004003,"position":22,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_4b6842c4-a6ce-457c-a1c4-f9344ab1c567.webp?v=1749625387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_4b6842c4-a6ce-457c-a1c4-f9344ab1c567.webp?v=1749625387","width":2000},{"alt":null,"id":25689963266147,"position":23,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_9ede34e5-b277-4fdf-b3d9-dbe8f066c7ea.webp?v=1749625388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_9ede34e5-b277-4fdf-b3d9-dbe8f066c7ea.webp?v=1749625388","width":2000},{"alt":null,"id":25689963593827,"position":24,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_50b56b69-1529-4184-abab-b0b3175e04f7.webp?v=1749625388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_50b56b69-1529-4184-abab-b0b3175e04f7.webp?v=1749625388","width":2000},{"alt":null,"id":25692852453475,"position":25,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_f72b0dff-d5e6-46a2-8cdd-8f2e797c684e.webp?v=1749694121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_f72b0dff-d5e6-46a2-8cdd-8f2e797c684e.webp?v=1749694121","width":2000},{"alt":null,"id":25692853076067,"position":26,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_5bc3af45-dd49-4815-a7bc-cbdc2086a0ff.webp?v=1749694122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_5bc3af45-dd49-4815-a7bc-cbdc2086a0ff.webp?v=1749694122","width":2000},{"alt":null,"id":25692853469283,"position":27,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_a8250043-72a1-4671-aade-51e1418adc3d.webp?v=1749694123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a6b14f2acf5abe1123ff3326cd0f6103dafab15_a8250043-72a1-4671-aade-51e1418adc3d.webp?v=1749694123","width":2000},{"alt":null,"id":25692853960803,"position":28,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_fe547986-8bc7-41f5-b7cc-96bb357b2793.webp?v=1749694123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c67cab1736d688f4d7a99b55e87861ecf98d75c_fe547986-8bc7-41f5-b7cc-96bb357b2793.webp?v=1749694123","width":2000},{"alt":null,"id":25692854386787,"position":29,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_14cab8a8-b653-473a-9169-f12a6605a272.webp?v=1749694124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_14cab8a8-b653-473a-9169-f12a6605a272.webp?v=1749694124","width":2000},{"alt":null,"id":25692854812771,"position":30,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_5249f2f7-8e2d-4319-b549-8f54916d7295.webp?v=1749694125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_5249f2f7-8e2d-4319-b549-8f54916d7295.webp?v=1749694125","width":2000},{"alt":null,"id":25692855697507,"position":31,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125","width":2000},{"alt":null,"id":25692856057955,"position":32,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_de73ce50-3997-4039-83e7-dfe7d162f049.webp?v=1749694126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_de73ce50-3997-4039-83e7-dfe7d162f049.webp?v=1749694126","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43444858912867,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"ABT01171P2-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012264628323,"product_id":7815627407459,"position":31,"created_at":"2025-06-12T10:08:43+08:00","updated_at":"2025-06-12T10:08:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125","variant_ids":[43444858912867]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171P2-EG12","featured_media":{"alt":null,"id":25692855697507,"position":31,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444858945635,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"ABT01171O9-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012264005731,"product_id":7815627407459,"position":30,"created_at":"2025-06-12T10:08:43+08:00","updated_at":"2025-06-12T10:08:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_5249f2f7-8e2d-4319-b549-8f54916d7295.webp?v=1749694125","variant_ids":[43444858945635]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171O9-EG12","featured_media":{"alt":null,"id":25692854812771,"position":30,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5b4f66c4f561520cfb3d15b6fda3474903fa3a_5249f2f7-8e2d-4319-b549-8f54916d7295.webp?v=1749694125"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444858978403,"title":"Antique Bronze","option1":"Antique Bronze","option2":null,"option3":null,"sku":"ABT01171P0-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012266135651,"product_id":7815627407459,"position":32,"created_at":"2025-06-12T10:08:44+08:00","updated_at":"2025-06-12T10:08:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_de73ce50-3997-4039-83e7-dfe7d162f049.webp?v=1749694126","variant_ids":[43444858978403]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Antique Bronze","public_title":"Antique Bronze","options":["Antique Bronze"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171P0-EG12","featured_media":{"alt":null,"id":25692856057955,"position":32,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae2ddb613ae3528e735a58bb87179503ab0f18f_de73ce50-3997-4039-83e7-dfe7d162f049.webp?v=1749694126"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444859011171,"title":"Transparent","option1":"Transparent","option2":null,"option3":null,"sku":"ABT01171R4-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012260139107,"product_id":7815627407459,"position":26,"created_at":"2025-06-12T10:08:40+08:00","updated_at":"2025-06-12T10:08:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_5bc3af45-dd49-4815-a7bc-cbdc2086a0ff.webp?v=1749694122","variant_ids":[43444859011171]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Transparent","public_title":"Transparent","options":["Transparent"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171R4-EG12","featured_media":{"alt":null,"id":25692853076067,"position":26,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc1cbbbfcdbf7c665f8a06177ccb7cf841d7663_5bc3af45-dd49-4815-a7bc-cbdc2086a0ff.webp?v=1749694122"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444859043939,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"ABT0117152-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012263317603,"product_id":7815627407459,"position":29,"created_at":"2025-06-12T10:08:42+08:00","updated_at":"2025-06-12T10:08:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_14cab8a8-b653-473a-9169-f12a6605a272.webp?v=1749694124","variant_ids":[43444859043939]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Black","public_title":"Black","options":["Black"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT0117152-EG12","featured_media":{"alt":null,"id":25692854386787,"position":29,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13786a763a8fec783c149a4ac0ed973620fc5725_14cab8a8-b653-473a-9169-f12a6605a272.webp?v=1749694124"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444859109475,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"ABT01171O8-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012259024995,"product_id":7815627407459,"position":25,"created_at":"2025-06-12T10:08:40+08:00","updated_at":"2025-06-12T10:08:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_f72b0dff-d5e6-46a2-8cdd-8f2e797c684e.webp?v=1749694121","variant_ids":[43444859109475]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171O8-EG12","featured_media":{"alt":null,"id":25692852453475,"position":25,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c319868d4054d6d031d30e6cafbf05618bfa1fcb_f72b0dff-d5e6-46a2-8cdd-8f2e797c684e.webp?v=1749694121"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43444858912867,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"ABT01171P2-EG12","requires_shipping":true,"taxable":true,"featured_image":{"id":34012264628323,"product_id":7815627407459,"position":31,"created_at":"2025-06-12T10:08:43+08:00","updated_at":"2025-06-12T10:08:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125","variant_ids":[43444858912867]},"available":true,"name":"AirPods Pro AirPods Case 小玉米花 金盞花 - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":75000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"ABT01171P2-EG12","featured_media":{"alt":null,"id":25692855697507,"position":31,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc11e131c0f09efb23b0d204494efb491a687e88_19e0a45c-cc47-4057-ab26-c059b8e3ed33.webp?v=1749694125"}},"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: "停產"
}