PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 30, 2023
Let's talk code, commerce and open source.

Hook actionGenerateDocumentReference 8.1


Modify document reference for Order:

This hook allows modules to return custom document references for orders

Hook locations:

  • front office

Hook type: action

Located in:

Call of the Hook in the origin file

$reference = Hook::exec('actionGenerateDocumentReference', [
    'type' => 'order',