I took on the challenging task to make a UI to bulk create product variations, a big chunk of my time was spend evaluating other systems. I noticed they where really hard to use, they often relied on creating either just one/two attributes on which you make variations through difficult set configurations (Magento, Amazon) or even asked people to build out a full excel sheet.
I designed something that hopefully captures all that is needed, the prototype can be found :
Prototype
The flow I propose is:
- You click to add a bulk variations from the product creation screen.
- You fill in the SKU-pattern, this could be prefilled.
- You select which attribute you wish, this uses the Chosen interaction (term filtering on product listings) so you can select multiple (not represented in the prototype).
- You select Black, Yellow, and all the sizes. Then click "add".
- The options are added to the table, and you can finalize by clicking create variations.
The chosen interaction allows us to scale to an large amount of attribute options, and scales to at least 5/6 attributes with few UX problems. This doesn't have to be a model, instead we should probably place it inline.
I have marked this critical, because many participants mentioned this as a important missing piece.
Comment | File | Size | Author |
---|---|---|---|
#32 | 05. same image across all attributes.png | 31.53 KB | sharif.tanveer |
#32 | 04. different image with attributes.png | 32.09 KB | sharif.tanveer |
#32 | 03. Fill the general info.png | 65.58 KB | sharif.tanveer |
#32 | 02.Select Product type.png | 204.46 KB | sharif.tanveer |
#32 | 01.Add Product.png | 535.25 KB | sharif.tanveer |
Comments
Comment #1
Bojhan CreditAttribution: Bojhan commentedStarting point.
Comment #1.0
Bojhan CreditAttribution: Bojhan commentedUpdated issue summary.
Comment #2
bojanz CreditAttribution: bojanz commentedMoving this to the IEF issue queue, it's more logical there. We can open a Kickstart issue that points to it.
The mockup seems okay, keeping in mind the fact that we wont be using a modal (it will be an inline form just like the "add product" one).
Comment #3
jalves CreditAttribution: jalves commentedAny prevision when this will be released? I need this very much... :/
Comment #4
bojanz CreditAttribution: bojanz commentedIt's not on the todo list for the initial 2.0 release, so anything between weeks and months.
If you start coding it yourself, feel free to ping me on IRC with questions.
Comment #5
marktheshark CreditAttribution: marktheshark commentedIn the mean time, can this be emulated via the Bulk Product Creation module?
Also being able to reuse the same images per e.g. a color category would be most useful.
The same images may not make sense for all variations, but they might for all variations of the same color.
Workflow for this would be, e.g.:
Having written this, I guess BPC can do this if you do it once per color.
Comment #6
killua99 CreditAttribution: killua99 commentedOMG, this is sooo needed! You have some code that I can keep working and make the correct patch? I need this feature ASAP.
Comment #7
killua99 CreditAttribution: killua99 commentedNeed help! With some memory leak.
I'm trying to make the patch to handle the bulk implementation. But in the final step I'm getting a memory leak with the entity object. The result is ALL the variants get the same result.
Need some help with this.
Comment #8
bojanz CreditAttribution: bojanz commentedComment #9
killua99 CreditAttribution: killua99 commentedWas just adding this line
'entity' => clone $bulk_entity_form['#entity'],
And I'm avoided the object recursion.
To activate the bulk process you have to go to the field UI and edit the ief field and select this options i.e.
Then in the edition you will see the bulk button in the node creation / product creation.
Comment #10
killua99 CreditAttribution: killua99 commentedUpdating with the attribute hack, that alter the form.
The field has to be setup like normal attribute field (1 limit) the patch alter the form to make it unlimit select.
Comment #10.0
killua99 CreditAttribution: killua99 commentedUpdated issue summary.
Comment #11
sharif.tanveer CreditAttribution: sharif.tanveer commentedHey guys,
I'm a geneal user of Drupal & no idea about coding. But may be this is possible?
Workflow:
1>Select Color+Images
2>Select multiple Size (instead of 1 size, allow unlimited from field setting)
3> It will generate auto SKU for very size.
I think this make sense. In real store, they produce one color, take image of it, but various size. & most of the time(99%) size doesn't effect pricing.
** So, we need just one thing, is to make a way to select unlimited size (I found)+ 98)+ auto generation combining those color+size+image (someone need to do!)
Comment #12
discipolo CreditAttribution: discipolo commentedadding related issue
Comment #13
mdobossy CreditAttribution: mdobossy commentedI had been using the patch in #10 for a while, but it broke when I updated to IEF 1.5. With the significant change that took place in the IEF code, I found it easier to start from scratch.
Like the old patch, has a setting to enable bulk creation. However, unlike the old patch, this version adds a button with a bulk creation specific form (see screenshots). While some changes were made to the generic inline entity form code, the majority of the changes were specific to the commerce product inline form. It is properly generating bulk products for me, and hopefully will be a good start for anyone else needing this functionality.
Comment #14
mdobossy CreditAttribution: mdobossy commentedComment #15
discipolo CreditAttribution: discipolo commentedworks fine for me so far! thanks
Comment #16
petergus CreditAttribution: petergus commentedThis is a great feature, works great!
One possible bug or needed enhancement, SKU generation is not working. Is there a step I am missing to set this?
EDIT: Just read in the patch code this on the TODO list. maybe i can go with Auto SKU.
Comment #17
discipolo CreditAttribution: discipolo commentedAuto SKU works fine
Comment #18
mglamanSince it seems to be working, marking RTBC.
Comment #19
discipolo CreditAttribution: discipolo commentedfor some reason bulk generation doesnt work for term references anymore. its telling me the attribute field can only hold one value.
am still investigating this.
Comment #20
sharif.tanveer CreditAttribution: sharif.tanveer commentedHi,
The Workflow Can be like this:
>>Prototype
The flow I propose is:
>>You click to add a bulk variations from the product creation screen.
>>You select which attribute you wish, this uses the Chosen interaction (term filtering on product listings) so you can select multiple (not represented in the prototype).
>>You select Black, Yellow, and all the sizes. Then click "add".
>>The options are added to the table, and you can finalize by clicking create variations.
>>Before you finally, Save the Product, you have option to add image to each variation .
This way, we can have different images for different variations.
Just trying to help,, but without coding :(
Comment #21
shabana.navas CreditAttribution: shabana.navas commentedHey guys, any update on this? Really want to use the patch but am a bit hesitant in light of #19. @discipolo, so basically even with the patch, we can't select the variants using a term reference field? Turn up anything from your investigation?
Comment #22
discipolo CreditAttribution: discipolo commentedi just ran a clean test:
looks like something else got into my way earlier.
this is working!
Comment #23
shabana.navas CreditAttribution: shabana.navas commentedGreat to hear! In that case, this patch should be committed as we've got lots of reviews that have confirmed it works.
Comment #24
LGLC CreditAttribution: LGLC commentedJust adding my support to this patch being committed - incredible work!
Comment #25
Stron CreditAttribution: Stron commentedImplementing patch #13
and have the same problem as #19
"attribute field can only hold one value"
Comment #26
Stron CreditAttribution: Stron commentedTested the problem. If select multiple values for the bulk creation, you get an error "this field cannot hold more than 1 values". AND Notice:
If select a single value attribute and press button "Bulk create", then do not create anything, and the error list is supplemented:
Comment #27
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedbecause of the last two comments, I set it to 'Needs work'.
Comment #28
NaderIkladious CreditAttribution: NaderIkladious commentedHey,
How do I get this work ?
I've downloaded the patch and placed it into the project folder "sites/all/modules/inline_entity_form" and then i ran
patch -p1 < inline_entity_form-implementation-1777254-13.patch
through the terminal after cd into the project folder...I flushed all the cache and I don't see any changes ...? Am I missing something here ?
Please help, It's appreciated.
Comment #29
mglamanHi NaderIkladious, please don't change some of the metadata to meet the needs of your comment.
To apply patch, try something like
That'll get the patch data and patch for you. You need to be in the project folder.
Comment #30
NaderIkladious CreditAttribution: NaderIkladious commentedHello,
Is it possible to have the bulk creation form as a default form when page load first time ?
If possible please let me know how..
And sorry for changing the metadata, I'm kinda new here.
Thanks,
Comment #31
discipolo CreditAttribution: discipolo commentedlooks like products created with this are missing the bundle property sometimes for me. still investigating
Comment #32
sharif.tanveer CreditAttribution: sharif.tanveer as a volunteer commentedHi,
Anyone working on this feature? It seems to me a very very desired feature without what eCommerce site can't be functional. If you have 100 products, its ok to add them manually, but what if one big store wants to go with drupal with may be 2000+ products? I think this feature might get some more love !
So, What if we add variations from the inside of "adding Product" menu.
Workflow could be:
>Add Product
>Fill 'Title', 'Body'
>Click "Add Variation"
>Fill 'SKU' field with tokens. for example: [product nid]-[color]-[Size]
>Select one/multiple value from "1st attributes" & mix with One/multiple value of "2nd attributes".
>>If he wants to add different images for '1st attributes' then he need to select one value. If one image fit all variation then he can use multiple value at once.
Comment #33
FiNeX CreditAttribution: FiNeX as a volunteer commentedHi, this feature would be useful in 8.x too :-)
Comment #34
OFF CreditAttribution: OFF commented+1 for 8.x version