Add Class to body based on product tag in shopify Checkout Extensibility

Add Class to body based on product tag in shopify Checkout Extensibility

techticarti1
Shopify Partner
5 0 0

In shopify checkout UI extension need to get the line items tag and if any product has same class then add class to body have checked but it's showing the error to

document is not defined

i have use this code for add class 

document.body.classList.add("my-class");

is anyone has idea how i can do that so please let me know

Replies 0 (0)