phpCOIN

Forum Rules Hotfixs

Make sure you read and understand any instructions relevant to the Hotfix you are about to implement.

  Reply to this topicStart new topic

> Payment Confirmation Admin Notification, CC to Admin not sent
lightman
Posted: June 22, 2011 07:17 pm
Quote Post


The Janitor
***

Group: Admin
Posts: 3,639
Member No.: 3
Joined: August 25, 2006



Payment conformation not sent CC to admin when IPN updates invoice even if admin parameter is set. (reported by logikanet)

~/coin_modules/invoices/invoices_funcs.php

Change the code in the function do_mail_invoice

from
CODE

IF ( $_CCFG['INVC_EMAIL_CC_ENABLE'] ) {
IF ($_CCFG['_PKG_SAFE_EMAIL_ADDRESS']) {
$mail['cc'] = $_cinfo['c_email'];
} ELSE {
$mail['cc'] = $_CCFG['_PKG_NAME_SHORT'].'-'.$_cinfo['c_name'].' <'.$_cinfo['c_email'].'>';
}
} ELSE {
$mail['cc'] = '';
}


to

CODE

IF ( $_CCFG['INVC_AUTO_EMAIL_CC_ENABLE'] ) {
IF ($_CCFG['_PKG_SAFE_EMAIL_ADDRESS']) {
$mail['cc'] = $_cinfo['c_email'];
} ELSE {
$mail['cc'] = $_CCFG['_PKG_NAME_SHORT'].'-'.$_cinfo['c_name'].' <'.$_cinfo['c_email'].'>';
}
} ELSE {
$mail['cc'] = '';
}

Many thanks to logikanet for reporting this issue and helping to fix it.


--------------------
***** Unless otherwise stated, all replies refer to the following *****
====================================================================
--- The latest unmodified version of phpCOIN available from the phpCOIN download page on the date and time of this post.
--- All relevant HotFix files applied - One of the four included unmodified themes - The original language files .
--- Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topic

 


Inscrita el Registro Mercantil de Mallorca Tomo 2140, Hoja No. PM-51034, Folio 135
This website owned and operated by: Technology Services RPVW S.L. CIF# B57345084
Avda Constitucion 48 Bajos Alaro 07340 Baleares SPAIN
Tel:+34 971518362    Fax: +34 971518368    eMail: support@phpcoin.com