PrestaSharp icon indicating copy to clipboard operation
PrestaSharp copied to clipboard

CustomerFactory doesn't work as expected with Prestashop 8.0

Open twoedges opened this issue 2 years ago • 4 comments

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 avatar Jan 05 '23 14:01 twoedges

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 avatar Jan 05 '23 17:01 twoedges

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

jesiiu avatar Mar 16 '23 08:03 jesiiu

  • customerFactory.GetIds()

ok, but what about GetIds() method?

twoedges avatar Mar 20 '23 08:03 twoedges

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

LameuleFR avatar Nov 12 '23 16:11 LameuleFR