Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 152 forks source link

Order messages support #335

Closed sanctusmob closed 5 years ago

sanctusmob commented 5 years ago

This is for getting the orders messages - comments from the customer. Is tested on PS 1.7.

You can get the order message like this

Dictionary<string, string> filter = new Dictionary<string, string>();
filter.Add("id_order", lngOrderID.ToString());

List<Bukimedia.PrestaSharp.Entities.message> MyOrderMessages = messageLink.GetByFilter(filter, "id_DESC", "1");                
if (MyOrderMessages.Any())
{
    string strMessage = WebUtility.HtmlDecode(MyOrderMessages.First().Message); 
}
mowcixo commented 5 years ago

Hello @sanctusmob, thanks for the PR, we are interested in merging it, but could you take a look on the review?

sanctusmob commented 5 years ago

Hello @sanctusmob, thanks for the PR, we are interested in merging it, but could you take a look on the review?

Can you be more specific about the review part? Thank you.

mowcixo commented 5 years ago

Of course @sanctusmob, I've made some comments over your code, can you take a look?

sanctusmob commented 5 years ago

Of course @sanctusmob, I've made some comments over your code, can you take a look?

Sorry but i can't see your comments. Where did you make comments?

mowcixo commented 5 years ago

Of course @sanctusmob, I've made some comments over your code, can you take a look?

Sorry but i can't see your comments. Where did you make comments?

Sorry @sanctusmob, you were right, I didn't publish the review. Can you see it now?