Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8177603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:33:08+00:00 2026-06-06T23:33:08+00:00

I am having a nightmare trying to extend the admin emails in wp ecommerce

  • 0

I am having a nightmare trying to extend the admin emails in wp ecommerce for wordpress.
The reports are very basic and no documentation to support adding to the emails.

I want to be able to add shipping address details to the admin report so I don’t have to log into the WordPress backend to view the purchase_log everytime I make a sale.

I have tried following an example from here http://getshopped.org/forums/topic/add-shipping-method-to-admin-email/ but with no luck.

I have added this:

    $report = str_replace( '%shipping_country%', $purchase_log['shipping_country'], $report );
    $report = str_replace( '%billing_country%', $purchase_log['billing_country'], $report );
    $report = str_replace( '%shipping_country%', $purchase_log['shipping_country'], $report );
    $report = str_replace( '%buyer_name%', wpsc_display_purchlog_buyers_name(), $report );
    $report = str_replace( '%shipping_address%', wpsc_display_purchlog_shipping_address(), $report );
    $report = str_replace( '%shipping_city%', wpsc_display_purchlog_shipping_city(), $report );
    $report = str_replace( '%shipping_country%', wpsc_display_purchlog_shipping_country(), $report );

to this (which is originally in wpsc_transaction_results_functions.php)

    $report = apply_filters( 'wpsc_transaction_result_report', $report );
    $report = str_replace( '%purchase_id%', $report_id, $report );
    $report = str_replace( '%product_list%', $report_product_list, $report );
    $report = str_replace( '%total_tax%', $total_tax, $report );
    $report = str_replace( '%total_shipping%', $total_shipping_email, $report );

etc…

but I get the following error after entering credit card details – does anyone know of a simple way to add to the report?
Cheers guys

error after payment

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:33:09+00:00Added an answer on June 6, 2026 at 11:33 pm

    I know it’s been a while since this was opened, but I found a solution to this. It’s a bit messy, but it works.

    So just above the filters in the above code within wpsc-transaction_results_functions.php above I created a database query that looked like this:

    $cust_info = $wpdb->get_results("SELECT * FROM wp_wpsc_submited_form_data WHERE log_id = '$log_id'", ARRAY_A);
    

    I then found out what parts of the array results was the information I needed, I did this by adding:

    echo '<pre>';
    print_r ($cust_info);
    echo '</pre>';
    

    I then put through an order and the array appeared on the transaction results screen. So I then set the variables…

    $first_name = $cust_info[0]['value'];
    $last_name = $cust_info[1]['value'];
    $address_1 = $cust_info[2]['value'];
    $city = $cust_info[3]['value'];
    

    I then created the shortcodes i.e.

    $message = str_replace( '%first_name%', $first_name, $message );
    

    And don’t forget to remove the print_r ($cust_info); etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having a nightmare trying to figure out event Bubbling.. Full test case : <html>
I am having a nightmare trying to debug the event receiver of a Sharepoint
I am having a nightmare of a time trying to label data with pyplot.
Hi guys just a quick question, After having a nightmare trying to get an
I'm having a bit of a nightmare trying to get REE playing nicely with
I am having a nightmare, been trying all day with this, and searched google
I'm having a nightmare trying to get some quotes to loop with a delay.
I am having a nightmare trying to get this working (and have looked at
I'm having a nightmare with a simple function! I want it to: read the
I'm having a nightmare with LINQ. I've got a table of Projects, and each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.