sagamarket Posted March 24, 2015 Share Posted March 24, 2015 Hola buenas Ejecuto este php desde el navegador para actualizacion , pero no me cargan las imagenes de los productos. Alguien me puede decir que estoy haciendo mal? Muchas gracias. <?phpecho "Estamos dentro";define('_PS_ADMIN_DIR_', getcwd());include(_PS_ADMIN_DIR_.'/../config/config.inc.php');include(_PS_ADMIN_DIR_.'/functions.php');if (!isset($_GET['entity'])) die();$import = new AdminImportController();switch ($_GET['entity']) { case 1: loadProductsPost(); $import->productImport(); break;}function loadProductsPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '1', 'csv' => 'pro_completo.csv', 'convert' => 'on', 'regenerate' => '', 'entity' => '1', 'iso_lang' => 'es', 'match_ref' => '1', 'separator' => ';', 'multiple_value_separator' => ',', 'import' => '1', 'type_value' => array ( 0 => 'no', 1 => 'name', 2 => 'no', 3 => 'description', 4 => 'wholesale_price', 5 => 'no', 6 => 'reference', 7 => 'quantity', 8 => 'weight', 9 => 'category', 10 => 'no', 11 => 'Image URLs (x,y,z...)', 12 => 'active', 13 => 'delete_existing_images', ), );} Link to comment Share on other sites More sharing options...
Recommended Posts