View Single Post
  #4  
Old 03-30-2020, 10:08 AM
  The Knotty Celt's Avatar 
The Knotty Celt The Knotty Celt is offline
 

Advanced Member
  
Join Date: Jan 2020
Posts: 32
 

Default Re: Custom Order Numbering

Quote:
Originally Posted by cflsystems

Thank you. That, unfortunately, does not suit my needs. It applies a prefix and suffix to the order number, but the order number itself continues to increment. I am looking to have intuitive order numbers where the sequence resets each year, and the current year is pre-appended.

Since the orderNumber column of the orders model class is already a VARCHAR of length 255, so it already prepared to accept the form of order number required for my business logic. I just need to find the precise business logic which needs to be overridden by my module.

It seems, though, that in my OP, I looked at the Order Repo model, rather than the actual Order Model itself. I am continuing my research to find exactly where in the business logic is found the code that sets the value of the orderNumber column.
__________________
X-Cart version 5.4.1.46
PHP version 7.4.33
MySQL version 15.1
Apache version 2.4.56
cURL version 7.74.0
Reply With Quote