On the confirm page, there will be a local checkout server behavior listed in the server behaviors list.
Select the server behavior, then go to code view, the local checkout server behavior code will be highlighted, place the If statement around the highlighted code.