AvS_FastSimpleImport icon indicating copy to clipboard operation
AvS_FastSimpleImport copied to clipboard

Problems using _super_attribute_price_corr with configurable products with 2 or more configurable attributes

Open pabloblazquez opened this issue 9 years ago • 0 comments

I need to use configurable products with different prices for each "size" attribute. The problem is that, apart from "size", I have another configurable attribute ("color") which has no influence on product price, but it's need to be configurable.

I'm having problems importing the correct values of "_super_attribute_price_corr" column. This is an example of import array I'm using for the configurable product (before that, all the related simple products are correctly imported):

Array
        (
            [sku] => 21620320
            [_attribute_set] => Default
            [_type] => configurable
                ...
                *** (other fields) ***
                ...
            [price] => 219.00
            [name] => Name Test Configurable
            [_super_products_sku] => Array
                (
                    [0] => 216203203309
                    [1] => 216203203309
                    [2] => 216203203315
                    [3] => 216203203315
                )

            [_super_attribute_code] => Array
                (
                    [0] => size
                    [1] => color
                    [2] => size
                    [3] => color
                )

            [_super_attribute_option] => Array
                (
                    [0] => 4A
                    [1] => Gris
                    [2] => 10A
                    [3] => Gris
                )

            [_super_attribute_price_corr] => Array
                (
                    [0] => 219.00
                    [1] => ###EMPTY###
                    [2] => 249.00
                    [3] => ###EMPTY###
                )
        )

Everything is imported correctly, except the "_super_attribute_price_corr" association. Only the first "size" appears to have the imported value, and the rest appear to be empty. I attach the admin page image of the example given: confir_prices_problem

¿Any idea or help with the correct array structure to make this work? Thanks in advance.

pabloblazquez avatar Aug 28 '16 09:08 pabloblazquez