$product = {"id":7815649099875,"title":"AirPods Pro AirPods Case 小玉米花 新年恐龍","handle":"airpods-pro-airpods-case-bundle-front-crossover-design-eg13","description":null,"published_at":"2025-06-11T15:14:56+08:00","created_at":"2025-06-11T14:31:09+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":43444950564963,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"ABT01171P2-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012002418787,"product_id":7815649099875,"position":32,"created_at":"2025-06-12T10:04:59+08:00","updated_at":"2025-06-12T10:05:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901","variant_ids":[43444950564963]},"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-EG13","featured_media":{"alt":null,"id":25692720660579,"position":32,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950597731,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"ABT01171O9-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012002091107,"product_id":7815649099875,"position":31,"created_at":"2025-06-12T10:04:58+08:00","updated_at":"2025-06-12T10:05:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_61c78c1e-6b77-4a2f-a3aa-98785b1e7eb1.webp?v=1749693900","variant_ids":[43444950597731]},"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-EG13","featured_media":{"alt":null,"id":25692720398435,"position":31,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_61c78c1e-6b77-4a2f-a3aa-98785b1e7eb1.webp?v=1749693900"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950630499,"title":"Antique Bronze","option1":"Antique Bronze","option2":null,"option3":null,"sku":"ABT01171P0-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34011999797347,"product_id":7815649099875,"position":28,"created_at":"2025-06-12T10:04:55+08:00","updated_at":"2025-06-12T10:04:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_306ae698-7886-423f-b944-0888a88548c3.webp?v=1749693897","variant_ids":[43444950630499]},"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-EG13","featured_media":{"alt":null,"id":25692719087715,"position":28,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_306ae698-7886-423f-b944-0888a88548c3.webp?v=1749693897"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950663267,"title":"Transparent","option1":"Transparent","option2":null,"option3":null,"sku":"ABT01171R4-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012001042531,"product_id":7815649099875,"position":29,"created_at":"2025-06-12T10:04:57+08:00","updated_at":"2025-06-12T10:04:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_ea72af04-f617-49a8-98d3-14269f40f9a5.webp?v=1749693899","variant_ids":[43444950663267]},"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-EG13","featured_media":{"alt":null,"id":25692720103523,"position":29,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_ea72af04-f617-49a8-98d3-14269f40f9a5.webp?v=1749693899"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950696035,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"ABT0117152-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012001534051,"product_id":7815649099875,"position":30,"created_at":"2025-06-12T10:04:58+08:00","updated_at":"2025-06-12T10:04:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_e0fc4e6c-34cd-459f-9591-99f65ce249ea.webp?v=1749693899","variant_ids":[43444950696035]},"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-EG13","featured_media":{"alt":null,"id":25692720300131,"position":30,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_e0fc4e6c-34cd-459f-9591-99f65ce249ea.webp?v=1749693899"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950761571,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"ABT01171O8-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34011997798499,"product_id":7815649099875,"position":25,"created_at":"2025-06-12T10:04:54+08:00","updated_at":"2025-06-12T10:04:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_79aaf942-7b3e-4fe3-8de2-60914f893578.webp?v=1749693895","variant_ids":[43444950761571]},"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-EG13","featured_media":{"alt":null,"id":25692717875299,"position":25,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_79aaf942-7b3e-4fe3-8de2-60914f893578.webp?v=1749693895"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80.webp?v=1749623475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4.webp?v=1749623475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7.webp?v=1749623476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5.webp?v=1749623476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066.webp?v=1749623477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba.webp?v=1749623477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5.webp?v=1749623478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b.webp?v=1749623478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_f8ae78d3-be86-4f3c-acb5-cb6c28b09eca.webp?v=1749624723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_7dfd1f89-aa15-4747-86de-dd3632321225.webp?v=1749624724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_44cd294c-ae9c-4d71-9577-245a19809aa6.webp?v=1749624724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_f70a2f14-afb0-46a7-a5e0-c4f378e14b51.webp?v=1749624725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_a7a8c9c7-2bac-4a41-a9e6-feac066203e0.webp?v=1749624726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_cccec922-19f2-4ae0-b03e-d605597db481.webp?v=1749624726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_ef0fc931-0e2f-43dc-94d3-a6d3456366e5.webp?v=1749624727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_a50a0cbc-9b09-49c5-a715-fe1afa73f41f.webp?v=1749624727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_3e98755a-2cdb-401a-8f89-38c7a769a25d.webp?v=1749625355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_70c9393e-b91d-42cf-8528-a44c8032332d.webp?v=1749625356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_7dc3660c-652a-4fba-9115-5d368a8e5ffd.webp?v=1749625356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_98aebf6a-a9a2-471a-a778-6910069b8098.webp?v=1749625357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_70261335-a524-4141-b2a7-745b5c35e3d1.webp?v=1749625357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_2782477b-6a26-4253-8b29-9f19a40ec0da.webp?v=1749625358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_9102739b-27e9-44dd-854c-5a4878457173.webp?v=1749625358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_07e6131d-2890-4c18-aa01-fb876027fc2d.webp?v=1749625359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_79aaf942-7b3e-4fe3-8de2-60914f893578.webp?v=1749693895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_e0b2f636-31da-42ac-9cd9-7731fadbb706.webp?v=1749693896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_9284aaf2-1c1e-4a58-bbb5-25bf634c142f.webp?v=1749693896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_306ae698-7886-423f-b944-0888a88548c3.webp?v=1749693897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_ea72af04-f617-49a8-98d3-14269f40f9a5.webp?v=1749693899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_e0fc4e6c-34cd-459f-9591-99f65ce249ea.webp?v=1749693899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_61c78c1e-6b77-4a2f-a3aa-98785b1e7eb1.webp?v=1749693900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80.webp?v=1749623475","options":["color"],"media":[{"alt":null,"id":25689617694819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80.webp?v=1749623475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80.webp?v=1749623475","width":2000},{"alt":null,"id":25689617858659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4.webp?v=1749623475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4.webp?v=1749623475","width":2000},{"alt":null,"id":25689618088035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7.webp?v=1749623476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7.webp?v=1749623476","width":2000},{"alt":null,"id":25689618317411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5.webp?v=1749623476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5.webp?v=1749623476","width":2000},{"alt":null,"id":25689618645091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066.webp?v=1749623477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066.webp?v=1749623477","width":2000},{"alt":null,"id":25689618940003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba.webp?v=1749623477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba.webp?v=1749623477","width":2000},{"alt":null,"id":25689619169379,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5.webp?v=1749623478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5.webp?v=1749623478","width":2000},{"alt":null,"id":25689619497059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b.webp?v=1749623478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b.webp?v=1749623478","width":2000},{"alt":null,"id":25689827115107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_f8ae78d3-be86-4f3c-acb5-cb6c28b09eca.webp?v=1749624723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_f8ae78d3-be86-4f3c-acb5-cb6c28b09eca.webp?v=1749624723","width":2000},{"alt":null,"id":25689827410019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_7dfd1f89-aa15-4747-86de-dd3632321225.webp?v=1749624724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_7dfd1f89-aa15-4747-86de-dd3632321225.webp?v=1749624724","width":2000},{"alt":null,"id":25689827704931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_44cd294c-ae9c-4d71-9577-245a19809aa6.webp?v=1749624724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_44cd294c-ae9c-4d71-9577-245a19809aa6.webp?v=1749624724","width":2000},{"alt":null,"id":25689828130915,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_f70a2f14-afb0-46a7-a5e0-c4f378e14b51.webp?v=1749624725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_f70a2f14-afb0-46a7-a5e0-c4f378e14b51.webp?v=1749624725","width":2000},{"alt":null,"id":25689828425827,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_a7a8c9c7-2bac-4a41-a9e6-feac066203e0.webp?v=1749624726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_a7a8c9c7-2bac-4a41-a9e6-feac066203e0.webp?v=1749624726","width":2000},{"alt":null,"id":25689828753507,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_cccec922-19f2-4ae0-b03e-d605597db481.webp?v=1749624726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_cccec922-19f2-4ae0-b03e-d605597db481.webp?v=1749624726","width":2000},{"alt":null,"id":25689829179491,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_ef0fc931-0e2f-43dc-94d3-a6d3456366e5.webp?v=1749624727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_ef0fc931-0e2f-43dc-94d3-a6d3456366e5.webp?v=1749624727","width":2000},{"alt":null,"id":25689829474403,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_a50a0cbc-9b09-49c5-a715-fe1afa73f41f.webp?v=1749624727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_a50a0cbc-9b09-49c5-a715-fe1afa73f41f.webp?v=1749624727","width":2000},{"alt":null,"id":25689951928419,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_3e98755a-2cdb-401a-8f89-38c7a769a25d.webp?v=1749625355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_3e98755a-2cdb-401a-8f89-38c7a769a25d.webp?v=1749625355","width":2000},{"alt":null,"id":25689952092259,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_70c9393e-b91d-42cf-8528-a44c8032332d.webp?v=1749625356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_70c9393e-b91d-42cf-8528-a44c8032332d.webp?v=1749625356","width":2000},{"alt":null,"id":25689952256099,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_7dc3660c-652a-4fba-9115-5d368a8e5ffd.webp?v=1749625356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_7dc3660c-652a-4fba-9115-5d368a8e5ffd.webp?v=1749625356","width":2000},{"alt":null,"id":25689952354403,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_98aebf6a-a9a2-471a-a778-6910069b8098.webp?v=1749625357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_98aebf6a-a9a2-471a-a778-6910069b8098.webp?v=1749625357","width":2000},{"alt":null,"id":25689952551011,"position":21,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_70261335-a524-4141-b2a7-745b5c35e3d1.webp?v=1749625357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_70261335-a524-4141-b2a7-745b5c35e3d1.webp?v=1749625357","width":2000},{"alt":null,"id":25689952649315,"position":22,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_2782477b-6a26-4253-8b29-9f19a40ec0da.webp?v=1749625358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_2782477b-6a26-4253-8b29-9f19a40ec0da.webp?v=1749625358","width":2000},{"alt":null,"id":25689952845923,"position":23,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_9102739b-27e9-44dd-854c-5a4878457173.webp?v=1749625358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_9102739b-27e9-44dd-854c-5a4878457173.webp?v=1749625358","width":2000},{"alt":null,"id":25689953075299,"position":24,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_07e6131d-2890-4c18-aa01-fb876027fc2d.webp?v=1749625359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_07e6131d-2890-4c18-aa01-fb876027fc2d.webp?v=1749625359","width":2000},{"alt":null,"id":25692717875299,"position":25,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_79aaf942-7b3e-4fe3-8de2-60914f893578.webp?v=1749693895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_79aaf942-7b3e-4fe3-8de2-60914f893578.webp?v=1749693895","width":2000},{"alt":null,"id":25692718563427,"position":26,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_e0b2f636-31da-42ac-9cd9-7731fadbb706.webp?v=1749693896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b946585b51da821960dd42a784e048fb73ca5f5_e0b2f636-31da-42ac-9cd9-7731fadbb706.webp?v=1749693896","width":2000},{"alt":null,"id":25692718760035,"position":27,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_9284aaf2-1c1e-4a58-bbb5-25bf634c142f.webp?v=1749693896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f30159a23860a78d4626df72abfa5d56bbadea7_9284aaf2-1c1e-4a58-bbb5-25bf634c142f.webp?v=1749693896","width":2000},{"alt":null,"id":25692719087715,"position":28,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_306ae698-7886-423f-b944-0888a88548c3.webp?v=1749693897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_306ae698-7886-423f-b944-0888a88548c3.webp?v=1749693897","width":2000},{"alt":null,"id":25692720103523,"position":29,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_ea72af04-f617-49a8-98d3-14269f40f9a5.webp?v=1749693899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_ea72af04-f617-49a8-98d3-14269f40f9a5.webp?v=1749693899","width":2000},{"alt":null,"id":25692720300131,"position":30,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_e0fc4e6c-34cd-459f-9591-99f65ce249ea.webp?v=1749693899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_e0fc4e6c-34cd-459f-9591-99f65ce249ea.webp?v=1749693899","width":2000},{"alt":null,"id":25692720398435,"position":31,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_61c78c1e-6b77-4a2f-a3aa-98785b1e7eb1.webp?v=1749693900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_61c78c1e-6b77-4a2f-a3aa-98785b1e7eb1.webp?v=1749693900","width":2000},{"alt":null,"id":25692720660579,"position":32,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43444950564963,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"ABT01171P2-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012002418787,"product_id":7815649099875,"position":32,"created_at":"2025-06-12T10:04:59+08:00","updated_at":"2025-06-12T10:05:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901","variant_ids":[43444950564963]},"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-EG13","featured_media":{"alt":null,"id":25692720660579,"position":32,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950597731,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"ABT01171O9-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012002091107,"product_id":7815649099875,"position":31,"created_at":"2025-06-12T10:04:58+08:00","updated_at":"2025-06-12T10:05:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_61c78c1e-6b77-4a2f-a3aa-98785b1e7eb1.webp?v=1749693900","variant_ids":[43444950597731]},"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-EG13","featured_media":{"alt":null,"id":25692720398435,"position":31,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d2929c0ce498cf0e7cc302de370a695bbb089d4_61c78c1e-6b77-4a2f-a3aa-98785b1e7eb1.webp?v=1749693900"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950630499,"title":"Antique Bronze","option1":"Antique Bronze","option2":null,"option3":null,"sku":"ABT01171P0-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34011999797347,"product_id":7815649099875,"position":28,"created_at":"2025-06-12T10:04:55+08:00","updated_at":"2025-06-12T10:04:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_306ae698-7886-423f-b944-0888a88548c3.webp?v=1749693897","variant_ids":[43444950630499]},"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-EG13","featured_media":{"alt":null,"id":25692719087715,"position":28,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d7641b5235eca854b320f16d016c5bc305d9a5_306ae698-7886-423f-b944-0888a88548c3.webp?v=1749693897"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950663267,"title":"Transparent","option1":"Transparent","option2":null,"option3":null,"sku":"ABT01171R4-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012001042531,"product_id":7815649099875,"position":29,"created_at":"2025-06-12T10:04:57+08:00","updated_at":"2025-06-12T10:04:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_ea72af04-f617-49a8-98d3-14269f40f9a5.webp?v=1749693899","variant_ids":[43444950663267]},"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-EG13","featured_media":{"alt":null,"id":25692720103523,"position":29,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8033a3c35cf81ae66bff170a22c50fdef35066_ea72af04-f617-49a8-98d3-14269f40f9a5.webp?v=1749693899"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950696035,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"ABT0117152-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012001534051,"product_id":7815649099875,"position":30,"created_at":"2025-06-12T10:04:58+08:00","updated_at":"2025-06-12T10:04:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_e0fc4e6c-34cd-459f-9591-99f65ce249ea.webp?v=1749693899","variant_ids":[43444950696035]},"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-EG13","featured_media":{"alt":null,"id":25692720300131,"position":30,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90fdc3bb80cb68ebfde7939c5b1d21ab6bf89dba_e0fc4e6c-34cd-459f-9591-99f65ce249ea.webp?v=1749693899"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444950761571,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"ABT01171O8-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34011997798499,"product_id":7815649099875,"position":25,"created_at":"2025-06-12T10:04:54+08:00","updated_at":"2025-06-12T10:04:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_79aaf942-7b3e-4fe3-8de2-60914f893578.webp?v=1749693895","variant_ids":[43444950761571]},"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-EG13","featured_media":{"alt":null,"id":25692717875299,"position":25,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db9772bf5130affe74cb290d964193319b5d4c80_79aaf942-7b3e-4fe3-8de2-60914f893578.webp?v=1749693895"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43444950564963,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"ABT01171P2-EG13","requires_shipping":true,"taxable":true,"featured_image":{"id":34012002418787,"product_id":7815649099875,"position":32,"created_at":"2025-06-12T10:04:59+08:00","updated_at":"2025-06-12T10:05:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901","variant_ids":[43444950564963]},"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-EG13","featured_media":{"alt":null,"id":25692720660579,"position":32,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257966f74284ea9ef15c074831566b24c80ba51b_fc5cdb24-a750-419c-843e-e51a318a150b.webp?v=1749693901"}},"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: "停產"
}