2 votes
Accepted

Magento 2 Restrict SKU Characters

Try to update you eav_attribute table UPDATE eav_attribute SET frontend_class = "validate-length maximum-length-11" where attribute_code = 'sku'
mohan's user avatar
  • 342
1 vote

Undefined variable: /vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php while save configurable product in magento2

I Fixed in my website! Please check below process set "const SKU_MAX_LENGTH = 255;" in the file module-catalog/Model/Product/Attribute/Backend/Sku.php You need to change the into database as well. ...
Jugal Kishor's user avatar
  • 1,225

Only top scored, non community-wiki answers of a minimum length are eligible