VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: groentjie on April 13, 2012, 11:10:50 AM

Title: Payment done layout
Post by: groentjie on April 13, 2012, 11:10:50 AM
The layout of the page when you will see the Thank You is coming from
order.done.php in cart views
<?php


echo "<h3>".JText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU')."</h3>";

echo 
$this->html;
?>


Where do I edit the HTML?
I want to valign the payment method.
(http://www.plafonddirect.nl/Untitled.png)
Title: Re: Payment done layout
Post by: fexnok on June 20, 2012, 23:05:11 PM
Hi,

I had the same problem and spent a lot of time trying to figure out where was actually generated. Finally 've found it. It's under

\plugins\vmpayment\standard\standard.php

Find the lines 120, 133 and 134. The function getHtmlRow receives three parameters: $key, $value, $class = ''. You can actually check it on

\administrator\components\com_virtuemart\plugins\vmpsplugin.php line 762

So if you want to format the output, you can do something like this

$html .= $this->getHtmlRow('STANDARD_PAYMENT_INFO', $dbValues['payment_name'], 'width="20%"');

Feel free to play with it

Cheers