Case Study: Adding Course Codes to WooCommerce Order Emails for a Singapore Baking Academy

A baking academy in Singapore needed every completed order email to show the right course name, course code and price for funded courses. The old setup had stopped working. Here is how guidance sessions turned into a clean ACF and PHP fix, plus honest advice about backups and hosting control.

Course Codes in Order Emails

Table of Contents

Case Studies · real client work

In September 2025 the manager of a baking academy in Singapore asked for an hour of guidance. Their website had been built with Elementor by a web design company, a few links were broken, and they wanted to learn how to edit pages themselves. Two months later the same manager came back with a more pressing problem: the automatic emails customers received after paying for a course no longer showed the course code, which their students needed for funding claims. Over five orders we covered Elementor editing, hosting and backup advice and a custom fix that put the right course details into every completed order email. This case study explains each step, including a few hiccups along the way.

Project snapshot
  • Client: a baking academy in Singapore selling hands-on bread, cake, gelato and pastry courses online
  • Platform: WordPress, Elementor, WooCommerce, Advanced Custom Fields
  • Work: Elementor coaching, broken link fixes, hosting and backup advice, custom course details in WooCommerce emails
  • Timeline: September 2025 to May 2026, five orders
  • Result: every completed order email now shows the course name, course code and price, and the team edits their own pages

Phase 1: learning to edit an inherited Elementor site

The first request was simple and very common. The academy’s site had been built by an agency, and the team wanted to update pages and fix a few broken links without paying for every small change. In a one-hour session I showed the manager how to find the right page, open it in Elementor, edit text, images and buttons safely, update links and check the result on mobile. We fixed the broken links together so the method stuck.

“Tanvir’s professionalism and promptness in resolving the issue I’m facing is highly commendable.”

Academy manager, September 2025

Phase 2: who really controls the website?

In November the manager returned about the order emails. Before starting, we discussed something that affects many small businesses: control. The website was hosted on the original agency’s server. The agency held the backend access and was responsible for backups. I noticed there was no backup running inside WordPress itself, so I suggested adding a plugin that could take backups and record an activity log.

The manager was honest that they did not know how plugins worked. That is completely normal, and it is exactly why the advice needed to be simple. When the agency offered to hand over server access, on the condition that their backup responsibility would end, I explained the trade-off clearly. Server access was not needed for the email fix, and as long as the site lived on the agency’s server, it made sense for the agency to keep handling daily backups. Taking over server access only makes sense if you also have someone ready to take over that responsibility. A good developer should help a client keep their safety net, not remove it.

Phase 3: a missed call and a lesson in notifications

Our next call did not happen as planned. I waited in the meeting room while the manager saw nothing on their side, and later, none of my messages appeared for them that evening. It turned out the inbox had not refreshed in an idle browser tab. I suggested switching on email notifications for messages and refreshing the page before a call. We rescheduled at a time that suited Singapore, and the next session went smoothly. Small technical frictions like this happen, and patience on both sides keeps them from becoming real problems.

“Superb and committed to solving the issue I face.”

Academy manager, November 2025

Phase 4: scoping the email fix properly

Once access and backup questions were settled, I wrote a short scope of work: take a full backup first, then add custom code so the order email shows the course details. The manager sent the six courses involved, each with its own official course code, from artisan bread and foundation cake to gelato making and an intensive cake and bread programme.

I asked two clarifying questions before quoting. First, which email should change? WooCommerce sends separate emails when an order is received, when it is processing and when it is completed. I showed the manager where to preview each one in the WooCommerce email settings. The answer was clear: only the Completed Order email needed the course details. Second, I asked for a screenshot of how the email used to look, so I could match the old format.

With six courses and conditional logic for each, I estimated two to two and a half hours and gave a price range. The manager approved, and I started that day.

Phase 5: why the old field stopped working

The previous setup stored each course code in a custom meta field and inserted it into emails. Somewhere along the way, possibly after an update, that field stopped returning values, so emails arrived without the code. Testing confirmed it: the manager placed a test order and the email still lacked the course ID.

Rather than chase the broken field through someone else’s old code, I rebuilt the feature cleanly. I created a new course code field with Advanced Custom Fields on each course product, entered the codes, and wrote a small PHP function that hooks into WooCommerce emails. It adds a Course Details section to the Completed Order email showing the course name, course code and price for each course in the order. Because the codes now live in an ACF field on the product, the team can update a code or add a new course without touching code.

After the change, I asked the manager to check a real completed order email and confirm that every detail appeared correctly. It did.

