修改 Magento 2 increment_id

increment_id = prefix + ((sequence_valuestart_value) * step + start_value) {padded to X digits} + suffix

prefix,suffix,start-value,step are stored in sales_sequence_profile

sequence_value is stored in sequence_order_{store id}

{padded to X digits} is set in: /vendor/magento/module-sales-sequence/Model/Sequence.php const DEFAULT_PATTERN = "%s%'.09d%s";

原文连接

How to Change Magento 2 Increment ID for Orders, Invoices, Credit Memos and Shipments

发表评论

电子邮件地址不会被公开。 必填项已用*标注