hello, please let me know at email what is the exact URL of the VM core checkout page when you cancel the payment. it is possible that the plugin does not use VM's official way on doing this and thus OPC cannot recognize that it has to load OPC checkout on that particular URL.
OPC checkout is loaded by including:
- Code: Select all
if (!class_exists('vmPlugin')) {
if (file_exists(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_onepage'.DIRECTORY_SEPARATOR.'overrides'.DIRECTORY_SEPARATOR.'vmplugin.php'))
{
require(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_onepage'.DIRECTORY_SEPARATOR.'overrides'.DIRECTORY_SEPARATOR.'vmplugin.php');
}
}
if (!class_exists('VirtueMartViewCart')) {
require_once(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_onepage'.DIRECTORY_SEPARATOR.'overrides'.DIRECTORY_SEPARATOR.'virtuemart.cart.view.html.php');
}
it is NOT triggered when a plugins renders it's own checkout :
- Code: Select all
if (stripos($cart->layoutPath, DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR)!==false)
(i.e. OPC gets disabled for checkout with amazon and other payment methods which are checkout themselves)
i'll probably will need to check your site to see if it's possible to load OPC realiably if the payment method renders it's own layout.
best regards, stan