Order Complete Screen

When a customer completes an order the screen they see is this:

Order

Congratulations! Your order has been successfully placed. Order details

I would prefer the order complete screen to show their order details or at the very least show their order number. Can someone share how to achieve this? Thanks!

This page is required to track sales by various trackers (like google analytics). If you do not use it, there is an ability to create redirect to the order details page with few lines of code.

1 Like

Can html be added to the language variable maybe to say “click here” to view your orders ?

you can add a link in your language varialbe text_order_placed_successfully
Congratulations! Your order has been successfully placed. To see all your orders and details <a href="myorders.html">click here</a>
but then i cant get rid of “Order details” url

Thank you for the suggestions! By default there are two links on the order complete page to the order details - one text and one button. But I’d really like for either an order number to populate on the page or for it to land on the order details page.

I thought it might be possible to add the order number code to the language variable text but I haven’t been able to find the code that calls it.

@ecomlabs can you share the redirect code and where it would be placed?

/app/functions/fn.cart.php

replace

$redirect_url = 'checkout.' . ($_error ? 'checkout' : 'complete?order_id=' . $order_id);

with

if ($_error) {
    $redirect_url = 'checkout.checkout';
} else {
    $redirect_url = 'orders.details?order_id=' . $order_id);
}

or use the order_placement_routines below to do it

(!) Not tested