As everyone who uses Magento knows, in most cases after each order, the customer receives an order confirmation email which contains some useful information about an order that has been just placed. However, sometimes, it would be great to provide some additional information alongside with an order confirmation – such as payment information. There are some ways in Magento for extending emails with custom info, but often they require a lot of time and deep technical knowledges. Let’s leave these ways for people who has an extra time and review the simple and fast way how to add an invoice information to the order confirmation email.
In Magento, customers don’t use special numbering by default; however it is possible to change this. We need to add a record to the eav_entity_store
table with entity_type_id = 1
, increment_prefix = CU
and increment_last_id = CU001000
.
In Magento, order numbers are generated starting from 100000001
and up by default. Many companies want to use a custom value so that customers don’t know exactly how many orders have been placed before. Others need a custom value to match other parts of their system. The field increment_id
is present in various entity tables to store this number.