Jump to content

Error importing CSV Images of Products


Recommended Posts

I'm trying to import products to my shop Prestashop using the CSV example comes from and I do everything right except the images.

 

In the field ImageUrl I tried to put : ../img/productos/9.jpg and with http : //www.avonvalla...productos/9.png , putting double quotes and without them , and I do not charge the picture. The image exists and has all permits .

 

I have also found that in the file classes / tools.php the Copy function is amended as follows:

 

 public static function copy($source, $destination, $stream_context = null)
    {
        if (is_null($stream_context) && !preg_match('/^https?:\/\//', $source)) {
            return @copy($source, $destination);
        }
        return @file_put_contents($destination, Tools::file_get_contents($source, false, $stream_context));
    }

 

Please I need this in order to continue the development of my store , I have more than 1000 items to go up and I need to make it through CSV.

 

Deputy CSV code I'm trying to process if there you could help me .

 

ID;Active (0/1);Name *;Categories (x,y,z...);Price tax excluded or Price tax included;Tax rules ID;Wholesale price;On sale (0/1);Discount amount;Discount percent;Discount from (yyyy-mm-dd);Discount to (yyyy-mm-dd);Reference #;Supplier reference #;Supplier;Manufacturer;EAN13;UPC;Ecotax;Width;Height;Depth;Weight;Quantity;Minimal quantity;Visibility;Additional shipping cost;Unity;Unit price;Short description;Description;Tags (x,y,z...);Meta title;Meta keywords;Meta description;URL rewritten;Text when in stock;Text when backorder allowed;Available for order (0 = No, 1 = Yes);Product available date;Product creation date;Show price (0 = No, 1 = Yes);Image URLs (x,y,z...);Delete existing images (0 = No, 1 = Yes);Feature(Name:Value:Position);Available online only (0 = No, 1 = Yes);Condition;Customizable (0 = No, 1 = Yes);Uploadable files (0 = No, 1 = Yes);Text fields (0 = No, 1 = Yes);Out of stock;ID / Name of shop;Advanced stock management;Depends On Stock;Warehouse
;1;Brillo de Labios Shine Burst;60;4,95;1;0;0;0;0;0;0;174334;174334;0;0;0;0;0;0;0;0;0;100;0;catalog;0;0;0;<p>Brillo de Labios Shine Burst </p>;Brillo Ultra-Hidratante y Luminoso;0;Brillo-labios-Shine-Burst;Brillo-labios-Shine-Burst;Brillo-labios-Shine-Burst;0;Disponible;0;1;0;0;1; "http://www.avonvalla...productos/9.png";0;0;0;0;0;0;0;0;0;0;0;0

 

Prestashop version I'm working with is the 1.6.1.5

 Thank you so much in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...