News:

Support the VirtueMart project and become a member

Main Menu

Order done page customization

Started by EvanGR, November 24, 2021, 12:40:35 PM

Previous topic - Next topic

EvanGR

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

GJC Web Design

$this->html is supplied by what ever payment plugin sent u there

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

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)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products