Search the Community
Showing results for tags 'entity'.
-
Bonjour, J'ai créé un module dans PrestaShop 8.1 où je déclare la class VirtualProductExternalLink extends \ObjectModel dans le dossier /src/Entity/ . J'ai fait un override GetFileController.php du controller GetFileControllerCore placé dans le dossier override/controllers/front/ du module (à l'installation du module ce fichier est placé dans le dossier /override/controllers/front/ de PrestaShop) Dans cet override je souhaite instancier un objet VirtualProductExternalLink avec $external_link = new VirtualProductExternalLink($id_product); mais j'ai l'erreur Uncaught Error: Class "VirtualProductExternalLink" not found. Au début du fichier de l'override, j'ai indiqué : use ProductVirtualExternalFile\Entity\VirtualProductExternalLink; ou encore include_once _PS_MODULE_DIR_.'productvirtualexternalfile/src/Entity/VirtualProductExternalLink.php'; mais j'ai la même erreur. Comment puis-je créer un objet déclarer dans le module depuis mon override du controller ? Merci des informations. Cordialement
-
According to this link , it says that it's recommended to create new tables for new module. Is it true about the existing entities? (like customer, cart, product etc.) I think we should not create new tables for somethings like these cases, and we should modify the existing tables (e.g to add a field to customer table). Is it true? And when we modify the existing tables, should we override the classes? (e.g we want to add a field to customer, should we modify the corresponding class for customer- for active records)
-
First of all guys, I want to tell everyone I've checked all similar posts here and in other websites, and that I'm my own host. I work in a place where we got our own servers and we got our own configs. The thing is I just joined them and I'm a novice. I'm not yet working for them. I'm just learning, and I'm supposed to learn "alone" or from the internet, and here is where you guys come in. Whenever I go into the module blocks translations and try to change and then save something, I got the following error: Request Entity Too Large The requested resource /bike/prestashopbo/adminshop/index.php does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit. What I did is to go the plesk that we've got, (Like a Control Panel), I went to the PHP Config and I switched the "memory_limit", the "post_max_size" and the "upload_max_filesize" to high values like "2048M","500M","250M" for example. I even tried higher values and a "-1" memory_limit which means Infinite. The thing is I still keep getting the error, don't understand what's happening. Any ideas? Thanks in advance,
-
HTML entity on Prestashop 1.4.10.0
sparhawk posted a topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
I installed the latest version Prestashop 1.4.10.0. I gave Store name Testíček. In the source code I get the <title>Testíček</title>. Entities appear in the title of products and categories. I need to display Czech characters in the source code without entities. Can you help me please to remove entities?- 10 replies
-
- entity
- htmlentity
-
(and 1 more)
Tagged with: