[ad_1]
The thanks web page, additionally known as the acquisition affirmation web page, is an often-neglected a part of many eCommerce web sites. Since its major operate is to let prospects know that their buy was profitable, retailer house owners typically pay little consideration so long as it shows successful message of some kind.
However the thanks web page can present rather more worth for you and your prospects in the event you spend a while optimizing it.
Why customise your WooCommerce thanks web page?
Though your thanks web page could look like a small a part of your web site, each level within the buyer journey is an opportunity to offer the patron with extra worth and enhance income in your retailer. Research have proven that it’s a lot inexpensive to retain present prospects than it’s to search out new ones. If somebody arrives at your thanks web page, it means they’ve already made a purchase order. And since they’re already extra prone to make one other one, this can be a nice alternative to information them in that path. All it prices is slightly effort up entrance and this new enchancment to your retailer will go to be just right for you every day.
Additionally, the thanks web page is a secure place so that you can show presents to your prospects as an alternative of sending them in transactional emails, the place you could need to restrict the quantity of promotional content material.
Listed below are some methods to make use of customized thanks pages to enhance your retailer:
- Embody vital info associated to the order. Add a supply time estimate so prospects have an concept of when they may obtain their order. Or embody hyperlinks to product guides, onboarding movies, FAQs, or different assist paperwork. This can assist handle expectations, present wanted info, and scale back assist tickets.
- Share particular presents. Embody coupons that prospects can use on their subsequent order and counsel associated merchandise or affiliate merchandise.
- Remind prospects of loyalty factors, rewards, or subscription standing. With WooCommerce Factors and Rewards, prospects can earn factors for purchases, account signups, and critiques. The thanks web page is a good place to remind them of the factors they’ve earned, how shut they’re to redemption, and methods to earn extra. If you happen to promote subscriptions or memberships, the thanks web page presents an awesome alternative to counsel plan upgrades or remind prospects if their recurring cost methodology is about to run out.
There are just a few alternative ways you’ll be able to customise your thanks web page. Handbook strategies embody coding a customized web page template, utilizing WooCommerce hooks through your theme’s capabilities.php file, and including customized types to your baby theme’s stylesheet. If you happen to’re not comfy with coding, you need to use a plugin that allows you to customise your thanks web page.
The default WooCommerce thanks web page
The model of your thanks web page could differ based mostly on the theme you will have put in. It might even use customized thanks pages already. Nonetheless, what you see under is the default content material included with types utilized from the Sinatra theme:

As you’ll be able to see, the content material is comparatively primary. The order quantity, date, buyer e-mail, complete, cost methodology, merchandise bought, and billing info are included by default. Let’s discover some methods we are able to add some primary customizations to enhance the thanks web page.
Utilizing an extension to customise your WooCommerce thanks web page
If the method of manually customizing your thanks web page appears tedious, otherwise you’re merely not comfy digging into code, there are extensions that may do the heavy lifting of making customized thanks pages for you.
The Customized Thank You Pages extension permits you to create a number of thanks pages that show conditionally based mostly on the merchandise that have been bought. These customized thanks pages can show distinctive titles and descriptions, billing and delivery info, cross-sells, up-sells, and anything that you simply may need to add. Since these are precise pages and never dynamically generated, you’ll be able to add any WooCommerce or theme shortcodes, embed video, and add customized textual content.
Simply create and format your thanks pages and select which one you need to show within the Product information part for every product.

You may even present a number of thanks pages for a single product or go for a single thanks web page that shows based mostly on precedence. If a buyer buys a number of merchandise in an order that every have their very own thanks web page assigned to them, the web page with the bottom precedence quantity would be the one which shows.

Another choice for creating customized thanks pages is the Customized Thank You and Success Pages extension. It has related options to the Customized Thank You Pages extension but in addition has the aptitude of displaying thanks pages based mostly on consumer function or classes and displaying built-in social sharing buttons.

Create a customized WooCommerce thanks web page manually
On this part, we’ll talk about three alternative ways to manually customise your WooCommerce thanks web page.
Earlier than you get began, be sure to’re utilizing a baby theme as an alternative of a mother or father theme. Don’t immediately overwrite recordsdata in WooCommerce or your mother or father theme as these recordsdata can be overwritten in future updates.
Notice: If you happen to’re unfamiliar with code and resolving potential conflicts, choose a WooExpert or Developer for help. We’re unable to offer assist for customizations underneath our Help Coverage.
Tips on how to code a WooCommerce thanks web page template
Step 1: Obtain the thankyou.php web page template file
Use an SFTP shopper or your host’s cPanel to entry your web site’s recordsdata and navigate to wp-content/plugins/woocommerce/templates/checkout. Obtain the file thankyou.php to your native machine.

