Trying to Store GTIN numbers in WordPress Database via WooCommerce CSV Import
In Excel I created my CSV in which there is a column called meta:wpseo_global_identifier_values
Through excel formulas I have created the value below with the dummy GTIN 1111111111111 to match how it is stored in the database table _postmeta
a:6:{s:5:"gtin8";s:0:"";s:6:"gtin12";s:0:"";s:6:"gtin13";s:9:"1111111111111";s:6:"gtin14";s:0:"";s:4:"isbn";s:0:"";s:3:"mpn";s:0:"";}
Then from the excel file, I generate the CSV file.
However after I import the CSV file and check the database I find that the data is input as below (with the extra characters s:134:" in the beginning and "; the end) and as a result, the GTIN is not visible on the website backend.
s:134:"a:6:{s:5:"gtin8";s:0:"";s:6:"gtin12";s:0:"";s:6:"gtin13";s:9:"1111111111111";s:6:"gtin14";s:0:"";s:4:"isbn";s:0:"";s:3:"mpn";s:0:"";}";
When I manually remove the extra characters the value is successfully stored and visible on the website backend.
I have tried to understand why this is happening but to no avail, does anyone have any idea why this might be so?
Thanks