Issue-39329-Invalid SKU Handling for Linked Products in Magento #39333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description (*)
Invalid SKU Handling for Linked Products in Magento.
In Magento, it’s possible to save a product SKU as "0." However, an issue occurs when this product is added as a linked product (such as Related Products, Up-Sells, or Cross-Sells) to another product. When attempting to make changes to the main product, it triggers an error: "The linked product SKU is invalid. Verify the data and try again."
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Scenario : Save a Product with a Related Product Having SKU '0'
Set up Related Product with SKU '0':
'0'
.'0'
is valid for related products).Navigate to the Product to be Edited:
Add Related Product:
'0'
as a related product.Make an Edit to the Main Product:
Save the Product:
Expected Result:
'0'
should not prevent saving.'0'
remains correctly linked to the main product.Questions or comments
If a product with SKU 0 already exists, we should be able to add this product as a related product to other products.