KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: ReLLiK75 on November 14, 2008, 08:30:35 pm

Title: getOrdersPerCustomer doesn't return any pricing info????
Post by: ReLLiK75 on November 14, 2008, 08:30:35 pm
When I make this API call against an order that has been created using the default OTB data set, all price fields are null for each OrderProduct object in the orderProducts array.  Am I missing something?  Despite the fact that i have an OrderProduct object, do I need to make an explicit call to getProduct()  in order to get the Product price?  If this is the case, what are the price fields on the OrderProduct object used for?

Thanks!
Wayne
Title: Re: getOrdersPerCustomer doesn't return any pricing info????
Post by: pete on November 16, 2008, 10:43:26 pm
QuoteWhen I make this API call against an order that has been created using the default OTB data set


I'm not sure what API call you are referring to and what the OTB data set is. What I suggest is to take a look at the InsertOrder.java example under KonaKart\java_api_examples\src\com\konakart\apiexamples.

The prices should be contained in the order product. You cannot retrieve them from the product since the product price could change over time.
Title: Re: getOrdersPerCustomer doesn't return any pricing info????
Post by: ReLLiK75 on November 17, 2008, 05:46:39 pm
The API call I'm referring to is getOrdersPerCustomer().  The out of the box data set is all the hardware/software/videos that install automatically with KonaKart.  When you view them in the KK UI, you see pricing info, but if you make the getOrdersPerCustomer API call, the OrderProduct objects that get returned have no pricing info.

Wayne
Title: Re: getOrdersPerCustomer doesn't return any pricing info????
Post by: pete on November 17, 2008, 06:19:12 pm
Try looking at the finalPriceIncTax and finalPriceExTax attributes.
Title: Re: getOrdersPerCustomer doesn't return any pricing info????
Post by: ReLLiK75 on November 17, 2008, 06:22:07 pm
Those attributes were null too.
Title: Re: getOrdersPerCustomer doesn't return any pricing info????
Post by: pete on November 17, 2008, 06:32:41 pm
That's strange. If you take a look at ShowOrderDetailsBody.jsp, you'll see that those are the attributes we use to display the prices in the application.
Title: Re: getOrdersPerCustomer doesn't return any pricing info????
Post by: ReLLiK75 on November 17, 2008, 06:34:25 pm
I'm using SOAP.  Could there be a bug in the API that is causing these values to return as null?
Title: Re: getOrdersPerCustomer doesn't return any pricing info????
Post by: Irina on April 28, 2011, 03:03:42 pm
Hello,

I have quite the same problem with getting product price with tax and tax itself in % for each product using your API. They are simply null.
We are using getOrders() to get the list of order from shop, then we get the list of products for each order getOrderForOrderId();
It is possible to get product price by product ID, but all other important fields for ordered product is Null.

Can you help please?
How to get Tax% for each ordered product using your API?

Thanks for your help.
Title: Re: getOrdersPerCustomer doesn't return any pricing info????
Post by: Irina on April 29, 2011, 11:37:01 am
Can anyone please help me?