Page 1 of 1

Notification Override

Posted: Tue Oct 03, 2023 11:15 am
by Brighton
Hi,

Am I making a mistake somewhere?

Running phoenixcart 1.0.8.20, PHP 8.1,

Copy
includes/languages/english/modules/notifications/n_update_order.php

To
templates/override/includes/languages/english/modules/notifications/n_update_order.php

The changed templates/override entries are not applied.

Changes to templates/override/includes/languages/english/modules/notifications/n_checkout.php are applied as expected.

Thank you for any help

Re: Notification Override

Posted: Tue Oct 03, 2023 12:19 pm
by burt

Re: Notification Override

Posted: Tue Oct 03, 2023 2:09 pm
by raiwa
It’s an admin module and admin side does not use the override template, only shop side.

Re: Notification Override

Posted: Wed Oct 04, 2023 1:25 pm
by Brighton
Thank you for your replies.

viewtopic.php?f=10&t=1770 didn’t seem to be the same problem, the answers given seemed to relate to pwa add-on notifications.

Although the update_order notification is initiated admin side which doesn’t use overrides the script is defined as a shop side module so I hoped the override would be used. Interestingly, although the languages override isn’t applied, tpl_n_update_order.php in templates/override/includes/modules/notifications/ is applied.

The solution has been to use a renamed copy the /notifications/n_update_order.php with changes applied.

Re: Notification Override

Posted: Wed Oct 04, 2023 2:44 pm
by raiwa
It's a module used from admin side. Therefore it doesn't use the override template.
The pwa hook does exact what you wish to do: it modifies the content of the core order update mail.