Self Hosted Order Confirmation Page

The ESW cartridge supports self-hosted order confirmation, allowing retailers to choose where shoppers are redirected after a successful ESW checkout.

The ESW cartridge supports self-hosted order confirmation, allowing retailers to choose where shoppers are redirected after a successful ESW checkout.

In Salesforce Commerce Cloud (SFCC), retailers can configure either a custom path on their storefront or an external URL as the order confirmation page.


Feature Configuration

Follow the steps below to enable and configure the self-hosted order confirmation page.

  1. Go to Merchant Tools → Site Preferences → Custom Preferences
  2. Select the ESW Checkout Configuration preference group
  3. Locate the custom preference ESW Enable Order Confirmation Success Page
  4. Set the value to:
    • Yes — to enable the feature
    • No — to disable the feature
  5. Set ESW Order Confirmation Success URL to one of the following:

URL Configuration Options

A. Controller or Route Path

Examples:

  • EShopWorld-OrderConfirm
  • checkout/confirmation

B. Absolute URL

Example:

  • https://orderconfirmurl.com

C. Empty Value (Default Behaviour)

If left empty, the ESW cartridge automatically generates the confirmation URL based on the storefront type:

SFRA
https://storefronturl.com/EShopWorld-OrderConfirm?orderId={orderID}
SiteGenesis (SG)
https://storefronturl.com/EShopWorldSG-OrderConfirm?orderId={orderID}
PWA
https://storefronturl.com/checkout/confirmation/{orderID}

Note:
Ensure the PWA storefront URL is configured in:
Merchant Tools → Site Preferences → Custom Site Preference Groups → ESW PWA Integration Configuration

Headless
https://storefronturl.com/checkout/confirmation/{orderID}

Note:
Ensure the headless storefront URL is configured in:
Merchant Tools → Site Preferences → Custom Site Preference Groups → ESW Headless Integration Configuration


Important Behaviour

The query string below is automatically appended to the configured URL:

?orderId={orderID}

You do not need to include this manually in the configuration.


Testing

Follow these steps to validate the configuration:

  1. Enable the feature in Business Manager: a. Go to Merchant Tools → Site Preferences → Custom Preferences b. Open the ESW Checkout Configuration preference group c. Find Enable Order Confirmation Success Page d. Set it to Yes
  1. Open the storefront and select one of the ESW-supported countries
  2. Add any product to the basket
  3. Proceed to the ESW checkout
  4. Enter a delivery address and continue to payment
  5. Enter payment details and click Pay
  6. You will be redirected to the self-hosted order confirmation page

Self-Hosted Order Confirmation Page – Guest Shopper

After a successful ESW checkout, guest shoppers are redirected to the configured confirmation page displaying:

  • Order confirmation message
  • Order number and order date
  • Shipping and billing addresses
  • Shipping method and cost
  • Payment summary
  • Item details and totals
  • Continue Shopping option

Self-Hosted Order Confirmation Page – Registered Shopper

For registered shoppers, the confirmation page includes the same order details as guest checkout, with additional account-related context such as:

  • Registered email address
  • Account-linked order information
  • Persistent order history access

Order confirmation page

Self Hosted Order Confirmation Page for guest shopper

Order confirmation page

Self Hosted Order Confirmation Page for registered shopped