• Dear,

    Assume that I have a variable product with some existing variations. If I create a new variation, it is being added at the top of the list. How can I change this behavior so that the new variation gets added at the bottom of the list?

    Do you think you could provide me a custom code that would apply for both (1) when I create a single new variation (2) but also when I bulk create variations.

    Thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    You can drag & drop variations in Product data metabox.

    just click (on burger icon in variation title bar), hold, drag to bottom of other variation and drop it.

    Good luck

    Thread Starter gevcen

    (@gevcen)

    I have around about 20 products and each of them has about 200-300 variations each… You can imagine that I won’t start having fun re-ordering them one by one…

    That’s how I can frankly argue that WooCommerce isn’t built for businesses who have many variations. All they care is those who have just few (or maximum a few dozens of variations) but what about those who have hundreds of variations?

    I already tried to increase the limit number of variations created at once per bulk (by default 50) to 100, 200 or 300 but it goes down and server doesn’t follow…

    so WooCommerce should really care about the real problems (in this case, increasing the number of variations created at once) rather than pissing us off with shitty improvements like putting this horrible new dashboard by default in WooCommerce.

    OK sir

    I’m not in woocommerce development team but woocommerce is fully customizable,

    In your case:

    When your variable product has more than 30 variations, WooCommerce starts to use ajax to load your selected variation. This changes the way the dropdown fields work – where before you could select some options and others would become unavailable/disabled, now you have to select all options before finding out the variation you selected is not available.

    Fortunately, as with most things WooCommerce, you can modify this setting. Try adding this to your theme’s functions.php file:

    add_filter( 'woocommerce_ajax_variation_threshold', function() { return 70; }, 10, 2 );

    This means ajax will only kick in when there is more than 70 variations. You can adjust this accordingly.

    if your problem not resolved, please contact WOOCOMMERCE CUSTOMIZATION:

    https://woocommerce.com/customizations/

    Good luck

    Thread Starter gevcen

    (@gevcen)

    That is for the frontend. I was talking about the backend. When I create variations in bulk, it stops at 50. I added a code to increase the limit to 100 or 200 but WooCommerce runs endlessly…

    define( 'WC_MAX_LINKED_VARIATIONS', 100 );

    add_action( 'init', 'change_max_variations_linked' );
    function change_max_variations_linked(){
        define( 'WC_MAX_LINKED_VARIATIONS', 150 );
    }

    both code I found on internet don’t work properly…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add new variations at bottom of list, instead of at the top’ is closed to new replies.