“Thank you so much Tanvir for your professionalism and always doing your best to resolve the issues we face.”

Academy manager, November 2025

Why course codes in emails matter

For training providers whose courses are eligible for government funding or employer reimbursement, the order email is often the first document a student forwards. If it lacks the official course code, students email the office, staff look up details by hand, and claims get delayed. Putting the code into the automatic email removes that whole loop. It is a small change with a big effect on admin time.

Phase 6: ongoing help

In December the manager booked another Elementor session for more page edits, and in May 2026 came back for further WordPress help. Each time the team knew a bit more, so the sessions focused on new things rather than repeating the basics. That is the sign that early coaching paid off.

The feedback loop

  • Scope in writing. A short scope of work avoided any confusion about what would change.
  • Clarify before quoting. Two questions saved hours of building the wrong thing.
  • Test with real orders. The manager’s test orders showed exactly what customers saw.
  • Explain trade-offs simply. Backups and server access were discussed in plain language.
  • Make it editable. Storing codes in an ACF field means no developer is needed to update them.

Lessons for training providers on WooCommerce

  • Know which email you need to change. Received, processing and completed are three different templates.
  • Keep course data in fields, not code. ACF fields make course codes and details easy to maintain.
  • Back up before custom code. Even small snippets deserve a safety net.
  • Understand who controls hosting. Whoever controls the server should handle backups unless responsibility is clearly transferred.
  • Test the customer experience. Place a real or test order and read the email your customer gets.

Need custom details in your WooCommerce emails?

Whether it is course codes, booking dates, delivery notes or anything else your customers need in writing, I can add it to the right WooCommerce email, store it in editable fields and test it with real orders.

What the new email section actually does

For readers who manage a WooCommerce store, here is the logic in plain language. When WooCommerce prepares the Completed Order email, it runs a series of hooks, points where extra content can be added. The custom function listens to one of those hooks and first checks that the email being sent is the completed order email, so the other emails stay untouched. It then looks at each item in the order. For each product, it reads the course code from the ACF field. If a code exists, it adds a row with the course name, the code and the price. If a product has no code, such as a gift card or an accessory, it is skipped quietly. The section is styled to match the rest of the email so it looks native rather than bolted on, and it appears in both the HTML and plain text versions of the email.

Because the function only reads data, it cannot change orders or prices. That makes it safe to keep in place through future plugin and theme updates. If the academy launches a new course next year, the team simply fills in the course code field on the new product and the email shows it automatically.

Work with meWordPress, WooCommerce and Elementor expert help

Custom WooCommerce emails, ACF fields and clean PHP snippets, scoped in writing and tested with real orders.

View the Fiverr gig →

Want advice before deciding? Book a consultation call with a written summary, or send me a short brief.

Frequently asked questions

How do I add a custom field to WooCommerce order emails?

Store the value in a product field, for example with ACF, then use a small PHP hook to print it in the chosen WooCommerce email.

Which WooCommerce email do customers get after paying?

Usually a processing email after payment and a completed email when the order is marked complete. You can preview each in WooCommerce email settings.

Should I take server access from my web agency?

Only if someone is ready to take over backups and maintenance. Otherwise let the host or agency keep that responsibility.

Why did my custom email field suddenly stop showing?

An update or changed field name can break old custom code. Rebuilding with a clean field and hook is often faster than debugging.

Free toolTry the Website Cost Calculator

Free, no sign-up, works on any device.

Open the free tool →
Written by Tanvir H

WordPress and Elementor web designer at Tanvir WebXprt, Bangladesh, with 7+ years of experience and 650+ projects. Tanvir builds the free tools on this site and writes practical guides for creators, learners and small businesses.

Learn more

Guides for this tool

Built by Tanvir WebXprt

Want a tool, website or app like this for your business?

Every free tool on this site is designed and coded by Tanvir H, a Bangladesh-based WordPress and Elementor web designer with 7+ years of experience and 650+ projects for clients worldwide. Fast, mobile-first, search-optimised websites that turn visitors into customers.

Website developmentWordPress, Elementor & e-commerce sitesfrom $899
Creative designWeb, graphic & brand identityfrom $220
SEO & paid adsRank on Google, run Meta & Google Adsfrom $300
Speed & fixesCore Web Vitals, bugs and upgradesCustom quote
  • 650+ projects
  • 7+ years
  • 4.9★ rating
  • Govt. registered freelancer

Contents

Was this helpful? Spread the word and share with your network!
Facebook
Pinterest
LinkedIn
Reddit
VK
X
Telegram
Threads
Tumblr
Email
WhatsApp
Pocket

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Article