You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-27Lines changed: 26 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,10 @@ Story:
42
42
- User custom greetings are saved via shop model save method. We subscribe to BeforeModelUpdate to track how often a user changed his personal greeting.
43
43
- Tracking of this information will be done in a new database table to serve as an example for module's own shop model.
44
44
- Module will extend the shop's basket model to add info to module specific log file when an item is added into basket. Logging can be enabled or disabled depending on module setting.
45
-
- Module will have console command `oetemplate:logger:read` to read log file.
45
+
- Module will have console command `oeexamples:logger:read` to read log file.
46
46
47
47
```bash
48
-
./vendor/bin/oe-console oetemplate:logger:read
48
+
./vendor/bin/oe-console oeexamples:logger:read
49
49
```
50
50
51
51
## Goals
@@ -56,43 +56,43 @@ Install and try out the module with simple examples to most common development q
56
56
57
57
The repository contains examples of following cases and more:
58
58
59
-
*[Extending of shop controllers and models](https://github.com/OXID-eSales/module-template/blob/b-7.2.x/metadata.php#L25)
60
-
* extending a shop model (`OxidEsales\ModuleTemplate\Extension\Model\User`) / (`OxidEsales\ModuleTemplate\Extension\Model\Basket`)
61
-
* extending a shop controller (`OxidEsales\ModuleTemplate\Extension\Controller\StartController`)
59
+
*[Extending of shop controllers and models](https://github.com/OXID-eSales/examples-module/blob/b-7.3.x/metadata.php#L25)
60
+
* extending a shop model (`OxidEsales\ExamplesModule\Extension\Model\User`) / (`OxidEsales\ExamplesModule\Extension\Model\Basket`)
61
+
* extending a shop controller (`OxidEsales\ExamplesModule\Extension\Controller\StartController`)
*[Subscribing to shop events](https://github.com/OXID-eSales/module-template/blob/b-7.2.x/src/Tracker/Subscriber/BeforeModelUpdate.php)
91
+
*[Subscribing to shop events](https://github.com/OXID-eSales/examples-module/blob/b-7.3.x/src/Tracker/Subscriber/BeforeModelUpdate.php)
92
92
93
93
* Testing your module backend and frontend part
94
-
*[Composer aliases for easy running of tests and quality tools](https://github.com/OXID-eSales/module-template/blob/b-7.2.x/composer.json#L48)
95
-
*[Using the github actions as CI tool with all recommended tools preconfigured for you.](https://github.com/OXID-eSales/module-template/tree/b-7.2.x/.github)
94
+
*[Composer aliases for easy running of tests and quality tools](https://github.com/OXID-eSales/examples-module/blob/b-7.3.x/composer.json#L48)
95
+
*[Using the github actions as CI tool with all recommended tools preconfigured for you.](https://github.com/OXID-eSales/examples-module/tree/b-7.3.x/.github)
96
96
97
97
**HINTS**:
98
98
* Only extend the shop core if there is no other way like listen and handle shop events,
@@ -120,8 +120,8 @@ installation/usage methods.
120
120
121
121
This module is in working state and can be directly installed via composer:
and [activate the module](https://docs.oxid-esales.com/developer/en/latest/development/modules_components_themes/module/installation_setup/setup.html#setup-activation).
@@ -161,7 +161,7 @@ You should be able to access the shop with http://localhost.local and the admin
161
161
162
162
## Things to be aware of
163
163
164
-
The module template is intended to act as a tutorial module so keep your eyes open for comments in the code.
164
+
The examples module is intended to act as a tutorial module so keep your eyes open for comments in the code.
165
165
166
166
**NOTES:**
167
167
* Acceptance tests are way easier to write if you put an id on relevant fields and buttons in the templates.
@@ -175,13 +175,13 @@ The module template is intended to act as a tutorial module so keep your eyes op
175
175
Migrations have to be run via console command (`./vendor/bin/oe-eshop-doctrine_migration`)
0 commit comments