Integration with other modules

minor version 1.4.1, relase date 2017-05-30

Integration with other modules

This version introduces new prestashop hook datakickExtend that other modules can use to provide additional schema information to DataKick module. This will let DataKick use data stored by these third-party modules.

We have also released free module Price Alert - Follow the Price as a proof of concept.

Example integration code in third-party module:

// module install functions
public function install($delete_params = true) {
  $this->registerHook('datakickExtend');
}

// hook providing schema
public function hookDatakickExtend($params) {
  return array(
    'products' => array(
      'fields' => array(
        'myField' => array(
          'description' => 'Module Field',
          'type' => 'string',
          'sql' => 'ps.module_field'
        )
      )
    )
  );
}

Shopping cart schema is available

New collection Shopping carts has been exposed.

New functions

Also, two new functions were released in this version

Update your privacy settings