Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Hi everyone, I'm trying to create myfirst module and I'm pretty new to programming too. I can't find any good information for my qüestions. I started by downloading the starter module generator template. 1st of all, I don't know where to place my query should it be into a new public function or inside getConfigFormValues() --- here is where I've got some tiny but wrong results $query = 'SELECT reference FROM `'._DB_PREFIX_.'product` WHERE `price` < 39; $arV = Db::getInstance()->executeS($query) return array('arV' => $arV) 2nd I'd like to create a list (table or select/option panel) with those results so I could chose 1 of them. My main problem is that I only achieved to get the last result into a textarea. My concern is, should I keep trying to get them from PHP file o trying something to call the result from configure.TPL file? Any help or guidance would be appreciated. Thanks in advanced
  3. Today
  4. Déjà faudrais savoir quels sont les permissions sur le dossier module un screen peu être ? Ensuite sa indique quoi quand quand vous allez dans le bo -> module ? Et et quel est le nom du module que vous avez utiliser ? Aussi ton cache comment est il configurer ? Paramètre avancé-> performance screen aussi stp
  5. Non, je ne donne aucun accès 😕 Je veux seulement des explications si vous savez comment faire, sinon non
  6. Pour le module le voici : https://addons.prestashop.com/fr/migration-donnees-sauvegarde/8934-outil-de-mise-a-niveau-et-de-migration-de-prestashop.html il est super simple d’utilisation mais il faut surtout bien suivre la documentation. precaution : sassurer que les modules est les thèmes de votre version 1.6 son compatible à la 1.7 sous peine des les rachetez, si il sont compatible alors il faut juste les réinstaller puis configurer. En faite c’est comme si tu repars de zéro sauf que tu as toutes les donnée. Le plus long sera donc de faire la configuration du thème est des modules est tout. Quand je dit long sa prend moins d’une journée si on connais bien. Ps: tu perdra plus d énergie à faire des import/export manuellement est risque d’y avoir pleins de problème en cours de chemin. Pour la version 1.6 il tiennent juste les mise à jour jusque juin 2019 mais après ça plus de mise à niveau. Mais la version 1.6 restera fonctionnel il y as déjà eu pas mal de Patch dans ce cas il est important de passer en 1.6.24. Par la suite dans le long termes ce qui est bien avec la 1.7 c’est qu’il font beaucoup de progrès pour l’expérience client et gérant notamment le référence seo. Puis il est plus fluide que la version 1.6 sachant aussi que la version de php évolue aussi donc la compatibilité avec la 1.6 risque d être dans la lune est là il sera urgent de la quitter. Je prone pour la cersion 1.7 même si il y a encore quelques petit bug. Bien sur bientôt il y aura l’an version 1.7.6 qui sera encore 100fois mieux car beaucoup de correctif majeur. Voila voila.
  7. boudes sylvain

    image versionning

    Hi, When I edit an image on my website, the old image is kept in the browser cache. Same thing if I regenerate all the small images. The problem is that the image name does not contain a version number. Do you know if it is possible to add to all images of the site a new digital version each time an image is downloaded or modified? Ex : https://www.douxsoleil.fr/c/11-categories_custom/categories_filles.jpg ==> https://www.douxsoleil.fr/c/11-categories_custom/categories_filles_1.jpg ==> https://www.douxsoleil.fr/c/11-categories_custom/categories_filles_2.jpg
  8. hello, i need this in prestashop 1.7.5.1... help please
  9. theillo

    Deleting variable from context cookie

    To Set and unset a cookie variable: $this->context->cookie->__set($key,$value); $this->context->cookie->__unset($key); Also useful: $this->context->cookie->__isset($key); $this->context->cookie->__get($key); OR $this->context->cookie->key; And of course if $this->context is not set yet, first get it with $context = Context::getContext(); OR $this->context = Context::getContext();
  10. Ok merci pour ta réponse. Autant ça ne me dérange pas de payer pour un module installé sur ma boutique autant si c'est bien du module à 199 € dont tu parles ça me parait un peu chère pour une seule utilisation. Pour certaines infos l'import/export est simple à faire mais pour les commandes qui il me semble semble court sur plusieurs tables ça me parait compliqué. Ma boutique en 1.7 bugue par ci par là mais les données importantes de la bdd ont l'air correct. Je regarderais de plus près demain mais je pense tester ce script pour essayer de transférer les données vers un Prestashop en 1.7 vierge. Je me trompe ou j'ai lu dans un autre topic que la 1.6 n'étais supportés que jusqu'au 19 juin ? Si la team Prestashop ne propose pas un module d'upgrade correct on cours à la catastrophe non ?
  11. haylau

    Webservice issues

    Pulling what is left of my hair out here Webserice used to work fine with our courier system (Parcelforce) but has stopped. Courier system developers say there is nothing wrong at their end. To show this, the installed their own version of Prestashop and used the webservice to pull down orders into their system. The produced the attached csv file to show that it works Now from my side. If I go to domain.com/api and enter the key get access to the api. And if i use domain.com//api/orders?filter%5Bcurrent_state%5D=%5B20%5D&filter%5Bdate_add%5D=%3E%5B2019-05-20+22%3A00%3A00%5D&display=full&date=1&sendemail=1 I can see the full xml data as shown in screen print - so I KNOW the webservice works. and i KNOW the courier system works, but SOMETHING must be blocking the two from talking to each other Ourr access logs show these lines when the courier tries to get the orders from the webservice (nothing in their logs) 78.153.247.199 - - [22/May/2019:22:01:44 +0100] "GET /api/orders?filter%5Breference%5D=00000000&display=full&sendemail=1 HTTP/1.1" 200 124 "-" "Zend_Http_Client" 78.153.247.199 - - [22/May/2019:22:01:52 +0100] "GET /api/orders?filter%5Bcurrent_state%5D=%5B20%5D&filter%5Bdate_add%5D=%3E%5B2019-05-20+22%3A00%3A00%5D&display=full&date=1&sendemail=1 HTTP/1.1" 200 3622 "-" "Zend_Http_Client" And sometimes 78.153.247.199 - - [22/May/2019:13:02:41 +0100] "GET /api/order_states?display=%5Bid%2Cname%5D HTTP/1.1" 200 504 "-" "Zend_Http_Client" 78.153.247.199 - - [22/May/2019:13:02:41 +0100] "GET /api/orders?filter%5Bcurrent_state%5D=%5B1%7C2%7C3%7C8%7C9%7C10%7C11%7C12%7C13%7C14%7C18%7C19%7C20%5D&filter%5Bdate_add%5D=%3E%5B2019-05-02+22%3A00%3A00%5D&display=full&date=1&sendemail=1 HTTP/1.1" 200 3718 "-" "Zend_Http_Client" Which shows they are trying to connect. I go to that link and I can see the data. So what on earth is happening . Is this a clue?? HTTP/1.1" 200 3622 "-" "Zend_Http_Client" Not sure what 3622 (or the 506 and 3718) refers to Phpinfo file if it helps: http://u-bolts-r-us.co.uk/phpinfo.php Is there anyone who can help track down the issue? WDMPATC_20190522_eorder_logs.csv
  12. Hola Necesito quitar el enlace a una categoria... por ejemplo mi categoria es galeria y solamente quiero que se muestre el sub menu de ella, no quiero que Galeria sea cliqueable mi prestashop es 1.7.5.1 he buscado informacion y no encuentro información reciente referente a este tema Gracias
  13. Mycoffee.shop

    Language Problem

    Ach so ein Problem kann auftreten war jedenfalls bei mir der Fall, dass in der E-Mail die Bezeichnungen dann trotzdem in Deutsch waren wenn du Deutsch als Backoffice benutzt. Deshalb habe ich meinen Shop dann auf englisch installiert und deutsch weggelassen, da ich nur international versende.
  14. Mycoffee.shop

    Language Problem

    Hast du Polnisch als Sprache bereits in den Shop importiert? Ich weis nicht was der JTL-Connector sein soll! Du importierst polnisch und modifizierst dann automatisch die Übersetzung für Backoffice, Module, Themes und E-Mail!
  15. The lack of participation and convenient useful knowledge in this forum is going to be the death of Prestashop. I had to override the main Controller and add my own route inside of it to get this working.
  16. In Prestashop v1.7.5.1, I've just built `mycustommodule`. In a CMS Page, I'm trying to pull some data from mycustommodule via a hook. In the ../template/cms/page.tpl file I have: {block name='cms_content'} {$cms.content nofilter} {if $cms.id==6} <div> <h1>Here's my custom hook</h1> {hook h='displayCustomHook'} </div> {/if} {/block} In mycustommodule/mycustommodule.php, I have the hook: public function hookCustomHook( $params ){ $this->context->smarty->assign( array( 'myvariable' => 'test' ) ); return $this->display(__FILE__, '/views/templates/hook/mycustommodule.tpl'); } I cannot assign anything to smarty without getting this error (1/1) ContextErrorException Notice: Undefined property: Smarty_Internal_Undefined::$objMap in smarty_internal_extension_handler.php line 132 I even went to github and found that line of code in the Smarty class: if (isset($callback) && $callback[ 0 ]->objMap | $data->_objType) { But I feel like this is not a smarty problem -> it's something I've referenced or done or not done in the module. I have no idea what's going wrong - The whole module is working otherwise - including adding data to a custom table in the backend using an AdminController. Has anyone else had this problem? WTF
  17. presta-dyr

    Prestashop 1,61,20 vs 1,7 LØST

    Jeg opretter en pull request på det. Indtil videre kan du bruge den vedhæftede fil. Kopier filen til src/Adapter/Presenter/Product/ /Kjeld ProductLazyArray.php
  18. Hi, This is not WordPress, you don't create pages and layout in the way you understand it. PrestaShop uses "Smarty PHP template engine" - https://en.wikipedia.org/wiki/Smarty_(template_engine) There are TPL (template) files in the theme folder, they are your "pages" but normally they are broken into smaller segments, like header.tpl, head.tpl and they construct the page together. There are mandatory things like checkout page, product page etc that are already included with the template (it doesn't matter if you use the starter theme or fork of the classic theme). By default you have all the required TPL's already there, so if you want to change the layout and structure of the product page for example you edit the product.tpl file. So If you want to add new "page" you can create your own TPL file and place it at the appropriate template folder/subfolder and call it at the appropriate place. Look at TPL files like HTML files, where you set divs/classes etc and then style it with CSS and JS. You can also extend existing TPL or override it with your own. Check out - https://devdocs.prestashop.com/1.7/themes/getting-started/theme-organization/ and see how it is organized. Start opening the theme folder /templates and look at all the TPl files and there contents and you will understand it. PrestaShop also use Symfony and its Twig template engine. Furthermore, Webpack and NPM are used to manage packages and segments and then compile the assets like CSS and JS, into one file. They are separated in many small files, like products.js and others that is later combined and compiled into one big theme.js That's why they are minified in the end result. You can find the unminified versions on the PrestaShop github page. Another helpful link is - https://belvg.com/blog/smarty-template-engine-in-prestashop-1-7-basics-examples-functions.html I suggest you to look at Smarty and Symfony engines websites and their docs too.
  19. Nach einer "kompletten Neuinstallation" können ja eigentlich keine Reste aus der alten Installation mehr vorhanden sein. Ansonsten müßte es reichen auf das classic-Theme umzustellen und ggf. mit dem Template mitgelieferte Module zu deaktivieren.
  20. Man kann doch - ich glaube unter "Positionen" - einstellen, auf welchen Seiten die einzelnen Module angezeigt werden sollen.
  21. Merci pour ton aide et ta disponibilité. It's Coffee time
  22. this answer solved my problem, now I am able to create direct link to image.... check in ps_image for the id_image and from there you can create the link, thank you !!
  23. hello I find the invoice.tpl and add the code. It doesent work, i use module universalpay.
  24. Pour l'histoire, le problème venait d'un module de paiement pas très récent et du passage lors des derniers jours en https
  25. endpulse

    [MODULE] QuickUpdate

    Hi everyone, After quite some time, a new version of the QuickUpdate Products Manager module is now available, which brings a lot of improvements over the previous versions but most importantly compatibility with all the new versions of Prestashop including v1.5. v1.6, v1.7 Updated first post with all the detailed info. Best regards, Daniel
  1. Load more activity
×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More