Store and Display Customer Purchase Order Numbers

in checkout.thankyou.tpl.php under the line "_('PHPSHOP_THANKYOU_SUCCESS')?><br />"   <?php $precustomer_note = $dbo->f('customer_note');$prelength = strlen($precustomer_note);$firstpre = strtok($precustomer_note, ":");$firstprelen = strlen($firstpre);$firstprelen++;$charcount = $prelength - $firstprelen;$custom_note = substr($precustomer_note,$firstprelen,$charcount); if ($custom_note !="") {  echo "<span style='color:#ff0000;'><strong>Your Purchase Order Number:</strong></span> " . $custom_note;   } ?>-----------------------------------------------------------------------  in the checkout.thankyou.php under /** retrieve order & payment info **/ /** Retrieve Customer Notes **/$qr = "SELECT customer_note FROM #__{vm}_orders ";$qr .= "WHERE order_id='".$order_id."'";$dbo = new ps_DB;$dbo->query($qr); then under $tpl->set ('db', $db); $tpl->set( 'dbo', $dbo ); ----------------------------------------------------------------------- in the ps_checkout.php under // Collect all fields and values to store them! $pon = $d['pon']; if ($pon != "" ) { $cus_note_full = htmlspecialchars(strip_tags($d['customer_note']), ENT_QUOTES ) . ' <strong>Your Purchase Order Number: ' . $pon . '</strong>'; } else { $cus_note_full = htmlspecialchars(strip_tags($d['customer_note']), ENT_QUOTES ); } and in the $fields = array( change line 'customer_note' => to             'customer_note' => $cus_note_full,            ----------------------------------------------------------------------- in the get_final_confirmation.tpl.php above "please note" add <br /> <span style="color:#ff0000;"><strong>Your Purchase Order Number:</strong></span> <input type="text" name="pon" class="inputbox" /><br />