Product based get discount price

Calculate the discounted price based on product attributes.

add_filter('wc_add_to_cart_message_html', function ($message, $products, $show_qty){
    foreach ( $products as $product_id => $qty ) {
        $product =  wc_get_product( $product_id);
        $product_price = $product->get_price();
        $discount = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $product_price, $product, $qty, $product_price, 'discounted_price', false, true);
        if($discount !== false) {
            $message .= " Discounted price: ". $discount; //HERE YOU GET DISCOUNTED PRICE
        }
    }
    return $message;
}, 10, 3);