Skip to content

Module for Prestashop 1.7 - simple override of classes/order/Order.php changing the way of generating reference number in orders

Notifications You must be signed in to change notification settings

RyzuOPs/ChangeOrderIndex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change Order Index - module for Prestashop 1.7

This module override Order class to change order reference to numeric (from order id) with optionally prefix and separator like:

PFX-20256

How it works?

This is simple override of classes/order/Order.php changing the way of generating reference number in orders.

No need to change anything in the files, just install the module and activate override in module settings. After activating the override, the next order placed in your store will have the format as in the preview available in the module settings.

Prerequisites

This module is written for Prestashop 1.7.x

Installing

Download relase or clone

Download:

or clone to /modules directory of your shop:

git clone https://github.com/RyzuOPs/Change-Order-Index

Install

Install through module manager

You can install module through manager in the backoffice:

  1. Login to backoffice
  2. Go to:
Improve -> Module Manager -> Upload a module

  1. Configure module

Install through Prestashop console

./bin/console prestashop:module install changeorderindex

Configure

Override is disabled by default after installation. To override work properly turn it on in the module settings.

You can use prefix and separator.

About

Module for Prestashop 1.7 - simple override of classes/order/Order.php changing the way of generating reference number in orders

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published