コード例 #1
0
 /**
  * Returns the target customer group.
  * 
  * @param array $formData Submitted form data.
  * 
  * @return Group
  */
 public function getTargetCustomerGroup($formData)
 {
     if (array_key_exists('IsBusinessAccount', $formData) && $formData['IsBusinessAccount'] == '1') {
         $customerGroup = SilvercartCustomer::default_customer_group_b2b();
     } else {
         $customerGroup = SilvercartCustomer::default_customer_group();
     }
     return $customerGroup;
 }