If the variation is off, nothing is displayed. On the screenshot the product right to an enabled variation, the product left to a variation disabled.
I think that when the variation is disabled the product information should remain displayed (price, reference, ...).
Ideally, the "Add to Cart" button should be replaced with a "Unavailable" button that can not be clicked.

CommentFileSizeAuthor
Capture du 2017-07-26 17-21-54.png117.32 KBzenimagine

Comments

zenimagine created an issue. See original summary.

rszrama’s picture

I can confirm this is how 1.x worked; there we use a disabled button labeled "Product not available" (and a related submit handler in case the form is submitted some other way).

zenimagine’s picture

@rszrama Thanks, so how will "Commerce 2" work?
Can you tell me that currently disabled variations are hidden?

bojanz’s picture

You're seeing the correct behavior. You have no enabled variations, so there's no price to show.

We have two different needs here:
1) Hide the variation as if it didn't exist (cause it hasn't been launched yet, or it has been retired)
2) Mark the variation as non-purchasable (show it to the customer but don't allow its purchase)

We use the variation status for #1, same way that the product status works. When the status is FALSE, the entity effectively doesn't exist.
For #2 we use the availability API, though as of RC1 it still isn't complete, I don't think it disables the add to cart button yet.

zenimagine’s picture

Thank you so I will wait for the next version

bojanz’s picture

Category: Feature request » Support request
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.