Skip to content

Error with filter in products #466

Description

@polaije

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions