woocommerce / woocommerce-product-tables-feature-plugin

Implements new data-stores and moves product data into custom tables, with a new, normalised data structure.
GNU General Public License v3.0
193 stars 32 forks source link

Issue in saving Default Form Values in variations tab WooCommerce #143

Open ronakganatra9 opened 5 years ago

ronakganatra9 commented 5 years ago

Default form values are not saving in the database after saving it. Please find the attached GIF screenshots.

Screenshots: ezgif com-video-to-gif 3 ezgif com-video-to-gif 4

ronakganatra9 commented 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.

acharkizakaria commented 3 years ago

Hi guys, do you have any glue for this issue?

leggleton commented 1 year ago

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.