How do you customize the Admin Purchase Report Email?

This topic is: not resolved

This topic contains 7 replies, has 5 voices, and was last updated by  jodamo5 1 year, 8 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
Author Posts
Author Posts
May 17, 2011 at 8:51 pm #105006

sonya
New Member

WP E-commerce version 3.8.3

The customizations I made to the transaction_result_functions.php file (in a previous version of wpec) no longer work, as it looks like the transaction_result_functions.php doesn’t exisit in the new version. (or am I blind and can’t find it???)

Anyone have any how-tos on how to add checkout form fields to the email that is sent to admin??
version 3.8 plz!!!

May 17, 2011 at 9:24 pm #105007

Hanna Iris
New Member

Hi Sonya,

the file is in wp-content/plugins/wp-e-commerce/wpsc-theme/functions/

May 18, 2011 at 6:46 am #105008

sonya
New Member

ahhhhhh I see it! Thanks Hanna.

May 18, 2011 at 7:37 am #105009

sonya
New Member

although now I’m stuck on how to implement old version solutions to the new version code. A lot has changed it looks like.

I need to show sku, custom fields, and payment method in the admin emails….
I looked at old posts on this forum, but I don’t think those solutions & hacks apply anymore.

July 6, 2011 at 6:45 am #105010

nemoprincess

Hello there, Have you found any kind of solution?

July 13, 2011 at 10:42 am #105011

dukeofarc

Hi. I’m looking for the same solution. Can anyone help?

August 28, 2011 at 12:06 am #222249

jodamo5
New Member

I managed to add the payment gateway used to the subject line of the Purchase Report that is sent to the site admin. I’m not a programmer, so can’t figure out how to add this into the email instead of the subject! But it’s useful enough for me.

(My purpose was so that I could identify bank deposit payments clearly when I receive a Purchase Report, so I don’t send the items purchased until I’ve checked the payment has cleared).

So here’s my very basic fix:

In this file:
wp-content/plugins/wp-e-commerce/wpsc-theme/functions/transaction_result_functions.php

Find this line near the end:

wp_mail( get_option( ‘purch_log_email’ ), __( ‘Purchase Report’, ‘wpsc’ ), $report );

Change it to this:

wp_mail( get_option( ‘purch_log_email’ ), __( (‘Purchase Report: ‘ . $curgateway), ‘wpsc’ ), $report );

It’s a bit ugly, but does the job for me. Hopefully it will be of help to you. And if you find a real solution, please post it here!

August 28, 2011 at 9:05 pm #222313

jodamo5
New Member

Another update from me … I just found an excellent way to include extra information in the product reports, or notification emails. The specific tip it shows is how to include the shipping option in the admin email.

I expect this technique can be applied to other info too.

http://getshopped.org/forums/topic/add-shipping-method-to-admin-email/

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘3.8 Stable Release’ is closed to new topics and replies.