Jump to content

brainstormtrooper

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Activity
    Freelancer

brainstormtrooper's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks for your answers. The problem is that Hook::exec('Header'), or Hook::exec('displayHeader') don't do anything in my custom front controller. I can't include other modules' CSS or JavaScript files. And when I try to var_dump(Hook), I just get the string 'Hook' and when I try to see if the function exec() exists php says it doesn't. I have two files where I can use Hook::exec(). One extends ModuleFrontController, and the other extends ProductPresentingFrontControllerCore, why can't I use the Hook constant? As an example, the shopping cart doesn't work because it can't load its own JavaScript files... Thanks in advance,
  2. Thanks for your answer, I want to access displayHeader (HOOK_HEAD)... I need the modules in other hooks to be able to add their js and css files... Is that hook not available? I not, what do I need to use to access it? (and where can I find what hooks are available through which files?) Thanks in advance,
  3. Hi, I have developed a module with a custom front controller and I need it to activate hooks, but the function Hook::exec() is not available. My front controller extends ModuleFrontController (if that helps...) Can anyone point me in the right direction? Thanks in advance :-)
  4. Hi, I have developed a custom module and front controller. (I developed it under PS 1.6 and am updating it for PS 1.7). So far everything works OK except one module. The content of the module displays, but the associated css files are not loaded. A strange thing I noticed is that in the context object list of loaded hooks and modules, the hook is there, but th module is not listed. Could this be a context problem (module context vs front controller context)? What else could be causing it? Any pointers would be greatly appreciated. Thanks,
  5. Hi, I'm trying to get the Category class to return only products with a quantity greater than 0 in PS 1.6 I tried http://www.prestashop.com/forums/topic/256812-modify-getproducts/?hl=select+product+with+quantity but it didn't seem to change anything. I don't want them disabled, just not presented... I have them hidden in the template, but then pagination is messed up. Thanks in advance for any help or advice,
×
×
  • Create New...