Download the PHP package thelia/easy-order-manager-module without Composer
On this page you can find all versions of the php package thelia/easy-order-manager-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thelia/easy-order-manager-module
More information about thelia/easy-order-manager-module
Files in thelia/easy-order-manager-module
Package easy-order-manager-module
Short Description EasyOrderManager module for Thelia
License LGPL-3.0-or-later
Informations about the package easy-order-manager-module
Easy Order Manager
Add a short description here. You can also add a screenshot if needed.
Installation
Manually
- Copy the module into directory and be sure that the name of the module is EasyOrderManager.
- Activate it in your thelia administration panel
Composer
Add it in your main thelia composer.json file
Usage
Once activated, you will see a new menu link in Thelia's Back Office. This new page allows you to easly manage all orders thanks to filters and search bars. This module uses Datables.
Events
You can use 2 events to add filters to this module :
In BeforeFilterEvent you have access to the order query and request.
In TemplateFieldEvent you can use the function addTemplateField(fieldName, templateName)
to add a template with your new filter in it. You just need to add js-filter-element
class to your filter input.
You can use one event to add or remove column to this module :
In TemplateColumnDefinitionEvent you can use the function addColumnDefinition(template, index)
to add a new column to the dataTable.
You can use this function to render the data in JS :
Name | Render | Data returned by parseOrderData |
---|---|---|
defaultRender | return the data without parsing | a string |
checkboxRender | create a checkbox | [id => 'order.id'] |
hrefRender | create a href link | [href =>'urlToGo', label => 'label'] |
labelRender | create a label with a color | [color =>'#ccc', label => 'label'] |