Jump to content

ditolas

Members
  • Posts

    116
  • Joined

  • Last visited

ditolas's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

1

Reputation

  1. Hola a todos, estoy teniendo problemas a la hora de crear o modificar transportistas,me da error al meter rango de precios mando pantallazo del error y la info de mi prestashop A ver si alguien me puede decir por donde tirar INFORMACIÓNUtilice esta información al comunicar un problema en el seguimiento de errores o en el foro. INFORMACIÓN DEL SERVIDORInformación del servidor Linux #142-Ubuntu SMP Tue Apr 28 10:12:19 UTC 2015 x86_64 Versión del servidor web Apache Versión de PHP 5.3.2-1ubuntu4.30 Límite de memoria 128M Tiempo Máximo de ejecución 30 CONFIGURACIÓN DE LA BASE DE DATOSVersión de MySQL 5.1.73-0ubuntu0.10.04.1-log Servidor MySQL localhost Nombre MySQL Usuario MySQL Prefijo de las tablas Motor MySQL InnoDB INFORMACIÓN DE LA TIENDAVersión de PrestaShop 1.6.1.1 Enlace de su tienda Tema actual leo_sportshoes CONFIGURACIÓN DE EMAILModo de envío de emails Utiliza configuración de SMTP Servidor SMTP: Nombre de usuario SMTP: Definido Contraseña: Definido Cifrado off Puerto SMTP 587 SUS DATOSNavegador utilizado Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 COMPRUEBE SU CONFIGURACIÓNParámetros requeridos ok Parámetros opcionales Por favor, resuelva los siguientes errores Está usando la versión 5.3.2-1ubuntu4.30 de PHP. Pronto la última versión de PHP soportada por PrestaShop será la 5.4. ¡Para garantizar que esté preparado para el futuro actualice a PHP 5.4 ahora!
  2. yo he echo algo parecido ,te cuento a ver si te sirve: tengo un sistema de gestión que sincronizo con el prestashop 1.6 el stock.Yo lo hago en el propio ProductController.php y como dijo antes cardo necesitas actualizar tb la fila de stock_available en donde id_product_attribute=0 ,ya que hay guarda el sumatorio de todas las unidades .TB me pasaba que se actualizaba la base de datos y no me aparecia el boton de comprar teniendo stock ,esto lo solucione igualando la cantidad del producto al total que yo metia en la base: $this->product->quantity = $Total; Espero os sirva de algo Saludos
  3. Hola a todos, tengo un ERP que tiene un web services para poder comunicarte con el a traves de SOAP . Estoy haciendo pruebas con prestashop para leer esa informacion y mostrar los productos y gestionar la venta a traves de prestashop.Prestashop coje todo de la base de datos asi que no se si tengo que guardar esa info directamente en la base de datos o hacerlo al vuelo ,pero no se muy bien donde tengo que hacerlo ,en los hook,creando un modulo que llame a los hook de acciion en los momentos que se necesite.....Necesito orientacion para saber por donde empezar. Un Saludo
  4. Hola dr.yodarga gracias por apuntarte.Nos tenemos que ayudar unos a otros No tengo github ,lo iré colgando por este post o si tienes tu.
  5. Hola Enrique, no quiero tener que entrar en el backoffice cada vez que tenga que importar productos ,ademas hago cambios continuos y muevo gran cantidad de datos . Ademas tb estoy intentando usar ese script para diversas tareas de inserción de artículos. Si alguien me hecha una mano mejor ,sino cuando lo resuelva lo compartiré
  6. Hola a Todos, estoy intentando importar productos a través de un script en prestashop 1.6.0.6 .He encontrado este otro script de la 1.5 . <!-- COMPATIBLE CON PRESTASHOP VERSION 1.5.4.1 Script version 2013-6-19_2021 para importar productos y categorias en Prestashop FUENTE: http://programadorphp.es/script-para-importar-productos-y-categorias-en-prestashop Mas Datos: http://www.prestashop.com/forums/topic/74735-importar-productos-desde-cvs-con-script-no-sube-imagenes/page__p__429097__hl__loadproductspost__fromsearch__1?do=findComment&comment=429097 http://www.prestashop.com/forums/topic/117001-adminimport-y-script-de-importacion/page__hl__loadproductspost__fromsearch__1 Aqui dejo el codigo del script que, situado en la parte de la tienda, lanza una importacion de un fichero CSV productos (pro.csv) o categorias (cat.csv), segun se le indique por GET['entity'] Los ficheros CSV a importar deben encontrarse en el directorio /adminxxx/import/pro.csv mientras que nuestro script debe de estar situado en el directorio /adminxxx/script_import.php del Prestashop. Llamar al script: http://www.midominio.com/admin123/script_import.php?entity=1 SOLUCIONES: * Sino importa las imagenes, añadir estas lineas en AdminImportController.php, dentro de la funcion “public function productImport()”, Antes de: if (isset($product->image) && is_array($product->image) && count($product->image)) Añadid esto: if(!is_array($product->image)) $product->image = explode(“,”,$product->image); * Si “Fatal error: Cannot redeclare class…” comentar la linea //include_once '../controllers/admin/AdminImportController.php'; --> <?php echo "loading.gif"; ob_flush(); flush(); define('_PS_ADMIN_DIR_', getcwd()); include(_PS_ADMIN_DIR_.'/../config/config.inc.php'); include(_PS_ADMIN_DIR_.'/functions.php'); include_once '../controllers/admin/AdminImportController.php'; if (!isset($_GET['entity'])) die(); set_time_limit(0); //$import = New AdminImportControllerCore(); //para version 1.5.4.1 $import = New AdminImportController(); switch ($_GET['entity']) { case 0: loadCategoriesPost(); $import->categoryImport(); break; case 1: loadProductsPost(); $import->productImport(); break; case 2: loadCombinacionesPost(); $import->attributeImport(); break; case 5: loadManufacturersPost(); $import->manufacturerImport(); break; case 6: loadSuppliersPost(); $import->supplierImport(); break; default: die(); break; } exit(); //window.location="http:script.javascript."; function loadCategoriesPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '0', 'csv' => 'categories_import.csv', 'convert' => '1', 'entity' => '0', 'separator' => ';', 'multiple_value_separator' => ',', 'forceIDs' => '1', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'id', 1 => 'active', 2 => 'name', 3 => 'parent', //4 => 'root_category', 4 => 'is_root_category', 5 => 'description', 6 => 'meta_title', 7 => 'meta_keywords', 8 => 'meta_description', //9 => 'url_rewrite', 9 => 'link_rewrite', 10 => 'image', 11 => 'shop', ), ); } function loadProductsPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '0', 'csv' => 'products_import.csv', 'convert' => '1', 'entity' => '1', 'separator' => ';', 'multiple_value_separator' => ',', 'forceIDs' => '1', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'id', 1 => 'active', 2 => 'name', 3 => 'category', 4 => 'price_tin', 5 => 'tax_rate', 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 => 'enabled_internet', 37 => 'state', 38 => 'shop', ), ); } function loadManufacturersPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '0', 'csv' => 'manufacturers_import.csv', 'convert' => '1', 'entity' => '5', 'separator' => ';', 'multiple_value_separator' => ',', 'forceIDs' => '1', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'id', 1 => 'active', 2 => 'name', 3 => 'description', 4 => 'short_description', 5 => 'meta_title', 6 => 'meta_keywords', 7 => 'meta_description', 8 => 'shop', ), ); } function loadSuppliersPost() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '0', 'csv' => 'suppliers_import.csv', 'convert' => '1', 'entity' => '6', 'separator' => ';', 'multiple_value_separator' => ',', 'forceIDs' => '1', 'import' => 'Importar datos CSV', 'type_value' => array ( 0 => 'id', 1 => 'active', 2 => 'name', 3 => 'description', 4 => 'short_description', 5 => 'meta_title', 6 => 'meta_keywords', 7 => 'meta_description', 8 => 'shop', ), ); } function loadCombinacionesPost() { $numero = count($_POST); $_POST = array ( 'tab' => 'AdminImport', 'skip' => '1', 'csv' => 'combinaciones.csv', 'convert' => '', 'entity' => '2', 'separator' => ';', 'multiple_value_separator' => ',', 'import' => 'Importar datos CSV', 'u' => '', 'type_value' => array ( 0 => 'id_product', 1 => 'group', 2 => 'attribute', ), ); } ?> A ver si alguien me echa una mano para adaptarlo a la 1.6 un Saludo
  7. I want to know is how to get the products sold by manufacturer in a query I'm doing a module to create users and manufacturers and I want to know how much each sells. I find the relationship between the manufacturer and ordering.
  8. Hi all, I'm trying to get sales tent manufacturer and backoffice statistics for a page in the store. It was if someone could lend me a cable that do not really know how to do it because they do not get the sales charts. I'm with the docu but not cleared me. Someone help me Greetings !!
  9. Hola a todos, estoy intentando sacar las ventas por fabricante de la tienda como en las estadísticas del backoffice para una pagina en la tienda.Era por si alguien me podía echar un cable porque no se muy bien como hacerlo ya que no se de que tablas sacar las ventas .Estoy con la docu pero no me aclaro.Alguien me echaría un cable Saludos!!
  10. Lo que esta en naranja lo genera solo ya que mi codigo es el que pone arriba . Con lo que me paso rafaelamargo se puede cambiar gracias
  11. Pero lo que no entiendo entonces es que si voy a contact-form ,contacta con nosotros, me aparece en castellano
  12. Hi all, to see if someone can help me solve this problem that has arisen me. I created a page in prestashop 1.6 in which you can upload files. Well the problem I encounter is when translating the input. I can not find where to translate it. It appears in English and I would like it in french: my code is this: <form action="index.php?controller=subefotoconfirmar" method="POST" enctype="multipart/form-data" > <p style="display:inline;margin-right: 10px;">Nombre de Usuario:</p><label>{$cookie->customer_firstname}{$cookie->customer_lastname}</label> <input type="hidden" id="" name="fecha" value="{$smarty.now|date_format:'%Y-%m-%d'}"> <p id="subimos2" style="margin-right: 10px;">Diseño</p> <div id="subir" style="display:inline-block;"> <input name="foto" type="file" style="display:inline;"/> <input type="hidden" name="MAX_FILE_SIZE" value="50000000" /> <input id="botonsube" type="submit" value="Subir" style="padding-bottom: 4px;padding-top: 5px;padding-left:40px;padding-right:40px;"> </form> and the code that generates: <form action="index.php?controller=subefotoconfirmar" method="POST" enctype="multipart/form-data"> <p style="display:inline;margin-right: 10px;">Nombre de Usuario:</p><label>Eduardodel val</label> <input type="hidden" id="" name="NombreUsuario" value="Eduardo del val"> <p style="display:inline;margin-right: 10px;margin-left: 34px;">Fecha:</p><label>04-09-2014</label> <br> <input type="hidden" id="" name="fecha" value="2014-09-04"> <p id="subimos2" style="margin-right: 10px;">Diseño</p> <div id="subir" style="display:inline-block;"> <div class="uploader"><input name="foto" type="file" style="display:inline;"><span class="filename" style="-webkit-user-select: none;">No file selected</span><span class="action" style="-webkit-user-select: none;">Choose File</span></div> </div> <input type="hidden" name="MAX_FILE_SIZE" value="50000000"> <input id="botonsube" type="submit" value="Subir" style="padding-bottom: 4px;padding-top: 5px;padding-left:40px;padding-right:40px;"> </form> You know where I can put the translation?
  13. Hola a todos, a ver si alguien puede ayudarme a solucionar este problema que me ha surgido.He creado una pagina en prestashop 1.6 en la cual se pueden subir ficheros.Pues el problema que me encuentro es a la hora de traducir el input .No encuentro donde traducirlo.Aparece en ingles: No file selected ---- Choose File Ademas mi codigo es este: <form action="index.php?controller=subefotoconfirmar" method="POST" enctype="multipart/form-data" > <p style="display:inline;margin-right: 10px;">Nombre de Usuario:</p><label>{$cookie->customer_firstname}{$cookie->customer_lastname}</label> <input type="hidden" id="" name="fecha" value="{$smarty.now|date_format:'%Y-%m-%d'}"> <p id="subimos2" style="margin-right: 10px;">Diseño</p> <div id="subir" style="display:inline-block;"> <input name="foto" type="file" style="display:inline;"/> <input type="hidden" name="MAX_FILE_SIZE" value="50000000" /> <input id="botonsube" type="submit" value="Subir" style="padding-bottom: 4px;padding-top: 5px;padding-left:40px;padding-right:40px;"> </form> y el codigo que genera: <form action="index.php?controller=subefotoconfirmar" method="POST" enctype="multipart/form-data"> <p style="display:inline;margin-right: 10px;">Nombre de Usuario:</p><label>Eduardodel val</label> <input type="hidden" id="" name="NombreUsuario" value="Eduardo del val"> <p style="display:inline;margin-right: 10px;margin-left: 34px;">Fecha:</p><label>04-09-2014</label> <br> <input type="hidden" id="" name="fecha" value="2014-09-04"> <p id="subimos2" style="margin-right: 10px;">Diseño</p> <div id="subir" style="display:inline-block;"> <div class="uploader"><input name="foto" type="file" style="display:inline;"><span class="filename" style="-webkit-user-select: none;">No file selected</span><span class="action" style="-webkit-user-select: none;">Choose File</span></div> </div> <input type="hidden" name="MAX_FILE_SIZE" value="50000000"> <input id="botonsube" type="submit" value="Subir" style="padding-bottom: 4px;padding-top: 5px;padding-left:40px;padding-right:40px;"> </form> Sabéis donde puedo poner la traducción? Un Saludo
×
×
  • Create New...