alberto510a Posted July 2, 2013 Share Posted July 2, 2013 (edited) Good morning, I'm using this script: <?php define('_PS_ADMIN_DIR_', getcwd()); include_once('../config/config.inc.php'); include_once('../config/defines.inc.php'); include_once('../admin3094/functions.php'); include_once '../controllers/admin/AdminImportController.php'; include_once '../controllers/admin/AdminImagesController.php'; $import1 = New AdminImportController(); loadProductsPost(); $import1->productImport(); function loadProductsPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '0', 'csv' => 'products1.csv', 'convert' => '', 'entity' => '1', 'separator' => ';', 'multiple_value_separator' => ',', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'id', 1 => 'active', 2 => 'name', 3 => 'category', 4 => 'price_tex', 5 => 'id_tax_rules_group', 6 => 'wholesale_price', 7 => 'on_sale', 8 => 'reduction_price', 9 => 'reduction_percent', 10 => 'reduction_from', 11 => 'reduction_to', 12 => 'reference', 13 => 'supplier_reference', 14 => 'supplier', 15 => 'manufacturer', 16 => 'ean13', 17 => 'upc', 18 => 'ecotax', 19 => 'weight', 20 => 'quantity', 21 => 'description_short', 22 => 'description', 23 => 'tags', 24 => 'meta_title', 25 => 'meta_keywords', 26 => 'meta_description', 27 => 'link_rewrite', 28 => 'available_now', 29 => 'available_later', 30 => 'available_for_order', 31 => 'date_add', 32 => 'show_price', 33 => 'image', 34 => 'delete_existing_images', 35 => 'features', 36 => 'online_only', 37 => 'condition', 38 => 'shop', ), ); } ?> Products have imported correctly but their images don't appear. Why? Do I need to include other controller? I'm using prestashop 1.5.4.1 Thanks Edited July 2, 2013 by alberto510a (see edit history) Link to comment Share on other sites More sharing options...
PrestaCoder.com Posted July 2, 2013 Share Posted July 2, 2013 Hi, Have you tried to regenerate the images on Prestashop back office? Link to comment Share on other sites More sharing options...
alberto510a Posted July 2, 2013 Author Share Posted July 2, 2013 (edited) Yes I tried it but remember that is a script and is automatic so I musn't enter to back-office. Edited: The problem is that script don't import images so they don't appear. Edited July 2, 2013 by alberto510a (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts