Пример #1
0
 /**
  * Update customer's other_data to include given home store_id
  * 
  * @param  int $store_id Store id
  */
 protected function updateCustomersHomeStore($store_id)
 {
     $customer_id = (int) $_SESSION['client']['customer']['id'];
     if ($customer_id == 0) {
         return false;
     }
     $Customer = new client_customer();
     // update other_data
     $_SESSION['client']['customer']['store_id'] = $store_id;
     $Customer->updateCustomer(array('id' => $customer_id, 'other_data' => $_SESSION['client']['customer']['other_data']));
     return true;
 }