Jump to content

Bluedge

Members
  • Posts

    23
  • Joined

  • Last visited

Profile Information

  • Activity
    Web development agency

Recent Profile Visitors

5,241,651 profile views

Bluedge's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have done that, thanks. Weirdly enough I had to kill apache and restart to see any effect.
  2. Hello, I have a custom made module working fine since a year, I wanted to had a simple hook. The hook is well registered and active but the smarty variables are not assigned anymore. As test : I have tried to add a smarty variables to other module and it never gets output. Removing an existing smarty variable works (it becomes missing in the template) What ever I do the smarty variables don't get assigned anymore. HELP PLEASE !!! Note : I have clear the cache Here is the very simple test code: public function hookDisplayMyTest($params) { $this->smarty->assign('hello', 'world'); return $this->display(__FILE__, 'destinationsbottom.tpl'); }
  3. In case someone else hit the same issue, the solution is pretty simple. The page_name property in the init method of the module must be set properly. If your module is called "bestsellers" and your front controller is called "best" the page_name will be set as follow : 'module-bestsellers-best'. Note : thanks to the Prestashop customer support service for this. public function init() { $this->page_name = 'module-bestsellers-best'; parent::init(); }
  4. I have developed a few modules with custom page controller based on this tutorial: http://nemops.com/creating-new-pages-in-prestashop/ Everything works fine but I cannot get the meta Title and Description to display in the HTML. SEO & URL rewrite is active and works fine for regular pages. Help anyone? Here is the custom controller code, also attached the full module <?php class testmoduleAllproductsModuleFrontController extends ModuleFrontController { public function init() { $this->page_name = 'allproducts'; // page_name and body id $this->display_column_left = false; $this->display_column_right = false; parent::init(); } public function initContent() { parent::initContent(); $products_partial = Product::getProducts($this->context->language->id, 0, 5, 'name', 'asc'); $products = Product::getProductsProperties($this->context->language->id, $products_partial); $this->context->smarty->assign(array( 'products' => $products, 'homeSize' => Image::getSize('home_default') )); $this->setTemplate('allproducts.tpl'); } } testmodule.zip
  5. Hi Nemo1, This is what i'm doing but checking with isCached always return false. (Actually returns nothing but I cast it with (int) )
  6. I'm a bit confused about the best way to use the cache functions (Module and Tools classes) Let say: I have a simple module that displays the product on the day on the homepage 1. I make a query to the Database to retrieve the product 2. I return the result to a tempate product_of_the_day.tpl I would like to understand how to cache the result and the template for the current day. I have tried a strategy based on this :$this->_clearCache('product_of_the_day.tpl', $this->getCacheId(date('z'))); but it seems to never be cached. Can someone explain me the proper strategy to control the caching system or point me to a google tutorial on the web? Thanks
  7. As soon as i'm not logged in the back end as the Admin the javascript files are not loaded in the proper order. Jquery come only in the middle of the file list. Obviously all previous jquery related files trigger an error : ReferenceError: jQuery is not defined This ONLY happend when a non admin user is logged in and this prevent users to use most of the modules. I've tried to find a solution for hours now, can't find it. Any help would be greatly appreciated. version : '1.6.0.14' JS Files as they load appear in the <head> <script type="text/javascript" src="/js/jquery/ui/jquery.ui.widget.min.js"></script> <script type="text/javascript" src="/js/jquery/plugins/jquery.tablednd.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/jquery.iframe-transport.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/jquery.fileupload.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/jquery.fileupload-process.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/jquery.fileupload-validate.js"></script> <script type="text/javascript" src="/js/vendor/spin.js"></script> <script type="text/javascript" src="/js/vendor/ladda.js"></script> <script type="text/javascript" src="/modules/seagnaturecruiseimport/views/js/sweetalert.min.js"></script> <script type="text/javascript" src="/js/jquery/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="/js/jquery/jquery-migrate-1.2.1.min.js"></script> <script type="text/javascript" src="/js/jquery/plugins/jquery.scrollTo.js"></script> <script type="text/javascript" src="/js/jquery/plugins/alerts/jquery.alerts.js"></script> <script type="text/javascript" src="/js/jquery/plugins/jquery.chosen.js"></script> <script type="text/javascript" src="/js/jquery/plugins/jquery.autosize.js"></script> <script type="text/javascript" src="/js/jquery/plugins/fancybox/jquery.fancybox.js"></script> <script type="text/javascript" src="/js/jquery/plugins/growl/jquery.growl.js"></script> <script type="text/javascript" src="/js/jquery/ui/jquery.ui.core.min.js"></script> <script type="text/javascript" src="/js/jquery/ui/jquery.ui.mouse.min.js"></script> <script type="text/javascript" src="/js/jquery/ui/jquery.ui.slider.min.js"></script> <script type="text/javascript" src="/js/jquery/ui/jquery.ui.datepicker.min.js"></script> <script type="text/javascript" src="/js/jquery/ui/i18n/jquery.ui.datepicker-fr.js"></script> <script type="text/javascript" src="/js/admin.js"></script> <script type="text/javascript" src="/js/tools.js"></script> <script type="text/javascript" src="/js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/vendor/bootstrap.min.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/vendor/modernizr.min.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/modernizr-loads.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/vendor/moment-with-langs.min.js"></script> <script type="text/javascript" src="/admin1106/themes/default/js/help.js"></script> <script type="text/javascript" src="/js/admin/notifications.js"></script> <script type="text/javascript" src="/js/jquery/plugins/autocomplete/jquery.autocomplete.js"></script> <script type="text/javascript" src="/js/jquery/plugins/jquery.tablefilter.js"></script>
  8. Merci Zebx, J'ai effectivement trouvé cette ligne de code et je l'ai commenté. Je ne comprends vraiment pas l'utilité d'un array_map et la logique de construction du nom du produit. Autant garder le nom habituel de ce dernier. Dautant plus que les produits peuvent aussi être trackés par leur ID dans GA. Etrange idée vraiment... Merci.
  9. Dans google analytics le nom des produits est particulièrement malformés (problème utf8 et +) Dans la section: Google Analytics: Conversion / Ecommerce / Shopping Analysis / Product Performance le nom des produits apparait comme suit: Th%C3%A9+Cho+Yung+Minceur+%3A+le+Pack+de+60+sachets+pour+30+jours Alors que dans les autres rapports de GA les titres apparaissent bien: Thé Cho Yung Minceur : le Pack de 60 sachets pour 30 jours Je dois exporter des rapports pour le client et ce problème est particulièrement génant. Je ne comprends pas pourquoi seul le nom des produits vendus semble est mal encodé avant d'être collecté par GA. (ps: module GA à jour). Quelqu'un sait d'ou cela pourrait venir dans prestashop, quel fichier / module?
  10. Thank you for advertising your product... did you answer the question and bring something to the community? No...
  11. Personne? J'ai vu que ce problème est dèjà arrivé par le passé mais je n'ai pas trouvé de solution dans le forum...
  12. Bonjour, je tente de passer une commande sur PS 1.6.0.11, type de processus de commande: One page checkout. Theme Prestashop de base modifié. Impossible d'enregistrer mon adresse client. Le pays france est bien selectionné mais un message indique que le code pays est invalide. Il y a 3 erreur(s): Le pays ne peut pas être chargé avec address->id_country Pays invalide id_country requis Note: cette erreur n'apparait pas avec le process de commande 5 étapes. Vous pouvez tester en live ici: http://7f5593e189.testurl.ws/
×
×
  • Create New...