add div class code in wordpress woocommerce

how can I write this code, and where should I write it, I use Woodmart thema. Largest Contentful Paint element 3,640 msThis is the largest contentful element painted within the viewport. Learn more about the Largest Contentful Paint elementLCP Element div.wd-carousel > div.wd-carousel-wrap > div#slide-51303 > div.wd-slide-bg https://pagespeed.web.dev/analysis/https-letechno-ge/nvotqeiirx?utm_source=search_console&form_factor=desktop&hl=en fix div class use Woodmart thema

Create a WooCommerce Order Programmatically adding normal products and gifted products

With the code below, I create an order programmatically in WooCommerce, adding products with price, and I am trying for specific products to set a zero price as they are gifts: $order = wc_create_order(array('customer_id' => $currentUserId)); // Product for add with price foreach($cartProductInfo as $productIn) { $order->add_product( get_product($productIn['id']), $productIn['qty'] ); } // Product for add […]