magento2
magento2 copied to clipboard
Admin not able to create a product without giving name.
Preconditions and environment
- Install fresh Magento 2.4-develop.
Steps to reproduce
- Login as admin.
- Go to Store->attributes->product search code "name" and set Values Required to "NO".
- Clear cacge
- Go to catalog >> products >>Add Product.
- Fill all mandatory details. Do not provide name.
- Save the product. - Issue. User is not able to save the product without product name
- Create the product with Product name and save - Edit product - Remove product name and save - User is able to save the product without name
Expected result
Product should be saved successfully and should be displayed in the product grid.
Actual result
Inconsistent behavior observed when creating the product and editing the product. Product is not getting created, getting error in frontend. The product that was requested doesn't exist. Verify the product and try again.
Screenshot:
Additional information
User is able to save the product without price value (If made not required in attribute configuration) even though it is mandated with * in admin product creation page
Release note
No response
Triage and priority
- [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Hi @engcom-Lima. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
- Summary of the issue
- Information on your environment
- Steps to reproduce
- Expected and actual results
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
- Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
-
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is valid
appears. -
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Description
label to the issue by yourself. -
[ ] 3. Add
Component: XXXXX
label(s) to the ticket, indicating the components it may be related to. -
[ ] 4. Verify that the issue is reproducible on
2.4-develop
branchDetails
- Add the comment@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-develop
branch, please, add the labelReproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here! -
[ ] 5. Add label
Issue: Confirmed
once verification is complete. -
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
@magento give me 2.4-develop instance
Hi @engcom-Lima ,
Verified the issue on Magento 2.4-develop branch but however this behavior is due to default Attribute set configuration.
Default attribute set that is used as a template when creating a product includes a set of commonly-used attributes. System attributes are marked with a dot and cannot be removed from the Groups list. They can, however, be dragged to another Group in the attribute set.
Please check the ref guide and provide supporting documents/proofs to consider this as a valid issue.
Thank you.
Hi @engcom-November
I have tested this functionality earlier in 2.4.1 and I was able to create a product without giving name.
The screenshot which you have shared is of product attribute set. Attribute set is the template for product creation. Attribute set is not for making any field mandatory or it will not decide functionality or behaviour. It is Product attributes, which will decide behaviour of the particular attributes.
For your reference you can see devdocs : product attributes
Here you refer this reply from Magento for a customer query
Thanks
@magento give me 2.4-develop instance
Hi @engcom-November. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-November, here is your Magento Instance: https://4d1af1cd32d9a47c009624919acb1830.instances.magento-community.engineering Admin access: https://4d1af1cd32d9a47c009624919acb1830.instances.magento-community.engineering/admin_40d7 Login: 9ac86830 Password: 0bb6f0a93946
Verified the issue again on Magento 2.4-develop branch and the issue is reproducible.
Unable to create Product without Product Name.
But if a product is created with name and saved and edited the product without name and saved - User is able to save the product without product name.
Hence confirming this issue for inconsistent behavior and updating description
Similar issue but different error: https://github.com/magento/magento2/issues/35810
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-6015 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-6015
@magento I am working on this
@magento I am working on this
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-6015
@engcom-Lima This is not a bug, it cannot generate the url key because it is generated from the product name. Therefore, if you want a product without a name, then enter the key url. I had already created a PR in which I corrected it, but I deleted it, because I think creating a product without a name is stupid)