WordPress.org

Ready to get started?Download WordPress

Forums

Woocommerce CSV importer
[resolved] Import images from external source (24 posts)

  1. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    Next update will have the possibility to import images from an external source.

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

  2. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    version 0.4 is now available. In the image field you can do like http://domain.com/image1.jpg. You can even have multiple external or mix them up like http://domain.com/image1.jpg|image2|http://domain.com/image3.jpg

  3. JeriffCheng
    Member
    Posted 1 year ago #

    WOW! Perfect! You are a great coder, I'll spread this plugin on my Blog

  4. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    thanks! would appreciate it!

  5. OneOfTheFew
    Member
    Posted 1 year ago #

    "image2" path - its relative to what..?

    ..or you just shorten it from http://domain.com/image2.jpg?

  6. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    the path can be 2 things.

    1. the fixed upload part you can select in option 3
    The path should be relative to /wp-content/uploads/

    2. the upload path created when you upload the files by zip or by selecting
    When i upload or unzip i create a random dit in /wp-content/wp-uploads/csvimport/random_dir

  7. nyenius
    Member
    Posted 1 year ago #

    Hi, is the featured image still have to be in the same name with the sku?

  8. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    hi there,

    no the image name does not have to be the same as the sku anymore!

    the plugin WILL check if the provides name in the directory

  9. OneOfTheFew
    Member
    Posted 1 year ago #

    Its strange, but i cant import pictures. Every other field is imported Ok, but not pictures. Can you please check my csv?
    https://docs.google.com/open?id=0B557cS6bP6BgOFd1Ujcxa0o5ckU

    (everything (WP, WooC, WCImport) is latest vers)

  10. OneOfTheFew
    Member
    Posted 1 year ago #

    I have found the reason :((
    It works only with image url ends in '.jpg' or other image file extension.
    But GoogleDrive/GooglePlus and lot of other picture hostings doesnt provide that kind of links.
    Is it possible for your plugin be able to operate image links without file extension?
    I beleive it is still direct link to image:
    https://lh3.googleusercontent.com/7y_KpWZt8C2PezoFxkIGNMjzNrCWmpZA3MytzmZEfoIr1Ve_I5oYgghQJ5CVVyjzJfe2UfVlQRQ

  11. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    hello OneOfTheView,

    you're link is not working.....it's private. For now you can delete this line :

    $wp_filetype = wp_check_filetype($filename, null );

    in the functions file at line 254. And i'll think of a better way!

  12. andrevanstom
    Member
    Posted 1 year ago #

    Can anyone elaborate on what the CSV should contain with regard to images uploaded from .zip?
    eg.
    AAA.zip
    >AAA.csv
    >1.jpg
    >2.jpg
    >3.jpg

    What specifically would one type in the CSV cell for the location of the picture?
    /AAA.zip/1.jpg
    ?

  13. lododicesimo
    Member
    Posted 1 year ago #

    hello, i have this csv exemple

    https://dl.dropboxusercontent.com/u/17109917/testa4.csv

    that work fine without upload the colum of the image, when i add the image said that some thing is gone bad.

    any help?

  14. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    what version are you using?

    If you are using 1.+ can you look if you got any javascript errors in your console.

  15. lododicesimo
    Member
    Posted 1 year ago #

    i am using 1.0.7

    is just a test site.

    all i did is intall wordpress + woocommerce+ your plugin

    maybe is because is just arrived wordpress 3.5.2 instead 3.5.1 ?

    i write down my version that are installed and active:
    wordpress 3.5.2
    woocommerce 2.0.12
    woocommerce store toolkit (for delete product) 1.3.4
    woocommerce csv import 1.0.7
    wp maintenance mode 1.8.9

    where and how i look the javascript error console?

  16. lododicesimo
    Member
    Posted 1 year ago #

    i just tried only with
    woordpress + your plugin and woordpress..

    i have delete all the other plugin and i have use a normal seperator ( ; ) instead my old

    and is not working.

  17. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    for the javascript console look here

  18. lododicesimo
    Member
    Posted 1 year ago #

    ok i will check and post here the error.
    have a nice evening.. i have to continue tomorrow.

    thanks very much for now.

  19. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    Hi lododicesimo,

    In your CSV you have | as seperator. Can you save your CSV file using , or ;

    Also i fixed a possible error in 1.0.8. Please use that one!

  20. lododicesimo
    Member
    Posted 1 year ago #

    i tried more time to use ; separator or , ... still the same.

    i tried to upload to 1.0.8 but still the same.
    i used console, and this is what said:

    500 (Internal Server Error) load-scripts.php:2
    send load-scripts.php:2
    v.extend.ajax load-scripts.php:2
    doAjaxImport woocsv.js:57
    (anonymous function) woocsv.js:50
    v.event.dispatch load-scripts.php:2
    o.handle.u load-scripts.php:2
    Object {readyState: 4, setRequestHeader: function, getAllResponseHeaders: function, getResponseHeader: function, overrideMimeType: function…}
    abort: function (e){return e=e||S,o&&o.abort(e),T(0,e),this}
    always: function (){return i.done(arguments).fail(arguments),this}
    complete: function (){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this}
    done: function (){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this}
    error: function (){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this}
    fail: function (){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this}
    getAllResponseHeaders: function (){return E===2?i:null}
    getResponseHeader: function (e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n}
    overrideMimeType: function (e){return E||(c.mimeType=e),this}
    pipe: function (){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()}
    progress: function (){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this}
    promise: function (e){return e!=null?v.extend(e,r):r}
    readyState: 4
    responseText: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">↵<html><head>↵<title>500 Internal Server Error</title>↵</head><body>↵<h1>Internal Server Error</h1>↵<p>The server encountered an internal error or↵misconfiguration and was unable to complete↵your request.</p>↵<p>Please contact the server administrator,↵ (mail) and inform them of the time the error occurred,↵and anything you might have done that may have↵caused the error.</p>↵<p>More information about this error may be available↵in the server error log.</p>↵<p>Additionally, a 404 Not Found↵error was encountered while trying to use an ErrorDocument to handle the request.</p>↵</body></html>↵"
    setRequestHeader: function (e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this}
    state: function (){return n}
    status: 500
    statusCode: function (e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this}
    statusText: "Internal Server Error"
    success: function (){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this}
    then: function (){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()}
    __proto__: Object
    woocsv.js:78

    please help!

  21. allaerd
    Member
    Plugin Author

    Posted 1 year ago #

    can you replace the JS file with this one

    And test again?

  22. lododicesimo
    Member
    Posted 1 year ago #

    doesent work… it not even try to do 1/4 loading.. ecc ecc... but it said (in my language) "are you sure really to do that?" and it stops.

    :-(

    I am really sad...

  23. lododicesimo
    Member
    Posted 1 year ago #

    so.. i did try to delete all, and reinstall wordpress, and woocommerce and your plugin...

    wordpress 3.5.2
    woocommerce 2.0.12
    your plugin version 1.0.8

    and this time, ( i think is the new version of wordpress the problem) i can not even change the separator... when i click "save" in setting it remains as was before.

    Can you just tell me a correct combination of version that works just for now, so i can continue my job? i don't need to have all up-date. i need just to import my 5000 product.

  24. lododicesimo
    Member
    Posted 1 year ago #

    Finally, i have got some good news, and some bad news...

    So: the new version of wordpress is different for some reason, you plugin need to be changed to this new WP version, but work fine on the 3.5.1. Infact i tryed to put back my wp to 3.5.1. and the error that i had was a http error on my server.

    So , i resolve the problem whit a mail to my host provider.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.