Jump to content

TheApprentice

Members
  • Posts

    44
  • Joined

  • Last visited

Profile Information

  • Location
    Elche, Alicante
  • Interests
    Más de 5 años de desarrollo web. Experto en Prestashop. Freelance.
  • First Name
    David
  • Last Name
    Ferriz

TheApprentice's Achievements

Newbie

Newbie (1/14)

5

Reputation

  1. Hi, I've seen you finally solved the conflict, could you tell us how do you solved it? Thank you in advance!. EDIT: Well, a nice solution could be to download again PrestaShop v.1.7.x (mine is 1.7.2.4) and replace your vendor folder by the original. This "bug" appeared to me when tried to update vendor packages.
  2. Buenos días, ¿Me podríais recomendar algún módulo para conectar Facturaplus/TPVPlus con Prestashop?
  3. Buenos días, Hay un módulo por ahí que he probado y está bastante bien, se llama Newsletter Pro. Creo que costaba por los 200 o 300 euros, pero por lo que tiene lo amortizas de sobra. Un saludo.
  4. Por mi experiencia te puedo decir que andas un poco equivocado, uno de mis clientes estuvo vendiendo a través de ése marketplace y te puedo asegurar que el 80% de los clientes realizaban la compra directamente desde Amazon, aún cuando el nombre del comerciante era directamente el dominio de la tienda y con 95% de valoraciones positivas. Por cierto el negocio es de artículos de informática. El problema que tienen muchos comerciantes con Amazon, es que si eres re-vendedor lo vas a tener jodido ya no por la competencia que hay entre vendedores de diferentes zonas sino porque el mismo Amazon vende sus productos al precio más bajo y para colmo si haces dropshopping la broma te va a salir cara (que levante la mano quien NO ha tenido problemas con los malditos EAN). Ya no sé ni a qué estaba respondiendo sólo se que Amazon es una buena herramienta si: Tienes un producto único. Tienes stock de producto, precio aceptable, el producto no lo tiene amazon y te curras el catálogo a mano. Un saludo y buen viernes.
  5. Buenos días Javi, En respuesta a tu pregunta, los archivos que debes de modificar son los que se encuentran en las carpetas /pdf/invoice.tpl o el /pdf/header.tpl, depende de dónde lo quieras poner. En cuanto a sacar el nombre del grupo del cliente, no estoy seguro, lo más probable es que te toque hacer un override de la clase HTMLTemplateInvoice.pdf. Si no controlas mucho de programación te lo puedo mirar.
  6. Yes, that's it I have PageCache module installe and it has a hook that calls that function with that query so I will contact to the developer to inform of the error, Gracias colega!
  7. Thank you for your reply but, as you can see I'm using native classes without overriding them. I know ps_feature has not id_product field, that's i can't understand and makes me crazy :S
  8. Hi guys, I'm having trouble with that function on Feature.php class. I'm trying to import new features to my prestashop but always next error is making me crazy: Fatal error: Uncaught Unknown column 'f.id_product' in 'on clause' SELECT DISTINCT p.id_product FROM ps_product p LEFT JOIN ps_feature f ON (f.id_product = p.id_product) WHERE f.id_feature = 453 thrown in /var/www/classes/db/Db.php on line 635 I don't know what I'm doing wrong, i google it looking for a possible bug in my PS version but nothing found (i'm using PS 1.6.0.9). I show you a part of my function: @ini_set('max_execution_time', 0); /** No max line limit since the lines can be more than 4096. Performance impact is not significant. */ define('MAX_LINE_SIZE', 0); /** Used for validatefields diying without user friendly error or not */ define('UNFRIENDLY_ERROR', false); /** this value set the number of columns visible on each page */ define('MAX_COLUMNS', 6); define('COLUMNS_SEPARATOR', '#'); define('ELEMENTS_SEPARATOR', ','); /** correct Mac error on eof */ @ini_set('auto_detect_line_endings', '1'); if (!defined('_PS_VERSION_')) exit; class Importador extends Module { ... ... ... public function updateProducts() { $defaultLanguageId = (int) Configuration::get('PS_LANG_DEFAULT'); self::setLocale(); $local_feed_products = dirname(__FILE__) . "/feed/products.xml"; if (file_exists($local_feed_products)) { if ($products = simplexml_load_file($local_feed_products)) { //Recorremos cada elemento del xml $upd_products = 0; $new_products = 0; $idsupplier = 0; $i = 0; foreach ($products->product as $item) { ... ... if ($id_product) { $product = new Product((int) ($id_product), false, $this->context->language->id, $this->context->shop->id); ... ... $product->update(); // Features import if (isset($item->features->feature) && !empty($item->features->feature)) { foreach ($item->features->feature as $single_feature) { $tab_feature = explode(':', $single_feature); $feature_name = trim($tab_feature[0]); $feature_value = trim($tab_feature[1]); $position = isset($tab_feature[2]) ? $tab_feature[2]: false; if(!empty($feature_name) && !empty($feature_value)) { $id_product = (int)$product->id; $id_feature = (int)Feature::addFeatureImport($feature_name, $position); $id_feature_value = (int)FeatureValue::addFeatureValueImport($id_feature, $feature_value, $id_product, $defaultLanguageId); Product::addFeatureProductImport($id_product, $id_feature, $id_feature_value); } } // clean feature positions to avoid conflict Feature::cleanPositions(); } } } } else { die('El archivo XML no se ha podido cargar'); //return false; } } else { die('El archivo XML no existe'); //return false; } } } I know the problem is on the Hook::exec('actionFeatureSave', array('id_feature' => $this->id)); in Feature::update() but i don't know why and exactly where... Can someone help me? Thank you in advance.
  9. That's because you should call FeatureCore as Feature (ye, i know it's and old post)
  10. No estoy muy seguro, le echaré un vistazo.
  11. Buenas tardes, ¿sabe alguien de algún módulo que me permita crear ofertas específicas dentro del catálogo de prestashop? Lo que queremos es poder hacer, por ejemplo, que un determinado producto lo podamos ofertar gratis por la compra de otro distinto o del mismo (aunque no lo tengamos en el catálogo). Algo así como: Compra un monitor dell y te regalamos el teclado X, y que esta información quede reflejada en la ficha de producto. ¿existe un módulo que no lo haga de forma cutre como añadirlo sólo en el carrito o pedido? Un saludo.
  12. Hi, Could you send a copy if your htaccess on your media server to compare with mine? I'm having troubles with that conf. Thanks in advance.
  13. Hi, I'm using PS 1.6.0.9 and I don't know if it's a bug or what... but PS can't find my subjects on email templates located on my theme. I'm speaking about the subject translation on non-core email templates... files located on MODULES/NAME_OF_MODULE/MAILS/ES I've tried next options: having in mind i've added in all lang.php the $_LANGMAIL values correctly and all permissions are correct (664 for files 775 for folders) Adding lang.php to /theme/modules/name_of_module/mails/es/ -> didn't work Adding "return $_LANGMAIL;" on all lang.php: /theme/mails/es/lang.php -> didn't work /theme/modules/name_of_module/mails/es/lang.php -> didn't work Removing the /theme/modules/name_of_module/mails and placing in /theme/mails with the lang.php -> didn't work I can only see and edit the subject on Core transalation but don't work on my theme. It's a bug? because i have the same problem with all modules in my theme. Thank you and merry christmas
  14. Hi guys, I'm editing homefeatured module to add a new functionality that makes easiest the addition of featured products. But im having trouble with the native function $db->executeS(): I have an array with all products references i want to make featured but when i try to make a SQL like this one: SELECT `id_product` FROM `ps_product` WHERE `reference` IN ( '90YV06I3-M0NA00 ', 'GT740-OC-1GD5 ', '90YV06P1-M0NA00 ', '90YV06P0-M0NA00 ', 'OH/RF0/NO ', 'OH/FE08/NP ', 'VA1917A ','90LM00F0-B02670 ', 'S2V-00018 ', '4460105 ', '2960762 ', '9239437 ', 'MCB43114S001/04/1 ', 'MCP1 ', 'MK1 ', 'MK2 ', 'CH-9000109-EU ','10NXMP0026002 ', '31010009102' ) LIMIT 0 , 30 i only get one result from the query (while on phpmyadmin im having 18 results)... i've tested that query on phpMyAdmin and works fine but not on prestashop... i have suspects that maybe is a problem about slashes but im not sure. Any idea?. Thanks in advance. EDIT: Sorry was a problem with EOL characters that broke the sentece. its all ok.
  15. Para los que sigáis teniendo el problema, os cuento mi solución: Tenía 2700 categorias y me petaba el apartado de asociaciones, como mi server (un VPS en OVH) no me admitia los php.ini he ido al index.php del backoffice y he añadido ini_set('memory_limit', '256M'); Asunto arreglado.
×
×
  • Create New...