duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
145 stars 38 forks source link

v5.0: Improve order numbers for database orders #845

Closed duncanmcclean closed 1 year ago

duncanmcclean commented 1 year ago

This pull request makes some changes to how order numbers are handled when using Database Orders.

Previously, when storing orders in the database, Simple Commerce has used the id column as order numbers. This meant order numbers started in the single digits and it wasn't possible to set a minimum order number (eg. 1000) like you can with entry orders.

With this PR, I've introduced a separate order_number column to store order numbers so they can be different.

A couple of notes

github-actions[bot] commented 1 year ago

Released as part of v5.0.0.