PrestaSharp
PrestaSharp copied to clipboard
Reading Product Options and Features
I am reading these are get a null response in the RestSharp Factory? Have these been tested? Are they working?
Hello @iang0ld Please, paste the error. Best regards.
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.
Hello @iang0ld Could you paste your code where you find the problem? I would like to know the case. Thank you.
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.
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.
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. 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
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
- 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
How can I manipulate the code to simply get id_default_group name as associate fields ?
Any help would be welcome