Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ronakganatra9 opened this issue Feb 13, 2019 · 3 comments
Open

Comments

@ronakganatra9
Copy link

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
Copy link
Author

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
Copy link

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

@leggleton
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants