Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter jmichaelc

    (@jmichaelc)

    I was using the COD payment method. I’m also using Authorize.net, which I haven’t tested yet. However, I got it to work by using conditionals in the page.php file of my theme:

    if(wc_get_page_id( 'cart' ) == get_the_ID()) {
        load_template( get_template_directory() . '/woocommerce/cart/cart.php' );
    }
    
    if( wc_get_page_id( 'checkout' ) == get_the_ID() ) {
        if( is_wc_endpoint_url( 'order-received' ) ) {
            load_template( get_template_directory() . '/woocommerce/checkout/thankyou.php');
        } else {
            load_template(get_template_directory() . '/woocommerce/checkout/form-checkout.php');
        }
    }
Viewing 1 replies (of 1 total)