
PrestAlec
New Members-
Posts
12 -
Joined
-
Last visited
Everything posted by PrestAlec
-
Estamos igual Bienvenido 脕lvaro.
-
Hello! In the Top Menu I needed to limit the Categories detail level to 1, and I found solutions only for prior versions of my PrestaShop version. I'm no expert coder at all, so please be kind... may be I performed major surgery instead being a bit more gentle 馃檭 -- PS ver 1.7.6.8 -- Theme: Classic 1.0.0 -- File: modules/ps_mainmenu/ps_mainmenu.php -- Line 715 protected function "generateCategoriesMenu" -- Disabled (commented) lines 746 to 761 as follows /*if (isset($category['children']) && !empty($category['children'])) { $node['children'] = $this->generateCategoriesMenu($category['children'], 1); if ($this->imageFiles === null) { $this->imageFiles = scandir(_PS_CAT_IMG_DIR_); } if (count(preg_grep('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $this->imageFiles)) > 0) { foreach ($this->imageFiles as $file) { if (preg_match('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1) { $image_url = $this->context->link->getMediaLink(_THEME_CAT_DIR_.$file); $node['image_urls'][] = $image_url; } } } }*/ -- Advanced Parameters, Performance, Smarty -> Save -- Just in case, hit "Clear Cache" top right button -- Tested, Worked for me! Hope this can help. Bye.
-
top horizontal menu - max level depth
PrestAlec replied to oslayer's topic in Addons, modules and themes developers
Hello! I have posted this in other thread which discuss same problem: FIXED In the Top Menu I needed to limit the Categories detail level to 1. I'm no expert coder at all, so please be kind... may be I performed major surgery instead being a bit more gentle 馃檭 -- PS ver 1.7.6.8 -- File modules/ps_mainmenu/ps_mainmenu.php -- Line 715 protected function "generateCategoriesMenu" -- Disabled (commented) lines 746 to 761 as follows /*if (isset($category['children']) && !empty($category['children'])) { $node['children'] = $this->generateCategoriesMenu($category['children'], 1); if ($this->imageFiles === null) { $this->imageFiles = scandir(_PS_CAT_IMG_DIR_); } if (count(preg_grep('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $this->imageFiles)) > 0) { foreach ($this->imageFiles as $file) { if (preg_match('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1) { $image_url = $this->context->link->getMediaLink(_THEME_CAT_DIR_.$file); $node['image_urls'][] = $image_url; } } } }*/ -- Advanced Parameters, Performance, Smarty -> Save -- Just in case, hit "Clear Cache" top right button -- Tested, Worked for me! Hope this can help. -
Top horizontal menu limits
PrestAlec replied to coreygun's topic in Configuring and using PrestaShop
Hello! I had the same problem, in the Top Menu I needed to limit the Categories detail level to 1. I'm no expert coder at all, so please be kind... may be I performed major surgery instead being a bit more gentle 馃檭 -- PS ver 1.7.6.8 -- File modules/ps_mainmenu/ps_mainmenu.php -- Line 715 protected function "generateCategoriesMenu" -- Disabled (commented) lines 746 to 761 as follows /*if (isset($category['children']) && !empty($category['children'])) { $node['children'] = $this->generateCategoriesMenu($category['children'], 1); if ($this->imageFiles === null) { $this->imageFiles = scandir(_PS_CAT_IMG_DIR_); } if (count(preg_grep('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $this->imageFiles)) > 0) { foreach ($this->imageFiles as $file) { if (preg_match('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $file) === 1) { $image_url = $this->context->link->getMediaLink(_THEME_CAT_DIR_.$file); $node['image_urls'][] = $image_url; } } } }*/ -- Advanced Parameters, Performance, Smarty -> Save -- Just in case, hit "Clear Cache" top right button -- Tested, Worked for me! Hope this can help. -
Error configurando MercadoPago - Argentina
PrestAlec replied to pfontana2014's topic in Discusi贸n general
Actualizaci贸n: hice la consulta a MercadoPago, y result贸 ser un error de su versi贸n 4.2.0. Me enviaron un patch y funcion贸 perfecto. Solucionado! Gracias a todos, saludos. -
1.7.2 How to add picture as a full background?
PrestAlec replied to ignasmilin's topic in Looking for a module or a theme
Update: I have just find my problem. I have been using this path "../img/image-name.jpg" since the beginning. I now tried with the image's full URL (https://www.mydomain.com/img/image-name.jpg) and it now works. What I still don't know is why in my case the relative path does not work... ;( Fixed! Thanks anyway. -
Error configurando MercadoPago - Argentina
PrestAlec replied to pfontana2014's topic in Discusi贸n general
Pudiste resolver este problema de las credenciales? Me servir铆a tu info, gracias! -
Error configurando MercadoPago - Argentina
PrestAlec replied to pfontana2014's topic in Discusi贸n general
Ah ok, Manu, mi problema es como el que se detalla al abrir este thread, es decir yo no vengo de 2.1.1, sino que arranco desde la instalaci贸n desde cero de la 2.4.0 y surge el error. Bueno, gracias de todos modos por tus respuestas! Saludos. -
Error configurando MercadoPago - Argentina
PrestAlec replied to pfontana2014's topic in Discusi贸n general
Manu, gracias por tu r谩pida respuesta. Si, la ver 4.2.0 es la que ya tengo y es la que me d谩 el error. Ser谩 mucha molestia que me indiques c贸mo resolviste su problema de las Credenciales? Gracias. -
Error configurando MercadoPago - Argentina
PrestAlec replied to pfontana2014's topic in Discusi贸n general
Hola. Tengo el mismo problema. Me interes贸 tu soluci贸n temporal de instalar la ver 4.1.1 primero y luego hacer el upgrade. Pero no encuentro la 4.1.1 para bajarla. Vos me podr谩s indicar de d贸nde la bajaste? Desde ya muchas gracias! -
1.7.2 How to add picture as a full background?
PrestAlec replied to ignasmilin's topic in Looking for a module or a theme
Hi there! I'm using: - Prestashop ver 1.7.6.8 - Cache dissabled - Classic Theme ver 1.0.0 I had changed the background of Shop_1 in this exact way, and it worked just fine. Then I did the same with another one, Shop_2, (different instance, exactly same Softaculous installation), but it doesn't work... I have been looking around Prestashop's Forum and the rest of the web, for the last 3 days and nothing works. Despite the fact that both installations are the same (so they should not have different configurations that I'm aware of), I had to start testing unreasonable items: -- changed .jpg by .png formats, -- checked image file permissions, -- downsized the images, -- added other modifiers (background color) to custom.css to check the file was doing his job (it does), -- changed the custom.css in the browser debugger live to see the changes, -- even modified the #wrapper section in the theme.css in the browser debugger live (like shows the uploaded image) I'm completely lost (as a good newbie should be hahaha). Anyone can help? Thanks! -
Hola a todos. Soy Alec, y hace un par de semanas que he incursionado por primera vez en PrestaShop. Saludos!