Notification Override

Open to all! Ask other shopowners for help.
Post Reply
Brighton
Member
Posts: 15
Joined: Sat Jan 08, 2022 12:13 pm
Phoenix Version:
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


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Notification Override

Post by burt »

I am not here to build for you.
I am here to build with you. Let's help each other.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 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
Member
Posts: 15
Joined: Sat Jan 08, 2022 12:13 pm
Phoenix Version:
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply