For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
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
Thanks 🙂