Outsource how different availabilities are displayed, based on the combination of "orderable" and "availability_status"

Created on 14 April 2025, 11 days ago

Problem/Motivation

We should outsource how different availabilities are displayed, based on the combination of "orderable" and "availability_status". Currently, this is hard coded inside the "commerce_product_availability_form_commerce_order_item_add_to_cart_form_alter" "disable_and_alter_text" switch case.
Furthermore, the formatter currently only shows the Availability based on the "availability_status", ignoring "orderable" completely. Although this could be discussed, whether we want to change this.

📌 Task
Status

Active

Version

1.0

Component

Code (commerce_product_availability)

Created by

🇩🇪Germany Grevil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024