In correct behaviours when adding a new variation in the variations tab, /product/NN/variations/add

The variation created there will create with only the default values (the first from every select list of attributes), no matter what I select from the attribute combinations.

If I edit it, the the changes will stick.

If I disable commerce bulk, then it creates variations correctly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

petergus created an issue. See original summary.

drugan’s picture

FileSize
279.07 KB
273.74 KB
313.62 KB

Can't reproduce:

duplicate

save

done

drugan’s picture

Status: Active » Postponed (maintainer needs more info)

Please, provide more info.

petergus’s picture

Step 1. Create a new product, no variations yet.

new product no vars

Step 2. Click " + Add Variation". Select attribute options other then then default 'first at the top of the list'.

add

Step 3. Notice that the new product is created with the default 'first in the list' attributes instead of the ones selected. If I now edit this variation and change the option, they will then work.
In this case I had selected a queen and 3" higher frame, but the default 'first in the list' is crib and normal frame so that was used to create the variation.

diff

drugan’s picture

Title: Add new variations creates only default variation » Using "Add new variation" button forcibly apply the very first unused attributes combination

  • drugan committed 773c4a4 on 8.x-1.x authored by petergus
    Issue #3023651 by petergus, drugan: Using "Add new variation"  button...
drugan’s picture

Status: Postponed (maintainer needs more info) » Active

@petergus

Yeah, it was my overdo when creating attributes combination prepopulate helper.

Assigned you as the patch author cause the catch was quite good and in time as I think.

Please, do not close the issue so other guys can find it before we'll make the next alpha7 release.

drugan’s picture

Version: 8.x-1.0-alpha6 » 8.x-1.x-dev
drugan’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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