Step 2: Edit the thankyou.php file together with your customized code
Open thankyou.php in your textual content enhancing software program of selection. You need to use Notepad (Home windows) or TextEdit (Mac), however be sure to’re enhancing in plain textual content mode. Higher nonetheless, use a free textual content enhancing software program designed particularly for coding like Atom.io. Atom.io is a cross-platform textual content editor that works on Home windows, Mac OS, and Linux working methods.
For this instance, we’ll change the textual content “Thanks. Your order has been obtained.” to “Thanks for putting an order with us!” We’ll additionally add some details about delivery and make some model modifications to visually name consideration to this vital info.
Authentic code:
That is the default code that we’ll be enhancing within the baby theme template.
<p class="woocommerce-notice woocommerce-notice–success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thanks. Your order has been obtained.', 'woocommerce' ), $order ); // phpcs:ignore WordPress.Safety.EscapeOutput.OutputNotEscaped ?></p>
Alternative code:
That is the code we’ll be utilizing in our new customized thanks web page.
<p class="woocommerce-notice woocommerce-notice–success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thanks for putting an order with us!', 'woocommerce' ), $order ); // phpcs:ignore WordPress.Safety.EscapeOutput.OutputNotEscaped ?></p>
<p class="thankyou-note”> Please be aware that supply occasions are at the moment estimated at 7-10 enterprise days for U.S. supply. Orders outdoors the USA could take two weeks to 30 days to be delivered and will expertise delays on account of customs or different present insurance policies which are out of our management. When you have any questions on your order, please contact us at customerservice@yourstore.com.</p>
After making these modifications, save your file with the identical title, thankyou.php. In your SFTP utility or cPanel, navigate to wp-content/themes/your-child-theme. In your baby theme folder, you’ll create two new folders. First, create a folder named woocommerce. Within the woocommerce folder create a folder known as checkout.
Now add your modified thankyou.php file to the kid theme’s woocommerce/checkout folder.
CSS customizations
Notice that we’ve added a brand new p class known as .thankyou-note. In our baby theme’s model.css file, we’re going so as to add some customizations to the already present p.woocommerce-notice class and add types to the brand new p.thankyou-note class as follows:
.woocommerce-checkout p.woocommerce-notice {
font-size: 20px;
font-weight: 800;
coloration: #3857F1;
}
.woocommerce-checkout p.thankyou-note {
margin-bottom: 40px;
padding: 0 0 5px 20px;
border-left: strong 5px #c4401c;
}
Save your model sheet and re-upload it with these customizations to your baby theme folder.
It is best to now have a thanks web page that appears like this:

Customizing the WooCommerce thanks web page template with hooks
You may also use WooCommerce hooks in your baby theme’s capabilities.php file so as to add or take away content material out of your thanks web page. If you happen to’re unfamiliar with WooCommerce hooks, evaluate the WooCommerce documentation. For a whole checklist, try the WooCommerce Motion and Filter Hook Reference web page.
For this instance, we’ll use a hook so as to add a particular coupon for orders over $100 that may seem under the billing deal with part.
In our baby theme’s capabilities.php file, we’ll add the next code:
add_action( 'woocommerce_thankyou', 'coupon_thankyou', 10, 2 );
operate coupon_thankyou( $order_id ) {
$order = wc_get_order( $order_id );
$complete=0;
foreach ( $order->get_items() as $item_key => $merchandise ) {
$item_data = $item->get_data();
$item_total = intval( $item_data[‘total’] );
$complete += $item_total;
}
if ( $complete>100 ) {
echo "<part class="woocommerce-thankyou-coupon"><h2 class="woocommerce-column__title">Congrats! Get 50% off your subsequent buy!</h2><div class="tybox"><p>As a particular thanks for spending over $100 with us right this moment, we’d like to provide you 50% off your subsequent order of any full priced objects in our retailer.</p><p>Use code <code class="tycoupon">[ 50special ]</code> in your subsequent order.</p></div></part>";
}
}
Save your modifications and add the revised file to your baby theme folder.
CSS customizations
Notice that we’ve added some new CSS courses within the above motion — part class .woocommerce-thankyou-coupon, a div class known as .tybox, and a code class known as .tycoupon. Since this can be a particular coupon, we need to name consideration to it and add distinctive types that assist it stand out from the remainder of the thanks web page. We’ll add these types to the brand new customized courses within the baby theme model.css file as follows:
.woocommerce .woocommerce-thankyou-coupon div.tybox {
border: dashed 13px;
border-radius: 3px;
border-color: rgba(110,110,110,.2);
padding: 12px 20px;
background: rgb(176,34,195);
background: linear-gradient(0deg, rgba(176,34,195,0.30) 0%, rgba(253,214,45,0.30) 100%);
}
.woocommerce .woocommerce-thankyou-coupon {
margin-bottom: 2em;
}
code.tycoupon {
font-size: 18px;
font-weight: 800;
}
Re-upload the kid theme model sheet with these customizations to your baby theme folder. The outcome ought to now appear to be this:

Irrespective of which methodology you resolve to make use of to customise your WooCommerce thanks web page, it is best to take the time to develop a method that gives the most effective return in your efforts. Relying on the kind of enterprise you’re operating, you could concentrate on rewards or loyalty factors, coupons, or detailed onboarding info.
Whereas customized thanks pages are only one a part of the larger puzzle that’s rising your online business, they’re a singular alternative to offer useful info and focused advertising messages that each save and make you cash.
Uncover extra methods to customise your WooCommerce retailer.
[ad_2]

