Title: jmichaelc's Replies | WordPress.org

---

# jmichaelc

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

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

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Session expired on checkout](https://wordpress.org/support/topic/expired-on-checkout/)
 *  Thread Starter [jmichaelc](https://wordpress.org/support/users/jmichaelc/)
 * (@jmichaelc)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/expired-on-checkout/#post-7549281)
 * 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)