Skip to content

Instantly share code, notes, and snippets.

View rovitz's full-sized avatar
🎯
Focusing

Carmine Rovito rovitz

🎯
Focusing
View GitHub Profile
@floriancgit
floriancgit / modules-my_module-controllers-admin-AdminCustomInvoicesController.php
Created July 7, 2018 01:00
Edit your invoices in Prestashop 1.7 via a Custom Module & Admin Controller
<?php
class AdminCustomInvoicesController extends ModuleAdminController {
public function __construct(){
parent::__construct();
$this->bootstrap = true; // use Bootstrap CSS
$this->table = 'order_invoice'; // SQL table name, will be prefixed with _DB_PREFIX_
$this->identifier = 'id_order_invoice'; // SQL column to be used as primary key
$this->className = 'OrderInvoice'; // PHP class name
$this->allow_export = true; // allow export in CSV, XLS..