WordPress.org

Ready to get started?Download WordPress

Forums

Woocommerce CSV importer
Proposition about improving background importing (1 post)

  1. FunFrog
    Member
    Posted 1 year ago #

    My hosting have a script execution time limit,and set_time_limit(0); in plugin code, unfortunately, doesn`t work, so here is a new alghoritm i did with this importing script.
    - read $n from '1.txt'.
    - scroll in csv file to line $n.
    - add 500 goods from this point (or less if we get an end of file).
    - if end of file - $n := 1 else $n := $n + 500.
    - save $n to '1.txt'.
    - if we didn`t get an end of file - start form beginning by scheduling it at WP cron.

    But this is too far from ideal and there will be much better to use AJAX for import process (Simpla CMS for example).

    P.S. There are ~35000 items in my CSV file.

    http://wordpress.org/extend/plugins/woocommerce-csvimport/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic