News:

Support the VirtueMart project and become a member

Main Menu

Different thank you page for each payment method

Started by Zekule, February 23, 2012, 14:16:58 PM

Previous topic - Next topic

Zekule

Hello,

My final problem with virtuemart since there is no Paypal or Authorize.net in my country is the next issue:

I need to setup different thank you page on 2 payment methods.

On the creditcard method I need my modified thank you page with payment processor from my bank inserted into php code.

On the invoice payment method I need standard virtuemart thank you page...

I have tried 1000 ways but it turn with error. I also copy/pasted the standard plugin code into paypal plugin code cause I dont need paypal and I managed to have the same thank you page as standard in paypal payment method but cant redirect on the other order_done2.php that I created.

If I change the code in components/com_virtuemart/controllers/cart.php

$cart = VirtueMartCart::getCart();
   if ($cart) {
       $cart->confirmDone();
       $view = $this->getView('cart', 'html');
       $view->setLayout('order_done2');

and in components/com_virtuemart/views/view.html.php

$this->lSelectPayment();

         $pathway->addItem(JText::_('COM_VIRTUEMART_CART_OVERVIEW'), JRoute::_('index.php?option=com_virtuemart&view=cart'));
         $pathway->addItem(JText::_('COM_VIRTUEMART_CART_SELECTPAYMENT'));
         $document->setTitle(JText::_('COM_VIRTUEMART_CART_SELECTPAYMENT'));
      } else if ($layoutName == 'order_done2') {

it show order_done2.php at thank you page but on every payment method...

Can someone help how can I solve this issue?

Thanks in advance.

Zarko