Support » Plugin: WP e-Commerce Style Email » How to Insert field (payment instructions)

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am trying to take payment instructions out of the purchase receipt has anyone resolved this?

    I was looking for that too.

    This solution seems to work (for test gateway. For custom manual gateways replace _test_ with your gateway):

    Place this code at the bottom of function.php file in your theme

    function _filter_test_merchant_customer_notification_raw_message( $message, $notification ){
    	$purchase_log = $notification->get_purchase_log();
    	if($purchase_log->is_accepted_payment()){
    		remove_filter(
    			'wpsc_purchase_log_customer_notification_raw_message',
    			'_wpsc_filter_test_merchant_customer_notification_raw_message',
    			10,
    			2
    		);
    		remove_filter(
    			'wpsc_purchase_log_customer_html_notification_raw_message',
    			'_wpsc_filter_test_merchant_customer_notification_raw_message',
    			10,
    			2
    		);
    	}
    	return $message;
    }
    
    //edit testmode
    add_filter(
    	'wpsc_purchase_log_customer_notification_raw_message',
    	'_filter_test_merchant_customer_notification_raw_message',
    	1,
    	2
    );
    add_filter(
    	'wpsc_purchase_log_customer_html_notification_raw_message',
    	'_filter_test_merchant_customer_notification_raw_message',
    	1,
    	2
    );

    Source: http://releasethegeekinside.me/wp-e-commerce-bug-remove-payment-instruction-in-receipt-purchase-email/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Insert field (payment instructions)’ is closed to new replies.