Title: Issues with variations not saving
Last modified: March 18, 2021

---

# Issues with variations not saving

 *  Resolved [katmacau](https://wordpress.org/support/users/katmacau/)
 * (@katmacau)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-variations-not-saving/)
 * Hello. I have noticed an increasing problem where variation changes are not being
   saved. I notice this happens when the ‘save changes’ button stays grey (instead
   of turning blue) after making a change. It appears as though it’s not noticing
   a change has been made.
 * We also have some JS code that dynamically inserts the SKU value by taking the
   parent sku and the variation name and combining this as the sku. In then uses
   input.value to write that code to the variation SKU field. The issue is that 
   when you use this option on its own, again a change in the variations data is
   not recognised.
 * But its not this tool alone that has the issue. Even simple things like price
   or stock changes not triggering the save button to show.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-variations-not-saving/#post-14200334)
 * Hi [@katmacau](https://wordpress.org/support/users/katmacau/),
 * If I am capturing this correctly, saving variations isn’t possible and you’re
   running a custom JS script as well.
 * Could you open the browser console and refresh the page please? Then, you can
   share a screenshot of the error. I recommend [https://snipboard.io](https://snipboard.io)
   for sharing screenshots – please follow the instructions on the page, then paste
   the URL in this chat. It works with Chrome, Firefox, Safari, and Edge.
 *  Thread Starter [katmacau](https://wordpress.org/support/users/katmacau/)
 * (@katmacau)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-variations-not-saving/#post-14200398)
 * Hi Remi.
 * The custom sku is working when other changes to variations are made. When I do
   this the “save” button under the list of variations goes blue.
 * But in general, not just the skus, I noticed it with some other changes like 
   setting the stock via Add Variation menu. It didnt make the save button go blue
   or actually save on pressing update.
 * In the console log, I have seen this error message show if relevant.
 *     ```
       Uncaught TypeError: erroredFunction is null
           onerror https://www.mydomain.com.au/wp-admin/post.php?post=13486&action=edit&message=10:384
           OnErrorEventHandlerNonNull* https://www.essjai.com.au/wp-admin/post.php?post=13486&action=edit&message=10:361
       post.php:384:61
       Uncaught TypeError: wp is null
           xhr https://www.mydomain.com.au/wp-includes/js/heartbeat.min.js?ver=5.6.2:2
           jQuery 4
           heartbeat https://www.mydomain.com.au/wp-includes/js/heartbeat.min.js?ver=5.6.2:2
           jQuery 9
           23 https://www.mydomain.com.au/wp-includes/js/media-models.min.js?ver=5.6.2:2
           r https://www.mydomain.com.au/wp-includes/js/media-models.min.js?ver=5.6.2:2
           22 https://www.mydomain.com.au/wp-includes/js/media-models.min.js?ver=5.6.2:2
           r https://www.mydomain.com.au/wp-includes/js/media-models.min.js?ver=5.6.2:2
           <anonymous> https://www.mydomain.com.au/wp-includes/js/media-models.min.js?ver=5.6.2:2
           <anonymous> https://www.mydomain.com.au/wp-includes/js/media-models.min.js?ver=5.6.2:2
       ```
   
 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-variations-not-saving/#post-14228402)
 * Hi [@katmacau](https://wordpress.org/support/users/katmacau/),
 * The log seems to points towards a potential Ajax issue. I’d this point I’d suggest
   you perform a full conflict test.
 *  [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * (@corsonr)
 * Automattic Happiness Engineer
 * [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-variations-not-saving/#post-14258160)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Issues with variations not saving’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [variations](https://wordpress.org/support/topic-tag/variations/)

 * 4 replies
 * 2 participants
 * Last reply from: [Remi Corson](https://wordpress.org/support/users/corsonr/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/issues-with-variations-not-saving/#post-14258160)
 * Status: resolved