diff --git a/packages/Webkul/Admin/src/Resources/views/catalog/products/field-types/text.blade.php b/packages/Webkul/Admin/src/Resources/views/catalog/products/field-types/text.blade.php index 5b9b01c70..a766ecd37 100755 --- a/packages/Webkul/Admin/src/Resources/views/catalog/products/field-types/text.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/catalog/products/field-types/text.blade.php @@ -5,13 +5,14 @@ class="control" id="{{ $attribute->code }}" - {{-- To Do (@devansh-webkul): Need to handle from the backend. --}} @if ($attribute->code === 'sku') v-validate="{ required: true, regex: /^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/ }" @else v-validate="'{{ $validations }}'" @endif - + data-vv-as=""{{ $attribute->admin_name }}"" + {{ in_array($attribute->code, ['url_key']) ? 'v-slugify' : '' }} - {{ $attribute->code == 'name' && ! $product[$attribute->code] ? 'v-slugify-target=\'url_key\'' : '' }}> \ No newline at end of file + {{ $attribute->code == 'name' && ! $product->url_key ? 'v-slugify-target=\'url_key\'' : '' }} +>