Properly updating notification status from a new checkout notification module

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

Properly updating notification status from a new checkout notification module

Post by Brighton »

I won’t pretend that I know what I’m talking about but here goes

Until recently, to send a reformatted checkout confirmation email it could be achieved by creating/installing a new notification module
e.g. includes/modules/notifications/n_checkoutnew.php

When doing this in the latest Phoenix version(s?), Customer_Notified in order_status_history is not updated.

Instead, in the latest version, an orderMail hook in a new override hook checkout folder can be used to overwrite the stock created email. Though this works it seems to have several disadvantages -
  • It is inconsistent with the general principle of install/uninstall modules as used for other content modules.
    An email creation process is executed twice.
    When used with PayPal, the hook also has to be maintained in the override hook siteWide folder in case the IPN notification (standard_ipn.php) is received first.
    There’s no opportunity to modify the content/title in the EXTRA_ORDER_EMAILS copy if you wanted to.
Assuming the above observation is correct, is there a better method?
Post Reply