Search the Community
Showing results for tags 'class'.
-
I need to parse any variable passed to any static page in Prestashop and replace anything that starts with "http" (in plain text) with "a href"s. I already have the regular expression but I need to know how can I do that using a module without modifying the core functions and without using override...
-
Hola, logré desarrollar una sincronización entre un ERP y Prestashop mediante los webservice, Instalé un módulo de cotizaciones para Prestashop, y quiero desarrollar un webservice que me permita obtener dichas cotizaciones. He visto la documentación oficial, y en los foros,...
-
- webserive
- prestashop
-
(and 2 more)
Tagged with:
-
Hello everyone, i need some help please. So i initially created a backup of my website to copy my site and create one test environnement etcc ... in another domain i had many error but finally it works but only in debug mode when i disable it it gives me a blank page with nothing, also when it...
-
Hi everyone, I'm currently trying to override a module to adapt it to the functioning of the site. The goal would be to override a custom class ModuleClass from this module (located in /modules/<module>/classes/ModuleClass.php) which extends ObjectModel. I tried this by putting an override...
-
- override
- custom class
-
(and 2 more)
Tagged with:
-
Hello, I built up a module which was seeming to work quite fine on product page load, but I'm getting an error when selecting a product variant: ClassNotFoundException Attempted to load class "MyModule" from the global namespace. Did you forget a "use" statement? With the module, I'm ove...
- 1 reply
-
- classnotfoundexception
- class
-
(and 1 more)
Tagged with:
-
Hi, I overrided Product class, added a new attribute and overrided getproducts function from cart class. I need this attribute in cart-detailed-product-line.tpl. I tried to access it with {$product.my_attribute} but it doesn't work. And when I try {var_dump($product)} I can see my attribute, h...
- 11 replies
-
- class
- controller
- (and 6 more)
-
Hi, i would like visible only on mobile version a link, i try very much possibility like this post https://www.prestashop.com/forums/topic/384777-solved-hide-left-column-on-mobile/ and this table : Available classes Use a single or combination of the available classes for...
-
Buenos dias o tardes o noches, buenas para tod@s He intentado actualizar mi Prestashop 1.6.0.6 y como ha fallado he vuelto atrás y resulta que puedo acceder a todo menos a los productos donde me sale el siguiente error: "Fatal error: Class 'TreeCore' not found in /var/www/vhost/bretones.com/home...
-
Hello, I'm trying to add some variable to the product-list.tpl but I'm not able to achieve this. I have tried some things... First in my tpl file I added: {$product.msolla|var_dump} {$msolla|var_dump} And I updated \controllers\front\ProductController.php, function initConten...
- 5 replies
-
- product-list.tpl
- controller
-
(and 2 more)
Tagged with:
-
Hi all, How can I create a new method in a class? I need a new method in the Link class to get a secundary image. I tried an override but it didn't work. Any help? Cheers!
- 1 reply
-
- prestashop1.7.5.1
- override
-
(and 1 more)
Tagged with:
-
Hi, we have tried to upgrade our PrestaShop in test from 1.7.1.1 to 1.7.3.0 using the upgrade module. After that the site doesn't work anymore, it displays error 500. We have set the debug mode and we see this: Warning: include(/var/www/html/sito/vendor/composer/../../src/Adapte...
- 2 replies
-
- aggiornamento
- class
-
(and 1 more)
Tagged with:
-
en prestashop 1.7 me encontré una clase que esta en src/prestashopbundle/command/UpdateLicensesCommand.php dentro de el viene viene esto me imagino que de aquí es donde toma los archivos para la licencia de prestashop pero si lo modifico y instalo no pasa nada como mando llamar a es...
-
Buenas he subido mi web de prestashop de local a remoto. La web me va bien pero al entrar en el backoffice me sale el siguiente error. error: Cannot declare class Symfony\Component\HttpFoundation\ParameterBag, because the name is already in use in /var/www/vhosts/43/228619/webspace/http...
-
- backoffice
- parameterbag
-
(and 4 more)
Tagged with:
-
Hello Community i am using prestashop 1.7, I have a 30 000 to import in prestashop, so i want to do it automatiquely into Database. The problem is how to resize the images of my product automaticly us the 5 type of images in prestashop. I wanna know witch class is responsible of resizing image...
-
Hello out there, Prestashop version: 1.6.1.19 I have a problem with allowing orders where products are not in stock. I selected the setting 'displayed text when backordering is allowed' so it is allowed to order products which not are in stock. But heres the problem -...
- 1 reply
-
- out of stock
- class
- (and 4 more)
-
Hello, i'm starting with prestashop, and however i already scanned the documentation link and made some searchs, i couldn't find the answer for this doubt of mine. So, if anyone could help me i would be really glad. In this first days of contact with prestashop, i have found some el...
-
Hi, I want to make changes to this file /tools/minify_html/minify_html.class.php Is there a way I can override this file so the changes are permanent even with upgrading prestashop? I'm using version 1.6.1.10. Thanks
-
Hey everyone, I'll to start by saying that I'm new to Prestashop development. Just downloaded the dev branch So here is my problem. I'm currently working on a project that will allow me to replace the products being displayed in the shop (that are being fetched from Prestashop database) and get t...
-
Hi, I want to know what will be valiation class for comma separated data saving in table. For example 1,2,5,9 like this. Some of the validation class are isString,isBool,isGenericName,isBool. I tried isInt and isString but both not working and gives invalid values error. Any Ide...
- 1 reply
-
- validation
- class
-
(and 2 more)
Tagged with:
-
Hi, Version used PS: 1.6.1.17 I notice a strange behavior with the method Group::getCurrent() in core class GroupCore that retrieve the current default group of the user context. To reproduce the issue : Create a category, and assign to only default group (means only users with...
-
Hi, I have multi-select drop down option and it is working fine. I am storing values in database like "1,2,3". I was having 'validate' => 'isString' validation in class file for field. Since field values now change, so this validation not working. I want to know validation class...
-
- class
- validation
-
(and 2 more)
Tagged with: