Magento 2 Restrict SKU Characters
-
06-01-2021 - |
سؤال
I am using Magento 2.2.2.
I want to restrict the number of SKU characters to be entered in the Admin Product Detail Page. How to achieve this.
المحلول
Try to update you eav_attribute table
UPDATE eav_attribute SET frontend_class = "validate-length maximum-length-11" where attribute_code = 'sku'
لا تنتمي إلى magento.stackexchange