• Resolved Nadek67

    (@nadek67)


    Hello!
    One of our suppliers has got xml request limit – once in 10 minutes. WP All Import requests the xml twice and does not get it. Is there a setting to make the plugin request xml only once? URL to xml: https://webmim.svrauto.ru/api/v1/catalog/unload?access-token=uh4sBbTb8Y3b6McsgNP3Oi98unEL-PxA&format=xml&types=1
    It works OK when requested once in 10 minutes. But it does not work with WP All import, as the plugin for some reason requests it twice. The supplier’s server returns this error: {“status”: 429, “message”: “\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a API”}

    Hope you can help.

    Sincerely, Nadia.

Viewing 1 replies (of 1 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @nadek67

    Please try adding this code snippet to your child themes functions.php file:

    add_filter( 'wp_all_import_curl_download_only', 'wpai_wp_all_import_curl_download_only', 10, 1 );
    function wpai_wp_all_import_curl_download_only( $download_only ){
    	return true;
    }

    This will force WP All Import to request the feed 1 time only.

Viewing 1 replies (of 1 total)
  • The topic ‘Double xml request during import’ is closed to new replies.