Open ronakganatra9 opened 5 years ago
Issue is in update_attributes() function line no. 1537 in file class-wc-product-data-store-custom-table.php file inside : data-stores folder.
Hi guys, do you have any glue for this issue?
The issue is there's a "type" mismatch. In the select drop-down, the options are in slug format, but the value stored in wp_wc_product_attribute_values is the integer value of the attribute. I am not sure which is the correct type. If I manually update the table via SQL to the slug value, everything works as expected and the options shows as selected in the UI, but that is only a hack until I can figure out the correct format.
Default form values are not saving in the database after saving it. Please find the attached GIF screenshots.
Screenshots: