VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: john2012 on May 30, 2013, 18:23:36 PM

Title: Payzen Payment Plugin edit message order confirmation
Post by: john2012 on May 30, 2013, 18:23:36 PM
hello,

where can I edit the message?
that appears after the customer's payment.
(I want to remove the amount of the order)

Thank you in advance for your help
joomla 2.5.7
virtuemart  Version 2.0.18a

*************************************
THANK YOU FOR YOUR ORDER.

The payment is successful, your order has been registered.
Order No.: 3e12032
Amount ...
*************************************

Title: Re: Payzen payment - edit message order confirmation
Post by: AH on May 30, 2013, 19:41:54 PM
In looks to be in

payzen.php

You could try this:-

Existing:-
function _getHtmlPaymentResponse ($msg, $is_success = TRUE, $order_id = NULL, $amount = NULL) {
if (!$is_success) {
return '<p style="text-align: center;">' . JText::_ ($msg) . '</p>';
}
else {
$html = '<table>' . "\n";
$html .= '<thead><tr><td colspan="2" style="text-align: center;">' . JText::_ ($msg) . '</td></tr></thead>';
$html .= $this->getHtmlRow ($this->_name . '_ORDER_NUMBER', $order_id, 'style="width: 90px;" class="key"');
$html .= $this->getHtmlRow ($this->_name . '_AMOUNT', $amount, 'style="width: 90px;" class="key"');
$html .= '</table>' . "\n";

return $html;
}
}


Changed:-

function _getHtmlPaymentResponse ($msg, $is_success = TRUE, $order_id = NULL, $amount = NULL) {
if (!$is_success) {
return '<p style="text-align: center;">' . JText::_ ($msg) . '</p>';
}
else {
$html = '<table>' . "\n";
$html .= '<thead><tr><td colspan="2" style="text-align: center;">' . JText::_ ($msg) . '</td></tr></thead>';
$html .= $this->getHtmlRow ($this->_name . '_ORDER_NUMBER', $order_id, 'style="width: 90px;" class="key"');
//$html .= $this->getHtmlRow ($this->_name . '_AMOUNT', $amount, 'style="width: 90px;" class="key"');
$html .= '</table>' . "\n";

return $html;
}
}


Note that every update will probably put this back

You could also consider using some CSS to set display to none for that particular row but the output is in a table and I cannot test for you.  Again make sure you put it in a place it will not get overwritten by an update to VM



Title: Re: Payzen payment - edit message order confirmation
Post by: john2012 on May 30, 2013, 21:20:20 PM
Quote from: Hutson on May 30, 2013, 19:41:54 PM
In looks to be in
payzen.php

thank you for your response

I made the change but no change
Still the amount is displayed
(I cleared the browser cache and joomla)

I have a flexible template for virtuemart "puremart"
but the seller said that it all depends on virtuemart
I wanted to remove the amount of decimal places as I above
and there are not as in my currency.
139 xpf appears 1.39 xpf

But everything is good bank level
the site also invoice price ok
I just this display.........
thank s for help
Title: Re: Payzen Payment Plugin edit message order confirmation
Post by: AH on May 30, 2013, 23:19:36 PM
So did the fix suggestion work??
Title: Re: Payzen Payment Plugin edit message order confirmation
Post by: john2012 on May 31, 2013, 06:40:39 AM
Quote from: Hutson on May 30, 2013, 23:19:36 PM
So did the fix suggestion work??

yes work

thank s
Title: Re: Payzen Payment Plugin edit message order confirmation
Post by: AH on May 31, 2013, 11:04:38 AM
Good news