Advertisement
lorro
Dec 29th, 2022
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Works for me, sorry I can't debug it on another site via comment/post communication.
  2.  
  3. To exclude customer notes and private notes generated by 'system', lines 39 - 46 become:
  4. foreach( $notes as $note ) {
  5. if( ! $note->customer_note ) {
  6. if( $note->added_by != 'system' ) {
  7. print '<li class="order_private_note">';
  8. $date = date( 'd/m/y H:i', strtotime( $note->date_created ) );
  9. print $date.' by '.$note->added_by.'<br>'.$note->content.'</li>';
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement