News:

Support the VirtueMart project and become a member

Main Menu

Order done page - customizing hardly possible [solved]

Started by lanthan, November 09, 2012, 22:08:39 PM

Previous topic - Next topic

lanthan

Hi,
I wanted to customize the output of the order_done.php but had to face that the output html is generated "probably" in the view.html. In the order_done.php you "only" find echo $this->html; I can not use the current output with my design. By the way there are several generated html codes in virtuemart and it costs me a lot of time to customize.

Where is the html generated? I really coudn´t finde the place where the table is generated. Or any other Ideas to customize for e.g. deleting echo $this->html; and getting all necessary infos from the database on my own?

I don´t want to discuss if it is useful to complicate to design the output pages by generating html code outside the current .php. In my point of view it is nonsense generating html code outside the current .php and I wish this will be changed soon again as many people will have problems to design the output.

I´m glad for any help. Thanks in advance.

VM 2.0.12f Joomla 2.5.8

lanthan

Ok, I finally found the file. Output will be generated in the VMPayment Plugin. For e.g., if your customer choosed a standard payment method, the output will be generated in

../plugins/vmpayment/standard/standard.php     between line 79 - 146

I hope this helps some guys to redesign the order_done page, too.

frytako

That was really helpful, I couldn't find it!
Thank you lanthan!!

ovcharoff

Thank you ! I don't like the way it's done.
I Just replaced in the order_done.php the info abou the order with some custom text saying all the data is in the email that was sent.

corona

Other way to alter the code with the Option to Display the items as is:

<?php
defined
('_JEXEC') or die('');

/**
*
* Template for the shopping cart
*
* @package VirtueMart
* @subpackage Cart
* @author Max Milbers
*
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
?>

<div class="item-page">
<?php
echo "<h3>".JText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU')."</h3>";
echo 
$this->html;
?>

</div>