-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue : Trim whitespace on SKU when saving product #16572 #16592
Fixed issue : Trim whitespace on SKU when saving product #16572 #16592
Conversation
Hi @AnshuMishra17. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @AnshuMishra17, thank you for collaboration. Problem: SKU isn't trimmed for configurable product options.
Expected result: Configurable product SKU is trimmed. |
Hi @AnshuMishra17. Thanks for fixes |
Hi @AnshuMishra17. Problems: SKU of configurable product isn't trimmed before Configurations are generated. It caused whitespaces in SKU of generated simple products. Manual testing scenario: |
@VladimirZaets I have added the the code to trim while simple products are generated. Where exactly these should be trimmed, means at which step child product SKU needs t o be trimmed? |
Hi @AnshuMishra17, with the child products all are ok, but the SKU of the configurable product itself isn't trimmed. |
@VladimirZaets I have fixed the above mentioned issue. |
@AnshuMishra17 thanks |
Hi @AnshuMishra17. I am closing this PR because the PR #18019 provided a more complex solution for this issue, namely:
Thank you for collaboration. |
Description
Strip whitespace from the beginning and end of SKU while saving product in admin.
Fixed Issues
Manual testing scenarios