
ABCDino
New Members-
Posts
17 -
Joined
-
Last visited
Everything posted by ABCDino
-
En mode débug, je m'aperçois que j'ai le message d'erreur suivant: PHP Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /C:/wamp64/www/monsite/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 275 J'ai pourtant tout le site en https avec un certificat SSL que j'ai créé moi-même (auto-signé). Il est renseigné dans les certificats de windows, et wamp à bien le module "Apache" > "Modules pour apache" > "ssl_module" Que me manque t-il pour faire fonctionner ce mail test en SMTP ? Je n'arrive pas à voir où prestashop récupère le certificat ...
-
Bonjour, J'ai configuré sur l'arrière boutique de prestashop le smtp pour gmail. Le test d'envoie de mail ne fonctionne pas (un indicateur tourne en rond sur lui même indéfiniement) D'où cela peut-il bien-venir ? Merci
-
Modifier Ajout Panier [Résolu]
ABCDino replied to ABCDino's topic in PrestaShop pour les développeurs
[SOLUTION] Suite à la mise en place de l'URL non simplifié, (arrière-boutique->préférences->Traffic et SEO->URL simplifié = NON) j'ai pu voir que l'URL se transforme ainsi http://localhost/monsite/panier ==> http://localhost/monsite/index.php?controller=cart J'ai donc pu modifier /controllers/front/CartController.php pour ajouter les champs qui me conviennent, en s'inspirant de ce qui existe déjà. Merci à vous [SOLUTION] -
Bonjour, Sur prestashop 1.7, un produit est ajouté au panier grace à un bouton. C'est un formulaire dont le code HTML ressemble à <form action="http://localhost/monsite/panier" method="post" id="add-to-cart-or-refresh"> <input type="hidden" name="token" value="559b0bbb4cdhewlc7eb88c02b239497e"> <input type="hidden" name="id_product" value="1" id="product_page_product_id"> <input type="hidden" name="id_customization" value="0" id="product_customization_id"> <div class="product-variants"></div> <div class="product-add-to-cart"> <span class="control-label">Quantité</span> ... <div class="add"> <button class="btn btn-primary add-to-cart" data-button-action="add-to-cart" type="submit"> Ajouter au panier </button> </div> ... </div> </form> Je souhaiterai modifier ce formulaire (rajouter un champ 'hidden'). Mais je ne trouve pas le fichier php qui traite le formulaire ! Merci de votre aide
-
Hi, I want MyModule to register his tab (done) so it can be collapsed and expanded (todo). See the tabs like 'catalog', or 'order settings' to give you an idea. Thanks !
-
Hi Sir, Have you tried to edit your php configuration file ? (id est php.ini). Indeed cURL is a library for php, so you must configure your server's php settings. Here's a tutorial http://www.tomjepson.co.uk/enabling-curl-in-php-php-ini-wamp-xamp-ubuntu/ EDIT: btw, you should rename this topic from 'cURL' to 'Enabling cURL', to help other.
-
You can retrieve DataBase information via $query = 'SELECT * FROM myTable'; $rowsList = Db::getInstance()->executeS($query); You can use a helper to display your form, in the same way you would do in a module. $helper = new HelperForm(); ... $fields_form = ... ... return $helper->generateForm($fieldsForm);
-
Hi ! I would like to know if in a form of a module (or in a controller) $query = 'SELECT * FROM myTable'; $myQsqlQuery = Db::getInstance()->executeS($query); $this->fields_form = [ 'input' => [ [ 'name' => 'configure', 'label' => $this->module->l('Configuration'), 'type' => 'select', 'options' => [ 'query' => $mySqlQuery, 'id' => 'id', 'name' => 'name' ] ] ], ... If we can manage to have the possibility to select a NULL value. Of course I don't want to create a row in my table entitled 'NULL'. Thanks for your suggestions.
-
Hi, I am creating a front controller for MyModule, but I have an error. Fatal error: Class 'ModuleFrontController' not found Curently, my file is : <?php /* MyModule/controllers/front/MyController.php */ class MyModuleMyControllerFrontController extends ModuleFrontController { public function __construct() { parent::__construct(); } public function initContent() { parent::initContent(); } } Any idea ?
-
Here is another error message for the same error : Compile Error: require(): Failed opening required 'C:\wamp64\www\PrestaShop-1.7.6.x\var\cache\dev\ContainerAzxpjaj\removed-ids.php'(include_path='C:\wamp64\www\PrestaShop-1.7.6.x\vendor/pear/pear_exception;C:\wamp64\www\PrestaShop-1.7.6.x\vendor/pear/console_getopt;C:\wamp64\www\PrestaShop-1.7.6.x\vendor/pear/pear-core-minimal/src;C:\wamp64\www\PrestaShop-1.7.6.x\vendor/pear/archive_tar;.;C:\php\pear') in appDevDebugProjectContainer.php line 1685 at appDevDebugProjectContainer->getRemovedIds()in Container.php line 184 at appDevDebugProjectContainer->set()in Kernel.php line 585 at AppKernel->initializeContainer()in Kernel.php line 135 at AppKernel->boot()in Kernel.php line 195 at AppKernel->handle()in index.php line 86 at {main}()in index.php Here is the Apple of discord : I was developping a Module when the error trigerred. I can confirm it was in my Objects Models $definition, when I set " 'multilang' => false ". The cache remember langage settings, but is not updated on time. So you might also delete the /var/cache folder (it will be recreated automatically) if this happens. I hope this will help you.
-
Hi everyone, The full error is : Warning on line 2237 in file C:\\wamp64\\www\\PrestaShop-1.7.6.x\\classes\\controller\\AdminController.php [2] Use of undefined constant CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST - assumed 'CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST' (this will throw an Error in a future version of PHP) Warning on line 2237 in file C:\\wamp64\\www\\PrestaShop-1.7.6.x\\classes\\controller\\AdminController.php [2] file_get_contents(C:\wamp64\www\PrestaShop-1.7.6.xCACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST): failed to open stream: No such file or directory Notice on line 2258 in file C:\\wamp64\\www\\PrestaShop-1.7.6.x\\classes\\controller\\AdminController.php [8] Undefined variable: country_module_list_xml Notice on line 2258 in file C:\\wamp64\\www\\PrestaShop-1.7.6.x\\classes\\controller\\AdminController.php [8] Trying to get property 'module' of non-object My config is : _Prestashop 1.7.6.0 _WAMP server What I have already try (without success) is : _check file exists, and have permissions _Delete /config/xml/default_country_modules_list.xml ==> File is recreated automatically, the error remains the same I was working on something else (a Module, so I unsitalled it and did not see any change) Your help is welcome, thank you.
-
[SOLVED] Display content on Admin side
ABCDino replied to ABCDino's topic in Addons, modules and themes developers
I still have not understand the man pages : https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/ https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/tabs/ But here's a great [FR] tutorial on how to do it : https://www.h-hennes.fr/blog/2018/11/15/prestashop-admincontroller-pour-un-module/ Thanks so much H.Hennes. -
Hi ! I am creating a module for Prestashop 1.7.6 I would like to : _create an Admin page with my own html code, _and have a tab registered on the left pannel to access that Admin page. I have to use these ressources : https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/ https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/tabs/ But I don't understand and need your help. Shall my class in controllers/admin/MyController extends ModuleAdminController and FrameworkBundleAdminController ? In which funtion can I ask for $this->render or $this->display ? Thank you for helping me to understand..