Beispiel #1
0
 public static function getItemSpecificsTabConfiguration($id_ebay_profile)
 {
     //Check if all mandatory items specifics have been configured
     $ebay = new Ebay();
     if (!EbayCategorySpecific::allMandatorySpecificsAreConfigured($id_ebay_profile)) {
         return array('indicator' => 'wrong', 'indicatorBig' => 'wrong', 'message' => $ebay->l('You need to configure your mandatory items specifics ', 'ebayvalidatortab'));
     }
     //Check if optional items specifics have been configured
     if (!EbayCategorySpecific::atLeastOneOptionalSpecificIsConfigured($id_ebay_profile)) {
         return array('indicator' => 'success', 'indicatorBig' => 'mind', 'message' => $ebay->l('You could gain visibility by configuring optional items specifics ', 'ebayvalidatortab'));
     }
     return array('indicator' => 'success');
 }