Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I'm trying to create my own 'OrderNumber' logic.
Example:- Currently the prefix can be set, eg. ORDER-- Orders will be auto-numbered, ORDER-1, ORDER-2 and so on
How can I override this logic?I cannot seem to find this in the documentation, and I cannot edit the OrderNumber property in the finalized events.
Kind regards,Peter Rombouts
If you do it in the finalized event you will have to order.Save() again. It should be able in this event.
Kind regardsAnders
Hi Anders,
How do we reset the counter?
My goal is:- 20140001- 20140002And the next year:- 20150001- etc.
Is there any way to automate this or make use of the API?We can build this ourselves, but we do not want to screw up the internals of TeaCommerce.
In the DB there is a field at the store DB table. CurrentOrderNumber. Just set the new value you want and recycle the app pool.
You can make a small tool that updates this in the DB at the new year and recycle the website.
We will let our software do the following:
- 20140001- 20140002- 20150003
This will ensure that the customer can see in what year the order has been placed, without having to write external tools that could fail.
Thanks for the support,
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom OrderNumber
Hi,
I'm trying to create my own 'OrderNumber' logic.
Example:
- Currently the prefix can be set, eg. ORDER-
- Orders will be auto-numbered, ORDER-1, ORDER-2 and so on
How can I override this logic?
I cannot seem to find this in the documentation, and I cannot edit the OrderNumber property in the finalized events.
Kind regards,
Peter Rombouts
If you do it in the finalized event you will have to order.Save() again. It should be able in this event.
Kind regards
Anders
Hi Anders,
How do we reset the counter?
My goal is:
- 20140001
- 20140002
And the next year:
- 20150001
- etc.
Is there any way to automate this or make use of the API?
We can build this ourselves, but we do not want to screw up the internals of TeaCommerce.
Kind regards,
Peter Rombouts
In the DB there is a field at the store DB table. CurrentOrderNumber. Just set the new value you want and recycle the app pool.
You can make a small tool that updates this in the DB at the new year and recycle the website.
Hi Anders,
We will let our software do the following:
- 20140001
- 20140002
- 20150003
This will ensure that the customer can see in what year the order has been placed, without having to write external tools that could fail.
Thanks for the support,
Kind regards,
Peter Rombouts
is working on a reply...