Skip to content

Wrong behavior for out-of-stock configurable products #37209

Open
@cptX

Description

@cptX

Preconditions and environment

  • Magento version 2.4.6

Steps to reproduce

Create a configurable product with some children.
Then set one child as out of stock.
In Magento 2.4.6 the out of stock item will have a diagonal line on the selector. In 2.4.5 there was a bug and no line was visible, but in 2.4.6 it's corrected.
The expected behavior should be to be able to select the striked-through selector, the image to change but to write Out Of Stock instead of In Stock. If this would be possible the customer also has the chance to request an email notification for the out of stock product. Now this is impossible, as he cannot select the out of stock product at all.

UPDATE: I discovered another wrong behavior which I mention here #37357 . I suggest the people who will try to solve these issues to study them together with the hope to solve them as a whole and not partially...

Expected result

The correct behavior should be:

  1. To be able to click on the striked-through selector.
  2. The striked-through selector after being selected should update the image of the product shown, giving the change to the customer to see how this option/selection looks like. Now is impossible the customer to view the out of stock product.
  3. The In Stock/Out of Stock label should be updated to "Out of stock" when an striked-through option/selection gets selected.
  4. The email notification should be available for the option/selection that is out of stock. Now it's not available at all.

Actual result

Now we have the following problems:

  1. It's impossible to click on a striked-through selector.
  2. The striked-through selector after being selected is not updating the image of the product shown, so the customer has no chance to see how this option/selection looks like.
  3. The In Stock/Out of Stock label is not updated to "Out of stock" when a striked-through option/selection gets selected.
  4. The email notification is not even available on a configurable product that is out of stock. So there is no chance for the customer to get notified when a out-of-stock configurable product gets back to stock.

Additional information

No response

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”.

Activity

m2-assistant

m2-assistant commented on Mar 14, 2023

@m2-assistant

Hi @cptX. 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:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 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.

m2-assistant

m2-assistant commented on Mar 15, 2023

@m2-assistant

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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced 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.
chernenm

chernenm commented on Mar 15, 2023

@chernenm

Hello @cptX,

Thank you for reporting this. This looks like a new feature request to me rather than an issue.

cptX

cptX commented on Mar 15, 2023

@cptX
Author

Hi @chernenm, I don't have the chance to know what was the previous behavior. My first version with Magento was 2.4.5 and there to my surprise strike-through was not even working.
To me is a bug as it doesn't allow you to get email notifications.
I really don't understand how other people are happy with the existing behavior... How can a customer see the out-of-stock item and be prepared to buy it when back in stock if 1. we don't show him the item and 2. he cannot get notified for it?

engcom-November

engcom-November commented on Mar 16, 2023

@engcom-November
Contributor

Hi @cptX ,
Verified the issue on both Magento 2.4-develop and 2.4.6 instances and the issue is reproducible.
image
Unable to select the crossed out swatch (Out of stock child product) Hence out of stock status is not displayed and image is not getting changed. Updating the description and confirming the issue.
Thank you.

github-jira-sync-bot

github-jira-sync-bot commented on Mar 16, 2023

@github-jira-sync-bot

✅ Jira issue https://jira.corp.adobe.com/browse/AC-8291 is successfully created for this GitHub issue.

m2-assistant

m2-assistant commented on Mar 16, 2023

@m2-assistant

✅ 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.

22 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @cptX@FadedOut@engcom-Hotel@engcom-November@github-jira-sync-bot

      Issue actions

        Wrong behavior for out-of-stock configurable products · Issue #37209 · magento/magento2