Change invoice and order reference format
I want to change the order and Inovice reference number.
order # US-7767-A634
Invoice # USIN-7871-2312
I am using 202401.0 release and I don't see any configurable option. How can we achieve this?
Can we update existing order refernce or we create new field for the order and generate the new reference there and show it to customer?
Can anyone help to understand any challenge with this approach?
Comments
-
Take a look at the SalesConfig file where you can adjust the prefix for the sales order reference
getOrderReferenceDefaults()
src/Pyz/Zed/Sales/SalesConfig.php at project level, which extends the core one
0 -
@dipen.vyas I think that we introduced most of the sales order reference configurations only in newer releases, see documentation about order reference configuration here.
In the most brute-force way, you may introduce your own logic for the order reference generation implementing \Spryker\Zed\Sales\Business\Model\Order\OrderReferenceGeneratorInterface and overriding \Spryker\Zed\Sales\Business\SalesBusinessFactory::createReferenceGenerator on the project level with your model.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 92 Spryker News
- 1K Developer Corner
- 855 Spryker Development
- 93 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 35 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 34 Product & Business Questions
- 70 Spryker Safari Questions
- 51 Random
