Notification Override

Ask the community for help and support.
Post Reply
Brighton
Posts: 14
Joined: Sat Jan 08, 2022 12:13 pm
Has thanked: 4 times
Been thanked: 1 time

Notification Override

Post 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
burt
Lead Developer
Lead Developer
Posts: 2092
Joined: Tue Oct 29, 2019 9:37 am
Has thanked: 35 times
Been thanked: 105 times

Re: Notification Override

Post by burt »

Please note, I lost access to oscshops gmail address.
My new email is gb8231059 [at the same provider]
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1113
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 36 times
Been thanked: 96 times

Re: Notification Override

Post by raiwa »

It’s an admin module and admin side does not use the override template, only shop side.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Brighton
Posts: 14
Joined: Sat Jan 08, 2022 12:13 pm
Has thanked: 4 times
Been thanked: 1 time

Re: Notification Override

Post 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.
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1113
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 36 times
Been thanked: 96 times

Re: Notification Override

Post 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.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Post Reply