After the order is confirmed, VirtueMart will follow two different routes depending on the payment method selected. If the payment method uses a payment processor (that is, payment will be done through a payment gateway directly through VirtueMart), it will post the order to the payment gateway until payment is confirmed or the shopper cancels the order. With payment confirmed, VirtueMart will create the order, store it in the database, send out the order e-mail, and redirect the shopper to the checkout.thankyou
page.
If the payment method is not of payment processor type, VirtueMart will create the order, store it in the database, and send out the order e-mail without payment confirmation. The order_status
will be set to pending though. After the order e-mail is sent, the shopper will also be redirected to the checkout.thankyou
page.
The checkout.thankyou.php
page actually does nothing other than getting data from the database and passing the data to the template. Some of...