<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Title content=""><meta name=Keywords content=""><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Courier New";
panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Calibri;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Calibri;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Calibri;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:Calibri;
mso-fareast-language:EN-US;}
@page WordSection1
{size:595.0pt 842.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1315987831;
mso-list-type:hybrid;
mso-list-template-ids:34401930 1486760304 134807555 134807557 134807553 134807555 134807557 134807553 134807555 134807557;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style></head><body bgcolor=white lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt'>Hello!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>When a customer updated their billing info I didn’t receive any e-mails... Tracked this down to the following:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>"billing" => array:1 [</span><span style='font-size:11.0pt;font-family:"MS Mincho"'>▼</span><span style='font-size:11.0pt'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> "updates_notify" => "support@sthix.net"<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><span lang=SV style='font-size:11.0pt'>]<o:p></o:p></span></p><p class=MsoNormal><span lang=SV style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>And the config/ixp_tools.php config file states:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> 'billing_updates_notify' => "support@sthix.net",<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>When looking in the code it refers to...<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt'>$this->_options['billing_updates']<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>...and...<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:11.0pt'>$this->_options['billing_updates']['notify']<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>So, after replacing “billing_updates” with “billing” and “notify” with “updates_notify” in the code I got it working.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>See diff:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>--- application/controllers/DashboardController.php 2017-08-21 12:36:40.958423089 +0200<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>+++ /tmp/DashboardController.php 2017-08-21 12:36:14.727856878 +0200<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>@@ -137,14 +137,14 @@<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> {<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> if( $form->isValid( $_POST ) )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> {<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>- if( isset( $this->_options['billing'] ) && $this->_options['billing']['updates_notify'] )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>+ if( isset( $this->_options['billing_updates'] ) && $this->_options['billing_updates']['notify'] )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> $old = clone $this->getCustomer()->getBillingDetails();<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> $form->assignFormToEntity( $this->getCustomer()->getBillingDetails(), $this, true );<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> $this->getD2EM()->flush();<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> $this->addMessage( 'Your billing details have been updated', OSS_Message::SUCCESS );<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>- if( isset( $this->_options['billing']['updates_notify'] ) )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>+ if( isset( $this->_options['billing_updates']['notify'] ) )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> {<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> $this->view->oldDetails = $old;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> $this->view->customer = $this->getCustomer();<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>@@ -152,7 +152,7 @@<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> $this->getMailer()<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> ->setFrom( $this->_options['identity']['email'], $this->_options['identity']['name'] )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> ->setSubject( $this->_options['identity']['sitename'] . ' - ' . _( 'Billing Details Change Notification' ) )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>- ->addTo( $this->_options['billing']['updates_notify'] , $this->_options['identity']['sitename'] .' - Accounts' )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>+ ->addTo( $this->_options['billing_updates']['notify'] , $this->_options['identity']['sitename'] .' - Accounts' )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> ->setBodyHtml( $this->view->render( 'customer/email/billing-details-changed.phtml' ) )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> ->send();<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p></div></body></html>