Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Apr 25, 2024
1 parent 036d065 commit c700841
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ After that you can start customizing the order process:
.. code-block:: python
def patchShop():
patchMailTemplates()
patchOrderExport()
Expand All @@ -65,19 +64,16 @@ WARNING:
HTML Templates
^^^^^^^^^^^^^^

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

.. code-block:: python
from bda.plone.orders import mailnotify
import os
WARNING:

mailnotify.MAIL_TEMPLATES_DIRECTORY = os.path.join(
os.path.dirname(__file__),
'mailtemplates'
)
As of ``bda.plone.orders`` 2.0b3 the location of the mailnotification
templates moved from the folder ``mailtemplates`` to the module
``mailnotifytemplates``. Please refactor your patches to jbot templates
or BrowserViews.


Text Templates
Expand Down

0 comments on commit c700841

Please sign in to comment.