News:

Support the VirtueMart project and become a member

Main Menu

Payzen Payment Plugin edit message order confirmation

Started by john2012, May 30, 2013, 18:23:36 PM

Previous topic - Next topic

john2012

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 ...
*************************************


AH

#1
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



Regards
A

Joomla 4.4.5
php 8.1

john2012

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

AH

Regards
A

Joomla 4.4.5
php 8.1


AH

Regards
A

Joomla 4.4.5
php 8.1