Handle no variation product gracefully

Created on 25 May 2024, 7 months ago

Describe your bug or feature request.

Short:
If a product type has no variations, there is only one place in ProductVariationContext that coughs.
Upcoming patch prevents this.

Long:
I know that a product type without variation bundles is bending the commerce data model.
Yet i have a use case (kind of multi product) where this is a perfect fit.
I audited commerce code how that will do, and found (apart from the form, which is easy to alter) only one minor place that cought: ProductVariationContext. And that can be silenced easily. MR will follow.

It allows people like us (yes i know, i'm on my own) an edge case without affecting anything else.

📌 Task
Status

Active

Version

2.0

Component

Product

Created by

🇩🇪Germany geek-merlin Freiburg, Germany

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