Viewing 7 replies - 1 through 7 (of 7 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @emaf94,

    How are you today?

    Can you resave permalinks and see if that helps? Specifically, you should go to Settings ➔ Permalinks and click on the “Save Changes” button at the bottom of the page without actually doing any change.

    If that doesn’t help, I recommend doing a conflict test as it could be a conflict issue with the theme or a plugin. You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Let us know how it goes.

    Thread Starter emaf94

    (@emaf94)

    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 ago by emaf94.
    Mashi

    (@shaonback2)

    Hello !@emaf94!

    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.

    Glad to hear it – thanks for letting us know!

    If you have any further questions, please feel free to create a new thread.

    Thread Starter emaf94

    (@emaf94)

    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.

    Mirko P.

    (@rainfallnixfig)

    Hi @emaf94,

    Thanks for getting back on this thread.

    I understand your issue but we can only assist with the default core WooCommerce functionality. If you disable all other plugins and change the theme to the default Storefront the order received page should always return the URL you reported here:

    “https://mydomain.com/finalizar-compra/order-received/XXXX/?key=wc_order..”.

    If it’s not working as intended when you enable third-party plugins, you should get assistance from the plugin developers directly or hire a developer to get that issue fixed. In this case, we recommend reaching out to some of the official WooCommerce development partners via this link: https://woocommerce.com/customizations/.

    Best.

    Thread Starter emaf94

    (@emaf94)

    Ok, I will continue to investigate the problem and ask in the corresponding forum if necessary.

    Thx

    Margaret S. woo-hc

    (@margaretwporg)

    Sure! That sounds like a good plan.

    Feel free to create a new topic if you need any help related to core WooCommerce.

    Thanks

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

The topic ‘Checkout redirection problem’ is closed to new replies.