• Resolved MarketingPont.com

    (@wpsos911)


    Hi,

    I’m having trouble adding attributes via the Attribute settings menu in my woocommerce.

    I select the attributes that I want, but they don’t seem to be saved.

    I disable this plugin and now are is ok.

    This problem occurs only in new products.

    Can you help me?

    Regards.

Viewing 9 replies - 1 through 9 (of 9 total)
  • klive

    (@klive)

    Same problem…

    wpeshaan

    (@wpeshaan)

    HI @klive, @wpsos911,

    Could you record me?reproducing your issue using tool like this??https://www.useloom.com
    It helps me to quickly figure out issue and squash it with immediately.

    Thank you

    1stwebdesigns

    (@1stwebdesigns)

    Same issue here, just upgraded to the latest version of Woocommerce.

    Now when you save attributes, they disappear. If you reload the page it appears they have saved, and they come back.

    Disabling the plugin makes things work again as they should in the admin

    1stwebdesigns

    (@1stwebdesigns)

    To clarify this happens on the Edit Product screen. You can assign and save attributes to a product. They do indeed save, but the attributes appear to refresh via ajax and are blank. If you reload the page in full, the attributes come back.

    I have tracked this issue down to line 201 of the file includes/class-admin.php:

    global $thepostid;

    It appears that $thepostid is an integer when the edit page is first loaded, but after saving the attributes, they refresh via ajax and $thepostid is then null.

    A very quick work around which seems to work for me is to add, directly below “global $thepostid” the following:

    global $thepostid;
    if ( ! $thepostid ) {
    $thepostid = $_POST[‘post_id’];
    }

    1stwebdesigns

    (@1stwebdesigns)

    Sorry, wrong plugin! My solution is for this plugin: https://www.ads-software.com/plugins/variation-swatches-for-woocommerce/

    grantog

    (@grantog)

    Same problem! : (

    grantog

    (@grantog)

    This helped on one occasion: “To clarify this happens on the Edit Product screen. You can assign and save attributes to a product. They do indeed save, but the attributes appear to refresh via ajax and are blank. If you reload the page in full, the attributes come back.” from 1stwebdesigns above

    wpeshaan

    (@wpeshaan)

    @grantog,

    Could you record me reproducing your issue using tool like this? https://www.useloom.com
    It helps me to quickly figure out issue and squash it with immediately.

    Thank you

    Ahmed, I am having the same problem. Here is a video of what I see.

    https://s.nimbusweb.me/share/2723488/6736qk3qgnxr85uqvvod

    Thanks,
    Sam

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Attributes not saving problem’ is closed to new replies.