Viewing 2 replies - 1 through 2 (of 2 total)
  • I can’t find a suitable hook for this, so it means editing my-orders.php directly. This is not recommended since it will be overwritten at next update. But to answer the question, you would put something like this at the end of my-orders.php:

    <?php
      if ( !$customer_orders ) { // do this if no recent orders
        print '<p>No recent orders, why not create one?</p>';
      }
    ?>

    Not tested.

    Thread Starter creaselambert

    (@creaselambert)

    Thanks.

    I found this to work.

    if ( $customer_orders ) :
    // prints the orders table
    else :
      echo 'please buy some stuff';
    endif;
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"no recent orders"’ is closed to new replies.