Home Forums WoodMart support forum thankyou page empty

thankyou page empty

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #650098

    ameerdanishpiracha
    Participant

    Hi , i was using previously hello elementor , now after activating woodmart , thankyou page is redirecting to the thankyou page i have created and it shows empty , i cant edit this page , if i delete this page , frontend thankyou url shows page not found

    its redirecting to this page which i previously created

    kindly help its urgent

    i have given you website url

    #650099

    ameerdanishpiracha
    Participant

    Its really urgent please

    #650329

    Luke Nielsen
    Keymaster

    Hello,

    Please give the full access to the admin panel, because the current one is limited.

    Also, describe step by step on how to reflect the issue and clarify how I can check the Thank you page without making payment.

    Kind Regards

    #651006

    ameerdanishpiracha
    Participant

    hi , i have created a staging site for you , credentials below.

    you can turn on cod payment method and checkout.

    #651008

    ameerdanishpiracha
    Participant

    on live site , i used this redirection for time being , i have remove this code from staging.

    add_action(‘template_redirect’, ‘redirect_old_thankyou_to_checkout’);
    function redirect_old_thankyou_to_checkout() {
    // Check if we’re on the old thank you URL pattern
    if (preg_match(‘/thankyou\/order-received\/(\d+)/’, $_SERVER[‘REQUEST_URI’], $matches)) {
    $order_id = $matches[1];
    $order_key = isset($_GET[‘key’]) ? $_GET[‘key’] : ”;

    if ($order_id && $order_key) {
    // Build the correct WooCommerce thank you URL
    $new_url = wc_get_checkout_url() . ‘order-received/’ . $order_id . ‘/?key=’ . $order_key;
    wp_redirect($new_url, 301);
    exit;
    }
    }
    }

Viewing 5 posts - 1 through 5 (of 5 total)