Guest Posted July 19, 2005 Share Posted July 19, 2005 Please change line 146 in admin/products/index.php from $record["productCode"] = $db->mySQLSafe(strtoupper(substr($_POST['name'],0,3)).$randChars.$_POST['cat_id']); to $record["productCode"] = $db->mySQLSafe(str_replace(" ", "", strtoupper(substr($_POST['name'],0,3)).$randChars.$_POST['cat_id'])); This is so that spaces can not be stored in the product code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.