Jump to content

serpeal79

Members
  • Posts

    28
  • Joined

  • Last visited

Profile Information

  • First Name
    Sergio
  • Last Name
    Pérez

serpeal79's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. La solución que se da en este hilo no borra el paso intermedio del módulo bankwire o transferencia bancaria, lo único que hace es no mostrar los datos. Para "borrar" o saltarse, más bien, el paso intermedio, la solución la doy en este otro hilo: Saludos.
  2. Hola a tod@s. Yo también he tenido que eliminar el paso intermedio. La solución la da "nadie", lo que ocurre es que el hombre se ha equivocado "en parte" y si no te das cuenta no funciona. Él dice: Y está mal. Lo que tienes que hacer es cambiarlo por esto: href="{$link->getModuleLink('bankwire', 'validation')|escape:'html'}" Esto funciona, o por lo menos a mi me ha funcionado. Ojo, también te dice "nadie" en el postdata que si tu template sobreescribe el módulo, en lugar de buscar en modules/bankwire/ tienes que buscar en themes/tutemplate/modules/bankwire. Esto hay que tenerlo en cuenta también. Espero ahorrarle 60 Eurazos a alguien. Y eso es todo amig@s!
  3. Hola nadie. He probado el módulo y le he encontrado dos fallos. El primero es que cuando estás en la ficha del producto en la pestaña "Customer Group Permission" y tiras a quitar permisos para un grupo, el módulo quiere borrar entradas de la tabla ps_ps_product_permission. Viendo la base de datos (y sin verla) se ve que sobra un "ps_". Borrando yo a mano en la base de datos entradas veo que el módulo me ha funcionado en local donde NO tengo habilitadas las friendly urls. He probado el módulo en una web donde sí que están activadas las friendly url y no funciona. Es una p#tada porque el módulo hace exactamente lo que quiero siendo gratis. Si echara un vistazo al código supongo que podría solucionar fácilmente el tema del "ps_" de más, pero lo de que no funcione con las frieldy url activadas.... eso ya son palabras mayores para mi. He localizado este módulo en la web de addons: https://addons.prestashop.com/es/gestion-clientes/27401-limitar-productos-a-grupos-de-clientes.html Curiosamente está desarrollado únicamente para Prestashop 1.6. Pudiera ser que alguien se haya apropiado del módulo gratuito y pretenda hacer cash con él. Le he preguntado al desarrollador si funciona tanto con las friendly url activas como sin ellas. Cuando me responda actualizaré mi post. [ACTUALIZACIÓN]: la respuesta del desarrollador: "Nuestro módulo debería funcionar con las friendly URIs sin problema. De todas formas, si llega a darle algún problema en su instalación de PrestaShop le devolvemos el dinero según lo solicite." Huele a que han subido el módulo gratuito y ale, a cobrar. Cualquier otro desarrollador hubiera dicho "Si tiene cualquier problema le ayudamos a resolverlo". Volviendo al módulo gratuito, si pudieras echar una mano para solucionar este problema del módulo (friendly urls) te lo agradecería... y la comunidad también, por supuesto. Gracias por adelantado!
  4. Hi again. I've copied the function hasChildren() from classes/Category.php to override/classes/Category.php and then I got another Fatal error with the function getAllCategoriesName(), so I copied that function as well.... and then everything worked fine. I've solved the errors I got but it would be nice to know if there's a way to know which module put the class X into the override directory, which is in fact the question of this topic. Kind regards.
  5. Hi everybody. I've just upgraded from 1.6.0.14 to 1.6.1.18 and now when I get into Catalog->Products I get this error: Fatal error: Call to undefined method Category::hasChildren() in /home/serpeal/public_html/ibizasound/classes/helper/HelperTreeCategories.php on line 71 I've checked that classes/Category.php has the method hasChildren(), so I've seen that there's a override/classes/Category.php inside the overrides directory which doesn't have that method. I've read the code of override/classes/Category.php but there's no clue on which module put it there. I can set "Allow overrides" to off in "Advanced parameters"->"Performance" but then I guess some modules won't work properly. Is there any way to know which module put Category.php into overrides? I've been updating my already bought modules and I've had a problem with gsnippetsreviews. I get the same fatal error when trying to configure the udpated module, so I guess the problems is dealt with it, but I have no idea on how to solve this. If I set "Allow overrides" to off I'll get other modules not working properly. I've thought in copying the function hasChildren() from classes/Category.php into override/classes/Category.php Any ideas? Thanks in advance.
  6. Hi people. I have a shop with prestashop 1.6.0.14 with lots of addons that I've bought since I started (21 addons). I know that the latest stable version of the 1.6.x prestashop line is 1.6.1.18 and so I think I should upgrade to that one, but the thing is that I've never did a prestashop upgrade before and since I have lots of addons I'm afraid that upgrading would be worst than keeping my version. I'm planning to create a local copy and test the upgrade before doing it in the server, but before doing that job I wanted to hear some suggestions from you the community. I may be worried for something that is not that hard. What do you suggest me? Do I try the upgrade or Should I keep my version? Thanks in advance.
  7. Hi. Investigating a little bit more now I know that the links at the top right are displayed by the module "blockuserinfo". I've updated that module and everythings goes on the same way. I've opened blockuserinfo.tpl and I've found the code that displays the logout link: <a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log me out' mod='blockuserinfo'}" class="logout" rel="nofollow">{l s='Sign out' mod='blockuserinfo'}</a> How can I modify to always show the link: www.ibizasound.es/index.php?mylogout= Instead of www.ibizasound.es/?mylogout= Thanks in advance.
  8. Hi. Today something really weird happend to me related with my prestashop website. The last three or four weeks, when I opened my website's url in my browser (firefox) I was logged as a customer X. I've helped customers to create an account in the past, so I just tought it was that the cookies still had the data of the last customer I helped and so I didn't took too much care about it. In this four weeks I've been receiving orders properly... But today, one customer called me saying that he was also logged as user X (the same user that I) and he could see all the data of the user, and furthermore, he could'nt log out. So I tried to log out and so I couldn't. I deleted the cookies and then I could log in as my test user, but again I couldn't log out! I must say everything was working fine till now. I've also tried removing a module I recently installed and nothing (zoopim chat free). Now I should tell you some data... my website is a Prestashop 1.6.0.14 version, and my website is https://www.ibizasound.es I've tried to delete cache and nothing. I've tried to turn cache off and nothing. I've tried turning friendly urls.... and it worked¿?¿?¿ www.ibizasound.es/?mylogout= www.ibizasound.es/index.php?mylogout= And that link worked. It worked even if I turned the friendly urls on again, tought the not working link is still being displayed. But this has never been a problem before so I wonder how to solve it. And this doesn't explain the issue of other customers seeing the X customer's account details!! I still have the problem with the log out link and I have no idea how to test the issue with the X customer to check what happens. Any help would be VERY, VERY appreciated. Thanks in advance.
  9. Hi. I've just installed the productscategory module which shows by default 30 products from the same category in all products pages. The thing is that it is shown as a tab in my products page but I'd like it to be shown out and down of the tabs block. I guess that I have to do something with the hooks, but I don't know how it works. Just to try I've removed it from displayFooterProduct and then it doesn't show in the tab section but it also doesn't show anywhere. I guess that I have to "attach" it to other hook, but I don't know which one neither how to do it. Any help? I have prestashop 1.6.0.14. Thanks in advance.
  10. Hi. I've modified the function generateCategoriesMenu in blocktopmenu.php in order to add categories photographs on top of categories names. This is the site (Prestashop 1.6.0.14): http://www.djstore.es The things is that categories are unaligned, I mean, there are lines with 5 categories, lines with 3, lines with 1, and I don't understand why. I would like each line to have the maximun categories it can contain. This is my generateCategoriesMenu code: protected function generateCategoriesMenu($categories, $is_children = 0) { $html = ''; foreach ($categories as $key => $category) { if ($category['level_depth'] > 1) { $cat = new Category($category['id_category']); $link = Tools::HtmlEntitiesUTF8($cat->getLink()); } else $link = $this->context->link->getPageLink('index'); $html .= '<li'.(($this->page_name == 'category' && (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>'; /* sergio - this code show categories images on top of categories names in top menu */ $html .= '<a href="'.$link.'" title="'.$category['name'].'">'; if ((int)$category['level_depth'] > 2) { $files = scandir(_PS_CAT_IMG_DIR_); if (count($files) > 0) { foreach ($files as $file) if (preg_match('/^'.$category['id_category'].'.jpg/i', $file) === 1) $html .= '<div><img src="'.$this->context->link->getMediaLink(_THEME_CAT_DIR_.$file) .'" alt="'.Tools::SafeOutput($category['name']).'" title="' .Tools::SafeOutput($category['name']).'" class="imgm" /></div>'; } } $html.=$category['name'].'</a>'; /* end sergio */ // Uncomment the line below to leave the original code. //$html .= '<a href="'.$link.'" title="'.$category['name'].'">'.$category['name'].'</a>'; if (isset($category['children']) && !empty($category['children'])) { $html .= '<ul>'; $html .= $this->generateCategoriesMenu($category['children'], 1); if ((int)$category['level_depth'] > 1 && !$is_children) { $files = scandir(_PS_CAT_IMG_DIR_); if (count($files) > 0) { $html .= '<li class="category-thumbnail">'; foreach ($files as $file) if (preg_match('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1) $html .= '<div><img src="'.$this->context->link->getMediaLink(_THEME_CAT_DIR_.$file) .'" alt="'.Tools::SafeOutput($category['name']).'" title="' .Tools::SafeOutput($category['name']).'" class="imgm" /></div>'; $html .= '</li>'; } } $html .= '</ul>'; } $html .= '</li>'; } return $html; } Any ideas? Thanks in advance. Sergio
  11. Thanks, eruvier29. I haven't tried yet, but sure it will work. Kind regards.
  12. Hi, Paul. Thanks for your reply. I knew this method, but I meant something automatic, like modifying the select code to change the ORDER BY statement for cl.'name' instead of position (I have more than 1k categories). Thanks in advance.
  13. Hi! I've managed to order the topmenu subcategories by name and also the categories list by name (in the left column), but I don't know how to order the subcategories grid by name. See this link: http://www.djstore.es/iluminacion_36.html Categories in the left column are ordered by name. Categories in the Top Menu are ordered by name, but the grid in the middle is ordered by position. Where's the code to change this? Thanks in advance. Kind regards.
  14. Hi. Thanks for your reply. The new machine is faster and has more resources than the old. If I've copied everything from the source machine, so performance should be at least the same, don't you agree? I had already debuggin enabled, but I'm not sure where to read logs.... Apache logs do not show anything /var/log/apache2/error.log define('_PS_MODE_DEV_', true); define('_PS_DEBUG_PROFILING_', true); Where should I look at? Thanks in advance. PS: I forgot to mention that backoffice works fine, my problem only happens in frontend.
  15. Hi, good afternoon. I have a local copy of my prestashop store and I want to move it to another computer in the same lan. It seems that everything is OK, but when I click in any link it takes about 20s to load the page. I'm working with linux (ubuntu) computers and I have a prestashop 1.6.14 shop. This is what I've done: 1.- Tarball all the prestashop tree. Send it to the other computer and untar. 2.- Give recursive write permissions to: ~/config/, ~/cache/, ~/log/, ~/img/, ~/mails/, ~/modules/, ~/override/, ~/themes/default/lang/, ~/themes/default/pdf/lang/, ~/themes/default/cache/, ~/translations/, ~/upload/, ~/download/, ~/sitemap.xml 3.- Modify config/settings.inc.php with new data. 4.- Copy the mysql ddbb to the new computer. 5.- Changes propper fields in ps_configuration and ps_shop_url to link to the new computer. 6.- Regenerate .htaccess. After that everything works in the new computer, but links take 20s to load. Any ideas? Thanks in advance.
×
×
  • Create New...