Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

"[Product name] is out of stock and cannot be purchased" notice should not be dismissible #8965

Closed
Tracked by #8556 ...
Aljullu opened this issue Apr 5, 2023 · 0 comments · Fixed by #9578
Closed
Tracked by #8556 ...
Labels
block: cart Issues related to the cart block. block: mini-cart Issues related to the Mini-Cart block. type: bug The issue/PR concerns a confirmed bug.

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Apr 5, 2023

To reproduce

  1. In the frontend, add a product to your cart.
  2. In wp-admin, edit that product and set it out of stock.
  3. Open a page with the Cart block or the Mini Cart drawer.
  4. Notice a dismissible notice appears: "[Product name] is out of stock and cannot be purchased. Please remove it from your cart."

Expected behavior

The notice should not be dismissible, as the error persists until the product is removed from the cart. For reference, in the Cart shortcode the notice wasn't dismissible.

Screenshots

Cart block Cart shortcode
imatge imatge
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: cart Issues related to the cart block. block: mini-cart Issues related to the Mini-Cart block. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant