Open imran9935 opened 2 days ago
Hi @imran9935. Thank you for your report. To speed up processing of this issue, 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@magento I am working on this
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.
Hi @engcom-Dash. 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:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
Preconditions (*)
Tested in this versions:
Description (*)
When creating configurable product with the multiple options ex -(color, size), and disabled one configurable product option, then that disabled option is still visible on frontend with crossed out, check below screenshots.
Screenshot 1:![image](https://github.com/magento/magento2/assets/113010604/cc3b8be1-c756-44dc-ba67-54fbe1b12f8f)
Screenshot 2:![image](https://github.com/magento/magento2/assets/113010604/bb25e8c0-ad51-44bb-98f0-4d2fd5108a26)
Screenshot 3:![image](https://github.com/magento/magento2/assets/113010604/066d4308-9832-498c-90ad-f1693d3a1c4e)
Screenshot 4:![image](https://github.com/magento/magento2/assets/113010604/f536f9a4-012a-416a-9549-d41e4d742fd8)
Steps to reproduce (*)
Expected result (*)
Disabled configurable product swatch option should be not visible
Actual result (*)
Disabled configurable product swatch option is still visible on frontend with the crossed out
Additional information (*)
As I have checked in this file (magento/module-swatches/view/base/web/js/swatch-renderer.js), on line no 959 the disabled class is being added. As it only checks products option is available or not and after checking that condition it adds disabled class. as it should check whether the product option is enabled or out of stock and if product is not enable then that option should be not visible. check below screenshot-5
Screenshot 5:![image](https://github.com/magento/magento2/assets/113010604/08cc906f-ac86-4127-9fcb-91308d5ee659)