rechtstexte für onlineshop
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Export file import

    kaimork

    • Neu im Forum
    • Beiträge: 1
    Export file import
    am: 08. Februar 2021, 21:40:59
    Hey,
    i got an export file.
    imported this to my betashop:
    http://betashop.elok.dk/

    But wondering how i can bulk import images:
    https://www.domain.tld/images/product_images/original_images + image name from csv file
    https://www.domain.tld/images/product_images/info_images + image name from csv file
    https://www.domain.tld/images/product_images/popup_images + image name from csv file
    https://www.domain.tld/images/product_images/thumbnail_images + image name from csv file

    Since all images is: http://betashop.elok.dk/images/product_images/info_images/noimage.gif

    [09.02.2021 EDIT GTB: remove Domain]

    Linkback: https://www.modified-shop.org/forum/index.php?topic=41660.0

    awids

    • Experte
    • Beiträge: 3.785
    • Geschlecht:
    Re: Export file import
    Antwort #1 am: 08. Februar 2021, 22:01:29
    You have to upload all images manually to /images/product_images/original_images/. After that, install the "Image processing" module in "Backend" > "Module" > "System Module" and generate your product pictures.

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.743
    • Geschlecht:
    Re: Export file import
    Antwort #2 am: 09. Februar 2021, 07:54:37
    Additianally:
    In case you have got external URLs for these images
    https://www.domain.tld/images/product_images/original_images + image name from csv fileand you don't want to load them all down manually to afterwards load them up manually to your own environment,
    you may copy the images into your folder by using the PHP copy() function in a small script which you may call from your browser.

    Example for a file in the root of your shop:
    Code: PHP  [Auswählen]
    <?php
    include('includes/application_top.php');

    copy('EXTERNAL_URL, DIR_FS_CATALOG.'images/product_images/original_images/')

    ?>

    As long as the image names of the external URL follwow a pattern (e.g. img_MODEL_NO.jpg) you can do that in a loop and thus have effectively a bulk upload.

    If you will get CSV files for your trading stock regularly it would even be worth to make bigger efforts.
    My humble selfI always uses helping database tables to distribute the data in a CSV, meaning creating a table with the structure of the CSV and load the CSV into it by using the LOAD DATA LOCAL INFILE command. Using this helping table it would be much easier to process and distribute the data in chunks to avoid timeouts.

    if you are familiar with command line scripts you can do the copying of the images using the wget.

    Cheers,
    noRiddle

    [09.02.2021 EDIT GTB: remove Domain]
    5 Antworten
    3085 Aufrufe
    04. März 2013, 12:30:59 von Romanski
    19 Antworten
    18930 Aufrufe
    07. November 2012, 10:58:11 von 0815
    3 Antworten
    3683 Aufrufe
    06. Oktober 2009, 16:39:57 von Tomcraft
    1 Antworten
    1761 Aufrufe
    15. April 2015, 16:56:32 von golferteddy