PGelsman Posted August 27, 2010 Posted August 27, 2010 I seem to be having a lot of fraudulent sales lately. I'm using Paypal web payments pro. I receive a copy of the email sent to my customer's after the sale with the sales details in it. I would like the customer's IP address to also go into this email. How can I do this? Please email me at [email protected] Paul
germ Posted August 27, 2010 Posted August 27, 2010 /catalog/checkout_process.php Find: // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Change to: // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $email_order .= 'Ordered from: (' . tep_get_ip_address() . ')' . "\n"; tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Read my signature about backups. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
PGelsman Posted August 30, 2010 Author Posted August 30, 2010 /catalog/checkout_process.php Find: // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Change to: // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $email_order .= 'Ordered from: (' . tep_get_ip_address() . ')' . "\n"; tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Read my signature about backups. Ok, I inserted your line: $email_order .= 'Ordered from: (' . tep_get_ip_address() . ')' . "\n"; And it works, but I want the 'Ordered From' to appear on the next line. How do I do that? Thank you, Paul
germ Posted August 31, 2010 Posted August 31, 2010 Change the one line of code to: $email_order .= "\n" . 'Ordered from: (' . tep_get_ip_address() . ')' . "\n"; If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
♥mdtaylorlrim Posted August 31, 2010 Posted August 31, 2010 I seem to be having a lot of fraudulent sales lately. I'm using Paypal web payments pro. I receive a copy of the email sent to my customer's after the sale with the sales details in it. I would like the customer's IP address to also go into this email. How can I do this? Please email me at [email protected] Paul With most IP addresses being dynamic I see no way that will prevent fraudulent sales. The only thing I found that prevents that is only shipping to the billing address on the card. While it does not prevent the sale it does minimize the loss. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
PGelsman Posted August 31, 2010 Author Posted August 31, 2010 With most IP addresses being dynamic I see no way that will prevent fraudulent sales. The only thing I found that prevents that is only shipping to the billing address on the card. While it does not prevent the sale it does minimize the loss. My site is a download site. When PP sends me a new case report, most times the customer claims they didn't make the purchase. Having the IP address might save me some money if I can prove that the IP address it was sent to is the same as the customers'. Paul
♥mdtaylorlrim Posted August 31, 2010 Posted August 31, 2010 My site is a download site. When PP sends me a new case report, most times the customer claims they didn't make the purchase. Having the IP address might save me some money if I can prove that the IP address it was sent to is the same as the customers'. Paul Then you probably want to record the IP address in the orders table. There are add-ons for that, if you want then saved in addition to the emails. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
PGelsman Posted August 31, 2010 Author Posted August 31, 2010 Then you probably want to record the IP address in the orders table. There are add-ons for that, if you want then saved in addition to the emails. How do I do that? I really messed up with the IP thingy, I had to get another copy of it from a guy who did some programming for me last month. It seems I had so many copies of it, I forgot what was what. So I still don't have the IP address in but at least my site seems to be working again. Will pay........ [email protected]
Recommended Posts
Archived
This topic is now archived and is closed to further replies.