Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomerFactory doesn't work as expected with Prestashop 8.0 #457

Open
twoedges opened this issue Jan 5, 2023 · 4 comments
Open

CustomerFactory doesn't work as expected with Prestashop 8.0 #457

twoedges opened this issue Jan 5, 2023 · 4 comments

Comments

@twoedges
Copy link

twoedges commented Jan 5, 2023

Library Version:

1.2.9

NuGet Package Url:

https://www.nuget.org/packages/PrestaSharp/1.2.9

Prestashop version:

8.0.0

Describe the Bug:
i'm trying to get customer data releated to order via id_customer member

CustomerFactory customerFactory = new CustomerFactory(baseUrl, account, password);
var query= customerFactory.Get((long)item.id_customer);

query value is null

also following methods return no results

  • customerFactory.GetIds() method work, i retrive 3 items
  • customerFactory.GetAll() & GetAllAsync() doesn't work (both return null)
  • customerFactory.GetByFilter(null, null, null) doesn't work (return null)

Prestashop run into docker container (https://hub.docker.com/r/prestashop/prestashop/) with this configuration

  • Server: Apache/2.4.54 (Debian)
  • PHP: 8.1.9
  • MySQL: 5.7.40
  • MySQL Engine: InnoDB
  • MySQL Driver : DbPDO
@twoedges
Copy link
Author

twoedges commented Jan 5, 2023

updates

customerFactory work fine with PrestaShop ver 1.7.8.8

  • PrestaShop: 1.7.8.8
  • Server: Apache/2.4.54 (Debian)
  • PHP: 7.4.30
  • MySQL: 5.7.40
  • MySQL Engine: InnoDB
  • MySQL Driver : DbPDO

@twoedges twoedges changed the title CustomerFactory doesn't work as expected CustomerFactory doesn't work as expected with Prestashop 8.0 Jan 9, 2023
@jesiiu
Copy link

jesiiu commented Mar 16, 2023

customerFactory.GetByFilter(null, null, null) doesn't work (return null)
You should first null in GetByFilter replace with Dictionary with filters

@twoedges
Copy link
Author

  • customerFactory.GetIds()

ok, but what about GetIds() method?

@LameuleFR
Copy link
Collaborator

Look like a Prestashop problem.
We use CustomerFactory with PS 8.1.2 and it work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants