Skip to content
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

Product Collection: Out-of-Stock Products Still Visible Despite 'Hide Out of Stock Items' Setting #47536

Closed
imanish003 opened this issue May 16, 2024 · 0 comments · Fixed by #47537
Assignees
Labels
block: product collection Issues related to the Product Collection block focus: FSE Issues related to Full Site Editing team: Kirigami & Origami type: bug The issue is a confirmed bug.

Comments

@imanish003
Copy link
Contributor

Steps to reproduce the issue

Prerequisite

  1. Make sure that following checkbox isn't ticked in WooCommerce settings
    image

  2. Ensure the presence of some out-of-stock products. If possible, rename an out-of-stock product to "1st product" to show it as 1st product in grid.

Steps:

  1. Insert a Product Collection block into the Product Catalog template & save the template.

    • Verify that "Sync with current query" toggle is ON in inspector control for Product Collection block.
    • Verify that out-of-stock products are visible in Product Collection block
  2. Check the checkbox & save the settings (Make sure it isn't checked when Product Collection block was inserted in 1st step):
    image

  3. Refresh the Product Catalog template in the Editor.

    • Observe that the "1st product" remains visible, contrary to expectations, since the "Hide out of stock items from the catalog" option was activated.

Expected output:
When "Sync with current query" toggle is ON, Product Collection block should follow the "Out of stock visibility" setting in Editor. Means, If it's set to "Hide out of stock items from the catalog" then out-of-stock products shouldn't be visible in Product Catalog template.

Note: This issue is on the Editor side only. It's working as expected on Frontend.

@imanish003 imanish003 self-assigned this May 16, 2024
@imanish003 imanish003 added type: bug The issue is a confirmed bug. team: Kirigami & Origami focus: FSE Issues related to Full Site Editing block: product collection Issues related to the Product Collection block labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block: product collection Issues related to the Product Collection block focus: FSE Issues related to Full Site Editing team: Kirigami & Origami type: bug The issue is a confirmed bug.
Projects
None yet
1 participant