• I am working on editing the emails sent to the customer. All instructions I have read refrence wpsc-transaction_results_functions file that should be in plugins/wp-e-commerce/wpsc-theme/functions/
    When I go there there that file is diferent from what I have in \themes\mytheme\functions
    This block of code is not there

    $message = apply_filters( 'wpsc_transaction_result_message', $message );
    			$message = str_replace( '%purchase_id%', $report_id, $message );
    			$message = str_replace( '%product_list%', $product_list, $message );
    			$message = str_replace( '%total_tax%', $total_tax, $message );
    			$message = str_replace( '%total_shipping%', $total_shipping_email, $message );
    			$message = str_replace( '%total_price%', $total_price_email, $message );
    			$message = str_replace( '%shop_name%', get_option( 'blogname' ), $message );
    			$message = str_replace( '%find_us%', $purchase_log['find_us'], $message );

    As I tried to solve my problem, I commented out some of these values and they still worked. So where else are these coming from? Modifying this file has no effect. This code doesn’t appear in 3.8.12.1 So where can I edit the email?

    http://wordpress.org/plugins/wp-e-commerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Bloke,
    I’m PHP newbie, but I think I found the function that sends emails to customers in 3.8.12.1. It’s in puchase-log-notification.class.php in wpsc-includes.

    I’d like to remove payment instructions of manual payment in Purchase Receipt sent once order cleared. Any idea?

    Thread Starter Bloke

    (@bloke)

    I found the solution. I created a new class to extend the customer email. Using filter “wpsc_purchase_log_customer_notification_raw_message”. I adapted what I found here https://gist.github.com/webaware/4964078 and was able to get the sales log notes and attach them to the emails.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wpsc-transaction_results_functions’ is closed to new replies.