Problem/Motivation

As a customer, it's a bit time consuming to have to select each variation via either radio buttons or a select list to see what's in stock. I'm looking for a way to display per variation stock availability on the product page as it loads without having to render an add to cart form per variation.

Proposed resolution

Is it be possible to add CSS classes based on wether the variations is in stock or out of stock?

I'm open to discussing sponsoring the development of something like this.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kristofferrom created an issue. See original summary.

kristofferrom’s picture

Title: Style » Style options for in or out of stock products

introfini made their first commit to this issue’s fork.

introfini’s picture

Please review the following reference: #3464147: Add out-of-stock text message to select options in Add to Cart Form. While it may not be an exact match for your needs, it should effectively accomplish the task.