I want to customize the Order done / Thank you page.
Example scenario: I want to add a happy "thank you" image to make more impactfult.
I found the orderdone.php file, to override, but...
1) Is this guaranteed to be called only after a successful order/payment? I don't want to show a success image while the order has failed for some reason.
2) How do I access the order details? All I see in the template is "echo $this->html;"
Thanks
$this->html is supplied by what ever payment plugin sent u there
Quote1) Is this guaranteed to be called only after a successful order/payment?
No, if I go back from payment gate, then after pay by card, order inside VM is created, but don't should be successful - sometimes payment gate need 0-15 minutes for confirm order from card association or if you use online bank transfer, then more.
And sometimes I can close payment gate before go back to shop == I don't see order_done.php
Quote2) How do I access the order details?
$this->html (from payment plugin == y have to setup inside payment plugin)