custom order id
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 42
- Joined: 14 Sep 2017, 09:59
custom order id
How would I go to use custom order id's instead of the standard id for orders which is now AUTO_INCREMENT ?
I was thinking of overriding the aimeos-core file located in lib/mshoplib/src/MShop/Order/Manager/Base/Address/Standard.php
Is that the right approach and how would I do that? Thanks.
I was thinking of overriding the aimeos-core file located in lib/mshoplib/src/MShop/Order/Manager/Base/Address/Standard.php
Is that the right approach and how would I do that? Thanks.
Re: custom order id
Hey
I think you can extend it by placing here your custom version. I hope so, i'm not sure
\ext\your-ext\lib\custom\src\MShop\Order\Manager\Base\Address\Standard.php
I think you can extend it by placing here your custom version. I hope so, i'm not sure
\ext\your-ext\lib\custom\src\MShop\Order\Manager\Base\Address\Standard.php
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5
Re: custom order id
@anton: What do you want to achieve? Can you post your alternative table structure?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 42
- Joined: 14 Sep 2017, 09:59
Re: custom order id
I would like to have my order id's as unix timestamps instead of AUTO_INCREMENT integers.
Re: custom order id
We wouldn't recommend that. What if you have two orders in the same second?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 42
- Joined: 14 Sep 2017, 09:59
Re: custom order id
Excellent point!
I should forget about this.
Thanks for the feedback.
I should forget about this.
Thanks for the feedback.