Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

A client site has been barred from using Paypal, so their WP-e-Commerce catalog/cart now has to use manual EFT bank payments to accept money from customers. A customer receives this banking information in their order confirmation email.

When a customer makes an EFT payment through their bank website, they have the opportunity to insert a reference to accompany the payment. This is a string of text.

We'd like to send the order number in the order confirmation email, so the customer can use the order number as the EFT reference, so the client site can match EFT payments and orders.

How do we insert the order number into the order confirmation email?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

In the wp-e-commerce admin, Settings -> Store -> Admin, you can customise the Customer Purchase Receipt (confirmation email) template to add this, e.g.

Please quote %purchase_id% as reference when paying by EFT.

There are a couple of hooks in wp-e-commerce that let you insert other data into the confirmation emails:

  • wpsc_transaction_result_cart_item -- this is called for each item in the cart array
  • wpsc_transaction_result_message -- this is called to filter the text of the email
  • wpsc_transaction_result_message_html -- this is called to filter the on-page confirmation

You can get more information about the whole deal on a blog post I wrote a while ago (NB: pre-3.8.9 which changed things slightly!)

share|improve this answer
    
Perfect, thank you @webaware. –  Steve Jan 15 '13 at 7:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.