• Resolved wcp

    (@wcp)


    Hello,
    For my T-shirt shop, I have connected my woocommerce store to a print-on-demand business.

    First importing the variation images didn’t work at all, the culprit was that HTTP PUT needed to be anabled, which it is now.

    But there is now another problem: Whenever I import a product which has more than 11 variations, it is getting cut off. So when I import a product with 20 color variations, only 11 color variation images are imported, and these images are not automatically linked to the variations in the woocommerce product… So the whole system just stop when there are more than 11 variations.

    Products with less variations work perfectly… So there is some kind of limit setting on my server i guess? Which is interfering with the woocommerce import function?

    Any help or pointers appreciated.
    Thanks
    Wcp

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @wcp ,

    Okay, as this is related to another plugin we will not be able to tell the exact problem that is happening. It could have been an issue from their side.

    For WooCommerce I can think of two different possibilities –

    1. max_execution_time: which decides how long the server will allow running a process. You can find information to increase this here – How to increase Maximum Execution Time for WordPress site. You can also reach out to your hosting provider to help you increase this.

    2. WooCommerce does have a variation limit but that is not 11, it is 50 at a time. You can override that using this filter –

    function wpse_304237_rest_batch_items_limit( $limit ) {
        $limit = 200;
    
        return $limit;
    }
    add_filter( 'woocommerce_rest_batch_items_limit', 'wpse_304237_rest_batch_items_limit' );

    If this does not help, I will recommend getting in touch with the other plugin developers to get further information on this behavior.

    Thank you ??

    Thread Starter wcp

    (@wcp)

    Hi Rashed, on further inspection it is 50 variations: I only counted the colors, but per color there are also 5 sizes.
    So at color 11 it stops, 10 x 5 = 50.

    Now, I have installed the ‘code snippets’ plugin, and I have added your code to allow 200 variations to be imported, which is the exact number of variations I have for a shirt.

    When I import the product and its variations now, below the product there are 200 variations. However, still only 50 variations have their color images also imported. The remaining variation images are still not being imported and is stuck on 50 (10 images).

    Do you have any other suggestions?

    Hello @wcp ,

    The snippet I shared is allowing you to generate more than 50 (your desired number) variations at a time. So, have you got it working?

    Do you have more than 50 variations created as expected?

    If the images are not importing, I suspect the issue is somewhere else. I will recommend that you get in touch with the plugin developers and ask for their suggestions. I believe they have made the plugin work with WooCommerce. We are unable to guess their coding structure and features made for WooCommerce.

    I hope you get a solution soon.

    Thank you ??

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Importing variation images is somehow limited’ is closed to new replies.