Custom Checkout Success Page for Magento 2
- Compatibility
- 2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
Description / Custom Checkout Success Page for Magento 2
MAGENTO 2 · POST-PURCHASE · SUMMARY · CMS CONTENT
Turn purchase confirmation into a clear order summary.
Kowal Checkout Thank You Page
Show customers order details, products, and amounts together with your own CMS block. Explain what happens next and add useful information to the thank you page.
Order details · Custom CMS block · Optional Google Reviews
HOW IT WORKS IN PRACTICE
01 · Prepare CMS content
Add instructions, contact details, and post-purchase information.
02 · Enable the success page
Select the block and settings for the store view.
03 · The customer sees the summary
After placing the order, they receive details and next steps.
What does your store gain?
Explore the module’s features, use cases, and settings.
Why use this module?
The default Thank You Page in Magento often ends the customer journey with a short message and an order number. This module turns the success page into a useful post-purchase communication point, without heavy builders and without rebuilding checkout.
What does the Kowal_CheckoutThankYouPage module do?
The Kowal_CheckoutThankYouPage module expands the default Thank You Page in Magento 2 and turns it into a clear order summary screen with the option to add your own marketing and informational content. It works based on the success page layout and standard Magento blocks, making it lightweight, compatible, and safe to maintain.
Organizes and moves standard Magento elements into a new layout
- success messages (checkout.success) and post-purchase registration (checkout.registration) to a dedicated page container,
- standard messages such as warnings, errors, and confirmations to a clear section at the top of the page.
Displays complete order details in one place
- basic order information such as number and date,
- order information blocks based on native Magento components, for example Magento\Sales\Block\Order\Info,
- a complete summary of the order contents.
Shows the list of products from the order, items, and a full amount summary, totals
- the list of order items (Magento\Sales\Block\Order\Items) together with renderers (sales_order_item_renderers, sales_order_item_price),
- a full cost summary (Magento\Sales\Block\Order\Totals) with label/value styling configuration,
- taxes (Magento\Tax\Block\Sales\Order\Tax),
- and, if the store runs on Magento EE and the configuration is available, a gift cards section, conditionally via ifconfig='giftcard/email/identity'.
Adds extra space for content from other modules, container
- order.success.additional.info
Displays a custom CMS block on the success page, configurable
In the CMS block, you can place, for example:
- what’s next instructions such as fulfillment, timelines, and contact,
- returns and claims information,
- a promotional banner / discount code for the next purchase,
- links to FAQ or help pages,
- descriptive cross-sell content, for example add accessories to your purchase.
(Optional) Adds Google Customer Reviews, Survey Opt-in
This allows reviews to be collected in a way that follows the Google mechanism, without manually adding data to the template.
The integration automatically fills in the required data for gapi.surveyoptin.render(), including:- merchant_id,
- order_id,
- email,
- delivery_country,
- estimated_delivery_date,
- the product list as products[].gtin (GTIN/EAN retrieved from the product attribute).
Supports a comment / additional information section, if you use one
Lightweight and safe for the order process
- it is easy to deploy,
- it is easy to disable and return to the standard view,
- the risk of checkout conflicts is minimal.
Key advantages, directly based on the code
Simple configuration: enable/disable + select one CMS block to display on the success page.
Works per store view (scope: default/website/store).
Efficient CMS rendering: the block content is filtered by the standard CMS filter (directives, variables) and cached (24h by default) with a key dependent on the store.
Works with a larger module: if it detects an active Kowal_ThankYouPage (and enabled in the configuration), then:
the option in the panel is frozen (disabled),
and the success page remains under the control of that larger module.
No tables or database changes: installation is lightweight (layout + blocks + configuration).
Configuration in Magento
Path: Stores → Configuration → Kowal Checkout → Order Success Page
Custom Order Success Page: enable/disable the custom success page (when disabled, the default Magento page returns)
Success Page Custom Block: select the CMS block to display after the order details
CMS content and order data
In Stores → Configuration → Kowal Checkout → Order Success Page, enable Custom Order Success Page and select Success Page Custom Block. The block should be active; its content is filtered by Magento’s CMS mechanism.
The CMS has a default cache lifetime of 86400 seconds and a key that includes the store. Use it for content shared by customers of a given view, such as fulfillment instructions and contact details. Specific order details are rendered in separate blocks without page cache.
Google Reviews — integration settings and data
The optional Survey Opt-in requires enabling the feature and entering the Merchant ID. You also set the estimated delivery days and the GTIN/EAN attribute code. The module passes the order number, email, country, estimated date, and product identifiers to the Google script.
The date is calculated as the presentation day + the configured number of days; it does not come from a carrier calculation. The code retrieves the shipping country with fallback to billing, visible items, and up to 50 unique GTINs. Some additional configuration fields do not change this flow in the verified implementation.
Optional Google Merchant Widget
The package also includes a Merchant Widget for store pages. In the Merchant Widget (Google) group, you set a separate toggle, Merchant ID, LEFT_BOTTOM or RIGHT_BOTTOM position, desktop/mobile offsets, and an optional region.
The widget and Survey Opt-in are disabled by default. The visibility of Google features also depends on the account, correct data, and loading external scripts.
Dependencies and compatibility with other extensions
The package requires kowal/base and kowal/module-checkout. Detecting an active Kowal_ThankYouPage can hand over control of the success page to it and lock the custom page toggle in the panel.
The order.success.additional.info container allows custom blocks to be attached. The custom.comment section reads the order comment if it was saved by the process or extension in use. The module itself does not add a comment field in checkout.
Installation with Composer
Package kowal/module-checkoutthankyoupage, module Kowal_CheckoutThankYouPage. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to your store’s process.
From configuration to result
1. Prepare CMS content
Add instructions, contact details, and post-purchase information.
2. Enable the success page
Select the block and settings for the store view.
3. The customer sees the summary
After placing the order, they receive details and next steps.
What happens next with my order?
Next to the products and amount summary, the customer sees fulfillment instructions, support contact details, an FAQ link, and returns information.
You update the content in the CMS. An optional code for the next purchase or an accessories description can be added as your own message; the module itself does not create a discount rule or product recommendations.
Take care of communication after the order is placed
Want to adapt the module to your store? Ask about implementing Kowal Checkout Thank You Page and discuss the configuration or required extensions.
More Information
| Theme compatibility | Luma / Blank, KOWAL |
|---|
Questions and Answers
Can I set different content for different stores / language versions?
Can the module be quickly disabled and the standard Magento view restored?
Is the module safe for performance?
Change Log
Version: 1.0.13
02/12/2026
Added
- Integration of **Google Customer Reviews (Survey Opt-in)** on the post-order thank you page (Success Page).
- New template: `view/frontend/templates/onepage/google_opinie.phtml` loading `platform.js` and rendering `gapi.surveyoptin.render()`.
- New block: `Kowal\CheckoutThankYouPage\Block\Onepage\Success\GoogleOpinie` generating the payload for Google (merchant_id, order_id, email, delivery_country, estimated_delivery_date, products[].gtin).
- Added the block to the success page layout (Success Page), with `cacheable='false'` (data per order).
Configuration
- Expanded `system.xml` with a Google reviews configuration section:
- Enable/disable the integration.
- `merchant_id` (Merchant Center ID).
- `estimated_delivery_days` (delivery date calculation).
- `gtin_attribute` (GTIN/EAN attribute code in the product).
- Delivery country source options (shipping/billing).
- Product count limit in the payload.
- Added default values in `etc/config.xml`.
- Added ACL for configuration (permissions for the section in the panel).
Notes
- The integration runs only on the success page after an order is placed and is based on the last order from the checkout session.
- If required data is missing, such as merchant_id, the block does not render the opt-in script.
Module Installation Instructions
Installation with Composer
Composer repository access details (customer email address and license token) will be sent to you by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with your account email address and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.
composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-checkoutthankyoupageCompleting the installation
After installing the package, update Magento and clear the cache:
php bin/magento setup:upgradephp bin/magento cache:flushIn a production environment, also run DI compilation and deploy static files according to your store’s deployment process.
Customer Reviews
At toursport.pl, after making a purchase, customers often looked for information on “what’s next” — where to check order details, how shipping/fulfillment works, and which products to choose as accessories. The default Magento success page was too limited and did not provide space for clear instructions.
Implemented Solution
We used the Kowal_CheckoutThankYouPage module to:
keep full order details on the success page (items, amounts, data),
add a dedicated CMS block prepared for toursport.pl at the bottom.
The CMS block included, among other things:
a brief “what’s next” guide (email, fulfillment time, contact),
a section with help links (returns, complaints, terms and conditions),
a banner encouraging further purchases (e.g., accessories/add-ons),
a sales message aligned with the brand.
Result
The customer immediately sees not only the order number, but also complete information and instructions.
The store team can edit the content without developer involvement — simply by replacing the CMS block.
The solution is lightweight and secure: it does not interfere with the order process, only with the success page view.