≡ Menu

Change Shopp Receipt Email Titles

By default, the Shopp Plugin for WordPress uses “New Order” as the subject line for emails.  This works well enough, I guess, but I have reasons to want a little more specificity.  I really wanted the Order ID in the subject, that way I’d be able to scan my order emails and easily find what I’m looking for.  It’d also be very helpful when forwarding orders to some of my vendors.  I generally add it myself, but that’s a pain from my phone — much easier if it’s already there.

After serveral months of running the Shopp Ecommerce Plugin for WordPress, I am really happy with it.  I honestly have few complains, but one of them is their awful private forum.  Support exists, but it’s not very good.  The documentation also exists, but it’s hard to find what you’re looking for.

After many test orders, I finally figured out how to get what I wanted.  I tried using PHP in the subject line, but that messed up the HTML for the entire email.  I ended up using a shortcode, which is how the subject was originally displayed.

Here’s what I did.

First, you’ll need to be using theme templates.  If you don’t know how to do that, comment on this post, and I can explain in a new post.

Second, you’re going to edit the order.php template.  When you open it, right at the top, you’ll see the “From”, “To”, and “Subject” lines for the email.  The original shortcode [subject] is what creates the “New Order” default.  I changed that line to be “OGS Order [orderid]”

I used OGS to signify the order was coming from my Outdoor Game Shop site.  The [orderid] shortcode gets me the desired order number.

Once you’ve made the edits, you just replace the theme template order.php file.  It’s actually pretty easy if you know where to look for everything.  If you have any questions or comments, please let me know!

If you’d like to see it in action, all you have to do is order a game from me!  I’m using Shopp on my Outdoor Game Shop site.

List of shortcodes you can use is here.

{ 0 comments }

Leave a Comment