PrestaSharp icon indicating copy to clipboard operation
PrestaSharp copied to clipboard

Feature Values GetAll() returns null

Open ghost opened this issue 3 years ago • 2 comments

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,

ghost avatar May 10 '22 11:05 ghost

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

ak293700 avatar Nov 08 '22 15:11 ak293700

I solved this problem by filtering the fields I fetch.

ak293700 avatar Nov 21 '22 10:11 ak293700