Jump to content

[SOLVED] How do i get the order details in module


Recommended Posts

  • 1 month later...
  • 1 year later...
  • 1 year later...

Hi,

 

          I am new in prestashop. I am using prestashop version 1.6.1.3. hookActionValidateOrder not working for me. I am giving you an example what I am doing.
 

class demo extends Module {

    public function install() //actionValidateOrder
    {
      if (!parent::install() || !$this->registerHook('updateOrderStatus') || !$this->registerHook('actionValidateOrder'))
         return false;
    
      return true;
    }
    
    public function hookActionValidateOrder($params) //This is not working.
    {
        error_log("Order created");
    
    }
    
    public function hookUpdateOrderStatus($params) //This is working fine
    {
       error_log("Order Status Changes");
    }
 

}

Link to comment
Share on other sites

×
×
  • Create New...