1. Home
  2. Supercash – Sales Booster
  3. Developer
  4. Adding SuperCash on Activity

Adding SuperCash on Activity

Only for Developers

You can add SuperCash to any activity, for example, customer registration.

You will have to add the following code to your function [for catalog]

$supercash = array(
    'order_id'      => '0',
    'customer_id'   => '<customer_id_variable>',
    'language_id'   => $this->config->get('config_language_id'),
    'store_id'      => $this->config->get('config_store_id'),
    'amount'        => '<amount_value>', 
    'description'   => '<description_value>',    
    'expiry'        => '<expiry_date>'
);

$this->load->model('extension/total/cashback_discount');
$this->model_extension_total_cashback_discount->add_activity_supercash($supercash);

You will have to add the following code to your function [for admin]

$supercash = array(
    'order_id'      => '0',
    'customer_id'   => '<customer_id_variable>',
    'language_id'   => $this->config->get('config_language_id'),
    'store_id'      => $this->config->get('config_store_id'),
    'amount'        => '<amount_value>', 
    'description'   => '<description_value>',    
    'expiry'        => '<expiry_date>'
);

$this->load->model('extension/hbapps/supercash');
$this->model_extension_hbapps_supercash->add_activity_supercash($supercash);
Was this article helpful to you? Yes No

How can we help?