Hi all,
How would I add a simple “Thank you for your order! Below are your order details…” message, on the dispatch=orders.details page.
The problem is that page also shows orders when a customer logs in later to check the status, so I just want the confirmation message to show up immediately after placing the order.
Thanks!
Any ideas?
Add a “post” controller for the ‘checkout’ controller for the ‘summary’ mode.
Add a php file of addons/my_changes/controllers/customer/checkout.post.php
Have content of:
if( !defined('AREA') ) die('No Access');
if( $mode == 'summary' && $_SERVER['REQUEST_METHOD'] == 'POST' )
fn_set_notification('C', 'Notice', "Thank you for your order! Below are your order details..", TRUE);
}
return array(CONTROLLER_STATUS_OK);
I followed your suggestion but I can’t get it to work. I have the my changes addon installed and active, tried your code bare, then with php tags and brackets, to no avail.
Is there something I’m missing?
Thanks!
Append the actual file you created and/or include it in code tags here.
The code was intended to be an example, not an actual implementation.
Also please identify the full path name in your store where the file was installed.
Is it possible to show email on the order confirmation page? For example, after successful order to show message:
Your order was placed.
We’ll send a confirmation email to customer@email.com.
This would help customers to see if they did a mistake on email when placed order.
You can use the checkout:order_confirmation hook in the following file to do it
design/themes/responsive/templates/views/checkout/complete.tpl
Use the {$order_info.email} variable to show e-mail