Title: emaf94's Replies | WordPress.org

---

# emaf94

  [  ](https://wordpress.org/support/users/emaf94/)

 *   [Profile](https://wordpress.org/support/users/emaf94/)
 *   [Topics Started](https://wordpress.org/support/users/emaf94/topics/)
 *   [Replies Created](https://wordpress.org/support/users/emaf94/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/emaf94/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/emaf94/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/emaf94/engagements/)
 *   [Favorites](https://wordpress.org/support/users/emaf94/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout redirection problem](https://wordpress.org/support/topic/checkout-redirection-problem/)
 *  Thread Starter [emaf94](https://wordpress.org/support/users/emaf94/)
 * (@emaf94)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15623958)
 * Ok, I will continue to investigate the problem and ask in the corresponding forum
   if necessary.
 * Thx
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout redirection problem](https://wordpress.org/support/topic/checkout-redirection-problem/)
 *  Thread Starter [emaf94](https://wordpress.org/support/users/emaf94/)
 * (@emaf94)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15623583)
 * Hello again
 * I found that the problem occurs with the Elementor plugin, if I disable it, everything
   works fine, but since keeping it disabled is not an option I decided to look 
   for an alternative..
 * After a long investigation, having all the plugins disabled except Elementor &
   Woocommerce, I discovered that the problem is caused by the function “wc_get_endpoint_url()”(
   wp-page-functions.php, line 88), of Woocommerce, not from MercadoPago extension.
   It was returning, for some reason, always the home URL, so the workaround I found
   was concatenating “/finalizar-compra” (my pay page, previously configured, as
   seen in the screenshot) in the “get_checkout_order_received_url()” filter (class-
   wc-order.php, line 1608).
 * So I was left like this:
    from:
 *     ```
       return apply_filters( 'woocommerce_get_checkout_order_received_url', $order_received_url, $this );
       ```
   
 * to:
 *     ```
       return apply_filters( 'woocommerce_get_checkout_order_received_url', '/finalizar-compra'.$order_received_url, $this );
       ```
   
 * I tried the above with the default Woocommerce pages, to discard possible problems
   with Elementor.
 * This at least allows to redirect after a purchase, although I had to add the 
   domain of my page to a function of MercadoPago extension in the same way so that
   the native redirections of Woocommerce + MP extension would work.
 * I hope you can help me to get a more definitive solution since otherwise I have
   to be modifying the plugin after each update.
 * Greetings.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mercado Pago payments for WooCommerce] Redireccionamiento incorrecto luego de la compra](https://wordpress.org/support/topic/redireccionamiento-incorrecto-luego-de-la-compra/)
 *  Thread Starter [emaf94](https://wordpress.org/support/users/emaf94/)
 * (@emaf94)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/redireccionamiento-incorrecto-luego-de-la-compra/#post-15623567)
 * Hola,
 * El problema es directamente con Woocommerce, seguiré la consulta desde el foro
   correspondiente.
 * Saludos
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Checkout redirection problem](https://wordpress.org/support/topic/checkout-redirection-problem/)
 *  Thread Starter [emaf94](https://wordpress.org/support/users/emaf94/)
 * (@emaf94)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15613778)
 * Thanks.
 * After several tests I discovered that the problem is with the MercadoPago extension,
   so I will continue the discussion in the corresponding forum and i will mark 
   this as resolved.
 * Goodnight
    -  This reply was modified 4 years, 2 months ago by [emaf94](https://wordpress.org/support/users/emaf94/).

Viewing 4 replies - 1 through 4 (of 4 total)