• Resolved elparts

    (@elparts)


    Hi,

    I have problem with the import of digital products when I want to import the name of a file to download after purchase and URL of this file. In both fields, I want to have URL of a file, so in “File Name” too. And during CSV import when I have for example http://my-site.com/file1.zip in both fields, after import in URL field I have this URL, but in “File Name” I have “file1.zip”. I wanted to have the whole URL, not the name of the file. Why it changes it when I input the whole URL for the “File Name” field in CSV? Mapping of fields is for sure ok. How to fix it?

    BR,

    • This topic was modified 3 years, 7 months ago by elparts.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support EastOfWest a11n

    (@eastofwest)

    Howdy BR,

    I ran a test in sandbox site where the only plugin active is the latest WooCommerce, and using the Storefront theme (to eliminate the potential for conflict).

    As a first test, I created a downloadable, simple product, entered the Name and File URL as exactly the same (https://file.to/download/here.zip, in my test) – it was able to save it, which to me shows that text field can save URLs.

    Having established that, I exported the product, and in the CSV deleted the ID and changed the product’s name (so it will import as a new product). I also edited both the “Download 1 name” and “Download 1 URL” field both to reflect https://file.to/download/there.zip, and then re-imported the CSV.

    The new product imported all the details, including the name and file URL both reflecting the URL:

    I repeated this test with a hyphen in the URL as well, and had the same success. This was all done with the built-in CSV import/export function. If you’re using another plugin for this, your mileage may vary. If your URL has any special characters in it, that might also play a role…

    Thread Starter elparts

    (@elparts)

    Thank you for your reply, and could you check what will happen if you try to update URL and name during CSV import?

    I mean both URL as a name of the file, and URL as a file path? Because I was working only on existing products, I haven’t tried this with new products, maybe it works properly when you create new products during import and these data. I had both fields empty when I was creating these items.

    So I was using build-in import/export tool (yours), and WP ALL Import too and this doesn’t work properly there too. But for example, this plugin works: https://pl.wordpress.org/plugins/product-import-export-for-woo/ and it has one field in CSV for a file name and file URL, and these values are separated by “::” in one field, and in your import/export and WP All Import it has separate fields for both, it’s the only difference.

    Anyway, if mentioned plugin work for me it’s solved , but you should check how it work when you update data during import.

    • This reply was modified 3 years, 7 months ago by elparts.
    Plugin Support EastOfWest a11n

    (@eastofwest)

    During the test I outline above I manually created the product, then exported it. So it was technically an exiting product, and it worked.

    I’m not sure why it wouldn’t work on your installation, but I’m glad you found a solution that does. In light of that development, I’ll go ahead and mark this thread as resolved. If you need help with anything else, feel free to start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Import doesn’t work properly for digital products’ is closed to new replies.