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

Feature Values GetAll() returns null #441

Open
ghost opened this issue May 10, 2022 · 2 comments
Open

Feature Values GetAll() returns null #441

ghost opened this issue May 10, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented May 10, 2022

Hello,
I have created a product exporter using PrestaSharp(1.2.9) which works fine on two prestashop (1.7.8.5) installations so far.
Today I tried to run it on a PrestaShop (1.7.8.3).

The shop already contains feature values but GetAll() always return null.

var productFeatureValueFactory = new ProductFeatureValueFactory(Globals.baseUrl, Globals.account, Globals.password);
var AllProductFeatureValues = productFeatureValueFactory.GetAll();

I have tried Get(id) and works fine

var productFeatureValueFactory = new ProductFeatureValueFactory(Globals.baseUrl, Globals.account, Globals.password);
var someFeatureValue = productFeatureValueFactory.Get(589758);

{Bukimedia.PrestaSharp.Entities.product_feature_value}
    custom: 0
    id: 589758
    id_feature: 7
    value: Count = 2

Have anyone seen this problem ?
Any solutions?

Best regards,

@ak293700
Copy link

ak293700 commented Nov 8, 2022

Same problem it works with 1.7.4.2 but not with 1.7.6.9. Postman works with both.

@ak293700
Copy link

I solved this problem by filtering the fields I fetch.

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

1 participant