Prestashop version : 1.7.39
Nuget Prestasharp version : 1.2.9
dependencies :
.net framework v4.5.2
restsharp 106.11.4
.net standard v2.0
This the code with the filter on active
Dictionary<string, string> filter = new Dictionary<string, string>();
filter.Add("Active", "1");
string Verif = string.Empty;
List<product> SelProducts = ProductFact.GetByFilter(filter,"reference_ASC","9999");
//List<product> SelProducts = ProductFact.GetAll();
And i receive error 👍 👍 Bukimedia.PrestaSharp.PrestaSharpException : '
display: full
filter[Active]: 1
sort: reference_ASC
limit: 9999
with details 👍 {"\r\ndisplay: full\r\nfilter[Active]: 1\r\nsort: reference_ASC\r\nlimit: 9999\r\ndate: 1\r\nws_key: UI3VEQPH1KBANWRKHY5Q65FW9EIBFUG2\r\n\r\n\n<prestashop xmlns:xlink="http://www.w3.org/1999/xlink\">\n\n\n\n\n\n\n\n HttpStatusCode: BadRequest"}
I dont understand, because this code works in another application.
Can you help ?
Jean-Marie
Prestashop version : 1.7.39
Nuget Prestasharp version : 1.2.9
dependencies :
.net framework v4.5.2
restsharp 106.11.4
.net standard v2.0
This the code with the filter on active
Dictionary<string, string> filter = new Dictionary<string, string>();
filter.Add("Active", "1");
And i receive error 👍 👍 Bukimedia.PrestaSharp.PrestaSharpException : '
display: full
filter[Active]: 1
sort: reference_ASC
limit: 9999
with details 👍 {"\r\ndisplay: full\r\nfilter[Active]: 1\r\nsort: reference_ASC\r\nlimit: 9999\r\ndate: 1\r\nws_key: UI3VEQPH1KBANWRKHY5Q65FW9EIBFUG2\r\n\r\n\n<prestashop xmlns:xlink="http://www.w3.org/1999/xlink\">\n\n\n
\n\n\n\n\n HttpStatusCode: BadRequest"}I dont understand, because this code works in another application.
Can you help ?
Jean-Marie