// Reindex cart products to ensure sequential keys starting from 0 by Kuubs
if (isset($cart->products) && is_array($cart->products)) {
$cart->products = array_values($cart->products);
}
vDispatcher::trigger('plgVmOnUpdateCart',array(&$cart, &$force, &$html));
Quote from: drejk on December 09, 2021, 11:03:29 AMSolution is to slightly modify a line in administrator/components/com_virtuemart/helpers/vmtable.php:
a) comment out line aroud line 1570 (add // in front) - this fixes links (this line shouldn't be there anyways. Btw. "$unicodeslugs" is practically the opposite of what it is called - it should be called "$transliterate" )
//if($unicodeslugs)$this->{$slugName} = rawurlencode($this->{$slugName});
b) optional - if you want only alphanumeric characters, dashes and underscores add at next line
$this->{$slugName} = preg_replace('~[^-a-z0-9_]+~', '', $this->{$slugName});
if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php');
VmConfig::$execTrigger = true;
VmConfig::loadConfig(false, false, true, true);
vRequest::setRouterVars();
$lang = vRequest::getCmd('lang','');
if(!empty($lang)){
vmLanguage::setLanguageByTag($lang);
}
Page created in 0.075 seconds with 13 queries.