• Welcome to KonaKart Community Forum. Please login or sign up.
 
June 28, 2025, 05:41:58 pm

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jvandevelde

1
Sorry i saw where I went wrong with the last piece of code
the line out.println("<br/> Sub-Level: " + c.getLevel());
should be
out.println("<br/> Sub-Level: " + c2.getLevel());

I do still have the same problem when doing a search though

Product currProduct = prods[prod];   
Category[] prodCats = eng.getCategoriesPerProduct(currProduct.getId(), -1);

prodCats[0].getLevel() will always return 0 even though this is not correct


2
Hi,

I'm having problems writing a category tree based on a set of search results. The problem I have is that calling categoryIf.getLevel() always returns 0.

For example, the following code:

Category catss[] = eng.getCategoryTree(-1, true);
for(Category c : catss)
{
   out.println("<br/>Level: " + c.getLevel());
   for(Category c2 : c.getChildren())
      out.println("<br/> Sub-Level: " + c.getLevel());
}

Returns

Level: 0
Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Sub-Level: 0
Level: 0

Is there something I have to do to get the level of a category to be populated?

Thanks,
Jules Van de Velde
3
Hi,

I'm trying to perform a product search using the KKWSEng.searchForProducts() method but keep getting the exception

org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.ProductSearch - endDateFrom

I have not set any constraints in the ProductSearch object that i'm using

The WSDL that I have in the OpenCms_module folder does have both endDateFrom and endDateTo elements, but I've noticed that the WSDL at http://www.konakart.com/konakart/services/KKWebServiceEng?wsdl does not.

From the KonaKart admin About menu I get the version information

Version Number : 5.4.0.0-E (built 9:05PM 20-May-2011 BST)

Does anyone have any suggestion on how I could fix this?

Thanks,
Jules Van de Velde