Woo Commerce and Serialized Array

ok so im trying to bulk import in attributes for my products with woo commerce
im in phpmyadmin and looking at wp_postmeta

and the attributes are added on via values like this

a:1:{s:11:”pa_emission”;a:6:{s:4:”name”;s:11:”pa_emission”;s:5:”value”;s:0:””;s:8:”position”;i:0;s:10:”is_visible”;i:1;s:12:”is_variation”;i:0;s:11:”is_taxonomy”;i:1;}}

I understand this is a serialized array. however what i dont get is where the stored value is. for example in this array

Array
(
    [pa_emission] => Array
        (
            [name] => pa_emission
            [value] => 
            [position] => 0
            [is_visible] => 1
            [is_variation] => 0
            [is_taxonomy] => 1
        )

)

There is no mention of the value i selected for emission which is 42 states

Here is a picture to clarify things

https://gyazo.com/d29e73f2ed9c60176ff476a161bdcf2c

Read more here: Woo Commerce and Serialized Array

Leave a Reply

Your email address will not be published. Required fields are marked *