public function aroundGetProductDetailsHtml(
        \Magento\Catalog\Block\Product\ListProduct $subject,
        \Closure $proceed,
        \Magento\Catalog\Model\Product $product
    ) {
        $result = $proceed($product);

        $deliveryBlock = $subject->getLayout()->getBlock('product.info.delivery');

        if ($deliveryBlock) {
            $deliveryBlock->setProduct($product);

            if ((bool) $this->_scopeConfig->getValue(
                'catalog/frontend/display_delivery_time',
                \Magento\Store\Model\ScopeInterface::SCOPE_STORE
            )) {
                $result = $deliveryBlock->toHtml() . $result;
            }
        }
        return $result;
    }
public function aroundGetProductDetailsHtml(
        \Magento\Catalog\Block\Product\ListProduct $subject,
        \Closure $proceed,
        \Magento\Catalog\Model\Product $product
    ) {
        $result = $proceed($product);

        $deliveryBlock = $subject->getLayout()->getBlock('product.info.delivery');

        if ($deliveryBlock) {
            $deliveryBlock->setProduct($product);

            if ((bool) $this->_scopeConfig->getValue(
                'catalog/frontend/display_delivery_time',
                \Magento\Store\Model\ScopeInterface::SCOPE_STORE
            )) {
                $result = $deliveryBlock->toHtml() . $result;
            }
        }
        return $result;
    }
public function aroundGetProductDetailsHtml ( \ Magento \ Catalog \ Block \ Product \ ListProduct $ subject , \ Closure $ proceed , \ Magento \ Catalog \ Model \ Product $ product ) { $ result = $ proceed ( $ product ) ; $ deliveryBlock = $ subject -> getLayout ( ) -> getBlock ( 'product.info.delivery' ) ; if ( $ deliveryBlock ) { $ deliveryBlock -> setProduct ( $ product ) ; if ( ( bool ) $ this -> _scopeConfig -> getValue ( 'catalog/frontend/display_delivery_time' , \ Magento \ Store \ Model \ ScopeInterface :: SCOPE_STORE ) ) { $ result = $ deliveryBlock -> toHtml ( ) . $ result ; } } return $ result ; }
Retrieve product details html

@param \Magento\Catalog\Block\Product\ListProduct
@param \Closure $proceed
@param \Magento\Catalog\Model\Product $product
@return string
Retrieve product details html