Jump to content

math_php

Members
  • Posts

    535
  • Joined

  • Last visited

2 Followers

Profile Information

  • Location
    France Bordeaux Libourne
  • Activity
    Developer

Recent Profile Visitors

7,414,442 profile views

math_php's Achievements

Newbie

Newbie (1/14)

86

Reputation

2

Community Answers

  1. Hi public static function getTaxes($id_lang = false, $active_only = true) $taxes = Tax::getTaxes(); var_dump($taxes);
  2. Bonjour, Dans le back office allez dans la gestion des modules et cherchez le onboard... et virez le. Rah la sale bête
  3. Hi Sneakypete92, So far I have reached 100 000 products in Prestashop the conventional way, and 3 000 000 in non standard tricky way. Tell us more about your project and most of all 'how product datas and images can be accessed' ? Regards
  4. Hi, Did you check your ps_tax_rules_group ? Is there a column called 'deleted' ? If not did you add one ? If needed add a column in phpmyadmin : like this `deleted` tinyint(1) unsigned NOT NULL, Regards
  5. Hi, I think you will find everything you need in the bestseller module and in ProductSale class, it is very close to what you are actually making. Regards
  6. Hi Atanda, The proper way and cleanest way to do this is to make a copy and rename the best seller module and then applying modification on the 'new' module. I PM you to quote the whole. Best regards
  7. Bonjour, Quel est votre version de prestashop ? L'envoi de données à smarty varie en fonction de la version. $smarty->assign('user', $user); Essayez peut être de greffer votre code dans un module activé qui passe des variables à Smarty. En affichant le debug de smarty vous verrez ce que smarty reçoit. Bon dev
  8. Alors il doit y avoir un caractère qui le pertube, il faudrait virer les - | ¤ du libellé de la confiture par exemple. Ca semble pas etre une grosse panne mais juste une histoire de données collées entre elles et mal redécoupées.
  9. A priori ça c'est pas grave. Mais oui le reste est à creuser
  10. Dans firebug c'est l'onglet console qui va afficher les erreurs javascripts et afficher les requêtes ajax. Dans ce cas ça sera une requete Get, en cliquant sur l'url on peut voir les paramètres envoyés et la réponse faites pas la page php appelée (ici le fichier ajax.php)
  11. Bonjour, Il faudrait par exemple Firefox et firebug pour voir ce qui est retourné lors de l'appel ajax. Ca pourrait donner un début de piste. Il serait aussi bon de savoir ce qu'en pense le développeur du module
  12. Okay guys, ready to buy a quick and dirty fix ? I found a way to force 'static cache' to become 'dynamic cache' : As my 'welcome User name' has been placed in my case in blockcontact, the code before the fix is : modules/blockcontact/blockcontact.php public function hookDisplayRightColumn($params) { global $smarty; $tpl = 'blockcontact'; if (isset($params['blockcontact_tpl']) && $params['blockcontact_tpl']) $tpl = $params['blockcontact_tpl']; if (!$this->isCached($tpl.'.tpl', $this->getCacheId())) $smarty->assign(array( 'telnumber' => Configuration::get('BLOCKCONTACT_TELNUMBER'), 'email' => Configuration::get('BLOCKCONTACT_EMAIL') )); return $this->display(__FILE__, $tpl.'.tpl', $this->getCacheId()); return $this->display(__FILE__, $tpl.'.tpl'); } After messing the stuff to force update : public function hookDisplayRightColumn($params) { global $smarty; $tpl = 'blockcontact'; if (isset($params['blockcontact_tpl']) && $params['blockcontact_tpl']) $tpl = $params['blockcontact_tpl']; if (1 || !$this->isCached($tpl.'.tpl', $this->getCacheId())) $smarty->assign(array( 'telnumber' => Configuration::get('BLOCKCONTACT_TELNUMBER'), 'email' => Configuration::get('BLOCKCONTACT_EMAIL') )); //return $this->display(__FILE__, $tpl.'.tpl', $this->getCacheId()); return $this->display(__FILE__, $tpl.'.tpl'); } Focus on isCached( and getCacheId( to get it. Cheers
  13. Hi, And thanks a lot, for all informations You can go there to find more : http://forge.prestashop.com/browse/PSCFV-9543 In my case, I have to work with pos optima digital theme, I dunno if it was modified or if it is the work of the theme developper but 'Welcome message customer name' has been moved to blockcontact nav.tpl but to work it should stay in blockuserinfo nav.tpl or be placed in tpl where variables values are allways updated. I think that when cache is used, blockcontact is considered as 'very static'. Think of highly dynamic fields and static ones like the shopname for example. Shopname may never change then no need to update cache. Why it runs like this without problem on some shop ? In my case smarty settings were let in 'Force compilation everytime' and 'No cache'. Good luck to fix it in your theme. Math
  14. Hi, You could authorize bots to see the shop if you know the ip's that must be allowed. Perhaps this could help : http://iplists.com/ Regards
  15. Si les url ne sont pas rewrité tu as le nom du controller qui peut aider. Dans ton cas c'était controller=authenfication d'ou la recherche du tpl avec le même nom. Sinon en fouillant dans le bon controller, en cherchant .tpl tu pourras avoir la liste de tous les tpls du controller. A savoir, il y a des tpl dans - le dossier themes/le_theme_installé/ - dans le dossier module - des tpl overridés dans le dossier themes/le_theme_installé/modules/ Attention, des fois le cache n'est pas raffraichi, ça peut jouer des tours. Bon dev
×
×
  • Create New...