[Not a bug] Adding date to invoice number not working
I copy and pasted the following code to add the date to my invoice numbers I got from another post and tried to fix the errors as posted but it is still not working.
<td class="main"><b><?php echo ENTRY_ORDER_ID . $oID . '-' . date(Y,strtotime($order->info['date_purchased'])) ; ?></b></td>
Anyone see where I went wrong?
I tried different variations. I also had YMD as I do want the day month and year.
Last edited by racinjason; 17 Jan 2012 at 02:24 AM.
Re: Adding date to invoice number not working
This is not a Zen Cart bug.
It's a problem with your own customizations.
Please don't file Bug Reports that are not a problem in the Zen Cart core code.
You've already started a discussion on the same matter here: http://www.zen-cart.com/forum/showth...71#post1095071
Please continue your discussion there.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
By jennysack in forum General Questions
Last Post: 19 Aug 2011, 02:53 PM
By esugrue in forum Managing Customers and Orders
Last Post: 6 Mar 2009, 05:38 PM
By wdh in forum Customization from the Admin
Last Post: 31 Dec 2007, 08:56 AM
By fmckinnon in forum Customization from the Admin
Last Post: 2 Aug 2006, 11:28 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC