Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Stefan M.

    (@stefan-m-1)

    Dirty hack, but working.

    views/fixed/product_price_data.php

    add on line 93:

    global $DoWooCSOnce;
    if (!array_key_exists($post_id,$DoWooCSOnce) OR $DoWooCSOnce[$post_id] != '1') {

    Bottom of the file:

       $DoWooCSOnce[$post_id] = 1;
    }

    Then the code is only executted once per variable product ID, and saving is working again too.

    it seams the action is fired multiple times per variable product. Dont know why, but one site has it fired 3 times, this side has it fired around 10 times…

    • This reply was modified 2 years, 2 months ago by Stefan M..
    • This reply was modified 2 years, 2 months ago by Stefan M..
    Plugin Support mediawebster

    (@mediawebster)

    Hello

    It looks like your site has code that calls the hook ‘woocommerce_product_after_variable_attributes’ multiple times.

    for example, according to your screenshot, I see non-standard fields on the variation tab

    So please disable third party plugins and do a test

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Buggy’ is closed to new replies.