VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Roccofx1 on March 04, 2016, 21:34:08 PM

Title: VM3 - How to remove Order Number from thanks for your order message?
Post by: Roccofx1 on March 04, 2016, 21:34:08 PM
Hi, I have Joomla 3.4.8 and VM 3.0.12

After adding products to a cart, and click the buy button it sends people to the payment method wich might be paypal, but virtuemart even if payment isnt done, when redirect to site shows a message that says:

Thanks for your Order
Order number _______

How can i avoid Virtuemart from showing order number on this message?

Please help
Title: Re: VM3 - How to remove Order Number from thanks for your order message?
Post by: GJC Web Design on March 05, 2016, 11:38:58 AM
sent from the payment plugs as the $this->html isn't it?

components\com_virtuemart\views\cart\tmpl\order_done.php
echo $this->html;
Title: Re: VM3 - How to remove Order Number from thanks for your order message?
Post by: Roccofx1 on March 05, 2016, 22:38:06 PM
Not at all my problem,

What i mean, is i do want people to see a message: thanks for buy here, what i want is remove from that page the order number, so buyers dont see the order number in "thanks for buy" page

How can i do it?
Title: Re: VM3 - How to remove Order Number from thanks for your order message?
Post by: GJC Web Design on March 05, 2016, 22:56:18 PM
as I told you........! remove it from the sent $this->html
Title: Re: VM3 - How to remove Order Number from thanks for your order message?
Post by: Roccofx1 on March 06, 2016, 03:34:13 AM
Do you mean that i have to delete this hole line?

$this->html = vRequest::get('html', vmText::_('COM_VIRTUEMART_ORDER_PROCESSED') );
echo $this->html;
Title: Re: VM3 - How to remove Order Number from thanks for your order message?
Post by: GJC Web Design on March 06, 2016, 22:01:08 PM
Quotesent from the payment plugs

so there or a preg_replace or something at the template end

every payment plug is different.. look for the  function plgVmOnPaymentResponseReceived (&$html) {

function