Multisafe Pay support on VM1 and OPC1
Posted: Fri Jan 10, 2014 4:55 pm
Hello friends, if you'd like to support latest browsers with your VM1 and multisafe pay plugin, we recommend to locate this code within this file:
\administrator\components\com_virtuemart\classes\payment\ps_multisafepay.php
and update it to:
This will fix ther redirect issue on firefox and some other browsers.
Feature update - to support anonymous users you may want to update the sql within the file:
from:
to
Best Regards,
Stan
\administrator\components\com_virtuemart\classes\payment\ps_multisafepay.php
- Code: Select all
header('Location: ' . $url);
and update it to:
- Code: Select all
$app = JFactory::getApplication();
$app->redirect($url);
This will fix ther redirect issue on firefox and some other browsers.
Feature update - to support anonymous users you may want to update the sql within the file:
from:
- Code: Select all
$qt = "SELECT * FROM #__{vm}_user_info LEFT JOIN #__{vm}_country ON country=country_3_code WHERE user_id='".$auth["user_id"]."' AND address_type='BT'"
to
- Code: Select all
$qt = "SELECT * FROM #__{vm}_user_info LEFT JOIN #__{vm}_country ON country=country_3_code WHERE user_info_id='".$db->getEscaped($d["user_info_id"])."' AND address_type='BT' limit 0,1";
Best Regards,
Stan