Skip to content

Commit c700841

Browse files
committed
update README
1 parent 036d065 commit c700841

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

README.rst

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ After that you can start customizing the order process:
4141
.. code-block:: python
4242
4343
def patchShop():
44-
patchMailTemplates()
4544
patchOrderExport()
4645
4746
@@ -65,19 +64,16 @@ WARNING:
6564
HTML Templates
6665
^^^^^^^^^^^^^^
6766

68-
Default HTML templates are located at ``bda.plone.orders:mailtemplates``.
69-
To customize them, copy the entire template folder to your integration package
70-
and patch ``bda.plone.orders.mailnotify.MAIL_TEMPLATES_DIRECTORY`` like so:
67+
Default HTML templates are located at ``bda.plone.orders:mailnotifytemplates``
68+
and registered as ``BrowserViews``. You can override the templates using
69+
``z3c.jbot``.
7170

72-
.. code-block:: python
73-
74-
from bda.plone.orders import mailnotify
75-
import os
71+
WARNING:
7672

77-
mailnotify.MAIL_TEMPLATES_DIRECTORY = os.path.join(
78-
os.path.dirname(__file__),
79-
'mailtemplates'
80-
)
73+
As of ``bda.plone.orders`` 2.0b3 the location of the mailnotification
74+
templates moved from the folder ``mailtemplates`` to the module
75+
``mailnotifytemplates``. Please refactor your patches to jbot templates
76+
or BrowserViews.
8177

8278

8379
Text Templates

0 commit comments

Comments
 (0)