Why does it do this?
I don't want the -default- shopper group to be the default.
/**
*
* Get default shoppergroup for anonymous and non anonymous
* @param unknown_type $kind
*/
function getDefault($kind = 1, $onlyPublished = FALSE, $vendorId = 1){
$kind = $kind + 1;
$q = 'SELECT * FROM `#__virtuemart_shoppergroups` WHERE `default` = "'.$kind.'" AND (`virtuemart_vendor_id` = "'.$vendorId.'" OR `shared` = "1") ';
if($onlyPublished){
$q .= ' AND `published`="1" ';
}
$this->_db->setQuery($q);
if(!$res = $this->_db->loadObject()){
$app = JFactory::getApplication();
$app->enqueueMessage('Attention no standard shopper group set '.$this->_db->getErrorMsg());
} else {
//vmdebug('getDefault', $res);
return $res;
}
}
Column 'price_display' cannot be null SQL=INSERT INTO `jev8g_virtuemart_shoppergroups` (`virtuemart_shoppergroup_id`, `virtuemart_vendor_id`, `shopper_group_name`, `shopper_group_desc`, `custom_price_display`, `price_display`, `default`, `ordering`, `shared`, `published`, `created_on`, `created_by`, `modified_on`, `modified_by`, `locked_on`, `locked_by`) VALUES (2, 1, '-default-', 'This is the default shopper group.', 0, NULL, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0)
Fixed Virtuemart -default- shopper group which is required for proper Virtueamrt functionality. Please check the configuration of your shipping, payment, calculation plugins.