Adding to cart does not work when add to cart popup is disabled in VM.
Hello, this issue is being resolved on VM4.0.10+ and a quick fix is to modify:
replace the function below in this file as printed here (it comments the setVar sections):
\components\com_virtuemart\router.php
- Code: Select all
public function parse(&$segments) {
require_once(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_virtuemart'.DIRECTORY_SEPARATOR.'router.php');
$ret = virtuemartParseRoute($segments);
$segments = array();
$ret['option'] = 'com_virtuemart';
$app = JFactory::getApplication();
/*stan - parisng URLs breaks POST data
foreach ($ret as $key=>$val) {
$app->input->set($key, $val);
if (class_exists('JRequest')) {
JRequest::setVar($key, $val);
}
if (class_exists('vRequest')) {
vRequest::setVar($key, $val);
}
}
*/
return $ret;
}
Tested on j4.
Best Regards, Stan