Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: How to reset order numbers before going live? #3252

Closed
freder opened this issue Aug 15, 2023 · 1 comment
Closed

[4.x]: How to reset order numbers before going live? #3252

freder opened this issue Aug 15, 2023 · 1 comment
Labels
bug commerce4 Issues related to Commerce v4

Comments

@freder
Copy link

freder commented Aug 15, 2023

What happened?

what's the recommended procedure to reset orders before going into production? there's a bunch of test orders in the db right now and we want to have the numbering start at 1 again obviously.

there's #581 but that won't reset the order numbers, as far as I can tell.

Craft CMS version

4.4.17

Craft Commerce version

4.2.11

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@freder freder added commerce4 Issues related to Commerce v4 bug labels Aug 15, 2023
@lukeholder
Copy link
Member

You should be using the order reference setting (that link has an example) along with the seq function to generate a sequence number that you can reset easily.

You also have the reset data command to delete all orders, subscriptions, payment sources, customers etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4
Projects
None yet
Development

No branches or pull requests

2 participants