What exactly do you mean by "not working"? Does it do anything? The code as posted will give some custom text and the order number followed by date. What you want would take something like this
PHP Code:
<td class="main"><b><?php echo date('Ymd',strtotime($order->info['date_purchased'])) . $oID; ?></b></td>
Also, as mentioned, this will not affect the actual order number at all, or its display in any other location. If you really want the order number itself to work as described, you could schedule a cron job to run at midnight every day and reset the next order number to the date as shown plus whatever quantity of zeros.
Bookmarks