• Resolved katmacau

    (@katmacau)


    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

    (@corsonr)

    Automattic Happiness Engineer

    Hi @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 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

    (@katmacau)

    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

    (@corsonr)

    Automattic Happiness Engineer

    Hi @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

    (@corsonr)

    Automattic Happiness Engineer

    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.