PrestaSharp icon indicating copy to clipboard operation
PrestaSharp copied to clipboard

Reading Product Options and Features

Open iang0ld opened this issue 10 years ago • 8 comments

I am reading these are get a null response in the RestSharp Factory? Have these been tested? Are they working?

iang0ld avatar Oct 03 '14 14:10 iang0ld

Hello @iang0ld Please, paste the error. Best regards.

EduLeonPavon avatar Oct 13 '14 09:10 EduLeonPavon

Hi ,

After importing combinations I believe that in the order _row and stock_available entity that field call product_attribute_id should actually be called product_combination_id.

I am still having trouble with Features however and will get back to you.

Might be worth checking.

From: Eduardo León Pavón [mailto:[email protected]] Sent: Monday, 13 October 2014 8:27 PM To: Bukimedia/PrestaSharp Cc: Ian Gold Subject: Re: [PrestaSharp] Reading Product Options and Features (#88)

Hello @iang0ldhttps://github.com/iang0ld Please, paste the error. Best regards.

— Reply to this email directly or view it on GitHubhttps://github.com/Bukimedia/PrestaSharp/issues/88#issuecomment-58867008.

iang0ld avatar Oct 13 '14 20:10 iang0ld

Hello @iang0ld Could you paste your code where you find the problem? I would like to know the case. Thank you.

EduLeonPavon avatar Oct 24 '14 15:10 EduLeonPavon

Sorry for taking so long to get back to you. I will be working on this over the next couple of days and will get back to once I a confirm the problem is not me.

However there is another interesting problem.

The product entity includes a field for price. However in Prestashop you are asked to enter the pre-tax price and the tax. Somewhere there seems to be rounding happening. The problem I am finding is that a tax inclusive price calculated by Presta is round (ex199.01 is coming through as 200. Any ideas?

From: Eduardo León Pavón [mailto:[email protected]] Sent: Saturday, 25 October 2014 2:36 AM To: Bukimedia/PrestaSharp Cc: Ian Gold Subject: Re: [PrestaSharp] Reading Product Options and Features (#88)

Hello @iang0ldhttps://github.com/iang0ld Could you paste your code where you find the problem? I would like to know the case. Thank you.

— Reply to this email directly or view it on GitHubhttps://github.com/Bukimedia/PrestaSharp/issues/88#issuecomment-60404480.

iang0ld avatar Oct 31 '14 08:10 iang0ld

Hi, I need to know how to list the features values of a product, I have done several tests and list the products, features and values of the features but I can not get the features values of a specific product. I have tried using the filters but there is no field that you can filter the values of the features values or features of a specific product. Thank you.

quases avatar Mar 07 '16 14:03 quases

You can get the product features retrieving a product, It has a AuxEntities.AssociationsProduct associations object, who contains a List<product_feature> product_features

mulflar avatar Mar 07 '16 15:03 mulflar

@mulflar. Thank you very much, it was very simple, imagine that the solution could not be complicated, but I could not find it. It's my first experience asking somewhere on the internet and thanks to you to been very helpful

quases avatar Mar 07 '16 17:03 quases

Hi Everybody, I am just starting working with this library, but I remain more than confuse with AuxEntities associations. For Instance : I get all the customers from Prestashop DataBase

CustomerFactory PF = new CustomerFactory(BaseUrl, Account, Password); Dictionary<string, string> dtn = new Dictionary<string, string>(); List customers = PF.GetAll(); Running like a charm... Then I need to lookup result to select different customer class field foreach (customer customer in customers) { Console.Writeline(customer.firstname) Console.Writeline(customer.lastname) etc etc... Working like a charm. }

  • when the loop arrive to "associations" witch is lead by default to group class
  • Console.WriteLine("customer.associations.groups) return :
  • System.Collections.Generic.List`1[myprogramName.Entities.AuxEntities.group]

So i get a List who logically should be a List if I refer to AssociationsCustomer : yet It contain nothing except id who is id_default_group.

How can I manipulate the code to simply get id_default_group name as associate fields ?

Any help would be welcome

NearEarthObject avatar Jun 22 '18 09:06 NearEarthObject