News:

Looking for documentation? Take a look on our wiki

Main Menu

Return to alternative checkout page on canceled payment

Started by jsleumer, April 08, 2013, 10:13:44 AM

Previous topic - Next topic

jsleumer

I bought the One step checkout plugin from Netbase and something odd is happening.
When a shopper cancels a payment they return to the original VM checkout page.

Is there a way to redirect to the One step checkout page instead of the default VM checkout?
Of course I asked this to Netbase, but they say the plugin was built with the standard VM function..... whatever that means.

Please people, help me! Now it really looks unprofessional when someone cancels the payment to choose another payment type.

Joomla 2.5.8
VM 2.0.16

Found the solution myself.
In components\com_virtuemart\controllers\pluginsresponse.php the function pluginUserPaymentCancel has to be changed.

The following lines are changed at line 137:

// return to cart view
$_viewPath = JPATH_ROOT.DS.'plugins/system/onestepcheckout/views/3cols/';
$view = $this->getView('cart', 'html');
$view->addTemplatePath($_viewPath);
$view->display();