Admin UI: Scaffolding of Variants
Discussed in https://github.com/unchainedshop/unchained/discussions/622
Originally posted by nonfungibletunji January 6, 2025 Are product variants auto generated based on on product variant options?
@Mikearaya
We need some changes here:
- Only show exhaustive combinations, for ex. size:small&color:red. Don't show size:small&color:null cases (the first 5 in the screenshot below should be removed)
- Show a "wizard" button next to the dropdown. If clicked it should scaffold a new simple product out of the current configurable product and directly assign it to that vector combination. We need to specify what scaffolding exactly means during the process.
Idea to scaffold from my perspective:
- simple product but unpublished
- has the same "texts" and media as the Configurable Product
- has a new generated title: "title vector1_value vectorN_value", for example_:
"Cool T-Shirt" -> scaffolding on Size Medium & Color Red -> New title for scaffolded product: "Cool T-Shirt Medium Red"
- has a new generated slug based on that title: "cool-t-shirt-medium-red"
The scaffolding can be done purely by using GraphQL mutations, there is no need for Engine extensions.
2. Show a "wizard" button next to the dropdown. If clicked it should scaffold a new simple product out of the current configurable product and directly assign it to that vector combination. We need to specify what scaffolding exactly means during the process.
what should be the title of the simple product, maybe derived from the configurable product title and vectors? for example if the configurable product title is "t-shirt" and vectors small + red then the simple product title scaffold be small-red t-shirt?
additionally do you think this is engine feature? i think it is more of a admin-ui feature
@pozylon
implemented in admin ui