Translated by kp52.
Shopkeeper module for MODx
Order management for the internet store
Функции
- Edit and delete orders that have been received;
- Attach status label to an order (new, in progress, shipped, complete, snags);
- Comments can be attached to each order;
- Sorting of orders.
Installation
- If the Shopkeeper snippet has not yet been installed, copy the snippet files to the folder assets/snippets/shopkeeper/.
- In the Manager, go to "Modules" -> "Manage Modules"
- Click on "New Module"
- Module name: Shopkeeper,
Description: Order management,
Open the file Shopkeeper_module.php in the "install" folder, copy the contents and paste into the Module Code field. Click on "Save". - Go to "Modules" -> "Manage Modules" and click on the icon next to Shopkeeper. Click on Install to install the module.
- If the Shopkeeper snippet has already been fully installed and set up (before you installed the module), the "install" folder can be deleted.
Configuration
- Orders per page - number of orders on each page.
- Template for summary information - format of the information shown in the order table.
this template is used to write information to the module's database when an order is placed.
Only placeholders specified in the eForm snippet's order message (&report parameter) may be used. Default: [+name+], [+address+], [+email+], [+phone+], [+delivery+], [+payment+] - Currency - this is reflected in the order table and in the detailed information about the order.
- Colours for status labels may be entered in any CSS format. For example, red can be specified as: red, #FF0000, rgb(255, 0, 0).
Status labels can be changed in the language file, e.g. shopkeeper/lang/english.php - The "Delete all orders" button removes the module's tables from the database (uninstallation).
Important points
For the orders to be sent to the module, the eForm snippet call must include the following parameters:
&eFormOnBeforeMailSent=`populateOrderData`&eFormOnMailSent=`sendOrderToManager`.
The order form template chunk should include a hidden field naming the report message chunk (reportTpl): <input type="hidden" name="reportTpl" value="shopOrderReport" />