greg_808

Is it possible to change pagination of the gridfield? I want to display all records on one page instead of a paginated list? How would i do that?

greg_808

Is there a way to set dateformat globaly?

greg_808

Is there a way to configure silvershop-discounts in a way that each customer can only use a coupon code once?

greg_808

What about writing your own .Nice, eg. .customNice Methode would that work?

greg_808

This is my workaround:

  1. $activePeople = $this->Peoples()->filter(['isActive' => 1]);
  2.  
  3. $peopleWithSubDepartment = $this->Peoples()->filter(['isActive' => 1, 'SubDepartments.ID:GreaterThan' => 0]);
  4.  
  5. $activePeopleWithOutSubDepartment = $activePeople->subtract($peopleWithSubDepartment);
  6.  
  7. return $activePeopleWithOutSubDepartment;
Thank you!

greg_808

This

  1. return $this->Peoples()->filter(['isActive' => 1, 'SubDepartments.ID:GreaterThan' => 0])
works but i am not able to get the opposite.

greg_808

Is it possible to filter a data list by its many many relation. $this->Peoples()->filter(['isActive' => 1, 'SubDepartments.ID' => 0]) SubDepartments is the many_many on People. I try to get all People that don’t have a subdepartment. Can someone give me a hint what i am missing?

greg_808

It was a stupid error which actually occured in the CSV file allready. Now that the csv file is fixed everything works.

greg_808

I import a csv file with CsvBulkLoader that has polish special chars like “ą”, “ć”, “ł” The problem i am having is that those chars get replaced with ? . The DB is not the problem I have checked it twice it can handle those chars but it seem the bulk loader or fgetcsv() can’t handle them. has anyone all ready successfully imported spezial chars with the bulkloader and could give me a hint.