• Welcome to KonaKart Community Forum. Please login or sign up.
 
December 21, 2024, 03:08:40 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 - paulh

1
Is there any way of knowing if the user searched on specials? in the same way I can get the current category?
2
solution is

product = kkEng.getEng().getProduct(kkEng.getSessionId(), product.getId(), kkEng.getLangId());
                  

orginal product object is not fully populated for performance reasons
3
ProductIf[] products = kkEng.getProductMgr().getCurrentProducts();
for (int i=0; i < products.length; i++) {
ProductIf product = products;
System.out.println(product.getTags());
}


always prints out null when in DVD-Action category
4
Programming of KonaKart / Re: Filter by tagId
October 17, 2011, 02:54:17 am
Looks like all I need to do is loop around

kkAppEng.getProductMgr().filterCurrentProdsByTags(tagId);

in FilterProductByTagsAction

and read getParameterValues and I will be able to set multiple facet values at once

Is there a way of getting the distinct list of prices returned by a search? so u could make a facet on price? rather than maintain this as a tag which wouldnt work for multiple currencies.
NOT using Solr by the way.
5
Programming of KonaKart / Filter by tagId
October 16, 2011, 09:43:54 am
Is it possible to add functionality where I can pass FilterProdByTags.do?tagId=2&tagId=3&tagId=4 so u could use checkbox based filtering on facets... this would also enable sliders for ranges on prices assuming u registered the price of a product as a tagt...

This would be a subtle change in the present code of reading getParameterValues() instead of getParameter()

Otherise is the code available to customize this?

Thanks
6
Programming of KonaKart / Guest Checkout and JSP
August 02, 2011, 08:35:13 am
I wish to change the existing JSP checkout pages to guest checkout... I'd rather not go down the GWT route as I dont think its as easy to customize... I was wondering what calls I need to change to make the existing JSP checkout pages work without the customer first having to register? Is there some dummy account used in the GWT to achieve this.
Or how much would it cost to have this coded up...
Thanks
7
worked it out

kkAppEng.setForwardAfterLogin("CheckoutDelivery");
8
It seems after the user is logged in he is taken to the MyAccount page. I would like to change it so that if the user is logging in after clicking on checkout it goes to CheckoutDelivery and if they are logging in after clicking My Account then it goes to MyAccount.

Can you give me an idea which actions I should customize - struts-config.xml???

Thanks
9
Programming of KonaKart / Re: customize admin
January 25, 2009, 09:55:50 am
worked it out

I didnt change this property

konakartadmin_gwt.properties
- konakartadmin.gwt.engineclass=com.konakartadmin.app.KKAdminCustomEng

now its working and the world makes sense again

pays to read the instructions I guess  :'(
10
Programming of KonaKart / Re: customize admin
January 25, 2009, 08:42:20 am
as per tomcat

Therefore, from the perspective of a web application, class or resource loading looks in the following repositories, in this order:

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application


so I must be customizing the wrong thing????
11
Programming of KonaKart / Re: customize admin
January 24, 2009, 04:53:36 pm
sorry was a typo com.konakartadmin.app dont understand why the customized classes are picked up first in the konakart app aok but not with the konakart admin app even having customized com.konakartadmin.app.KKAdminCustomEng... must be something Im missing... u shouldnt have to rebuild the jars...
12
Programming of KonaKart / customize admin
January 24, 2009, 01:52:28 pm
I have had a look at http://www.konakart.com/engine_customization_faq.php

Anyway I can customize the konakart app by just adding the classes to web-inf/classes... This doesnt seem to work with the admin app I have customized com.konakartadminapp.UpdateOrderStatus1 and have customized com.konakartadminapp.KKAdminCustomEng to point to

private UpdateOrderStatus1 _updateOrderStatus = new UpdateOrderStatus1(kkAdminEng);

so that emails are only sent to customer when status == 3 (Delivered)

And put these 2 classes in the classpath not in the jar - shouldnt the classloader use these before the ones in the jar file??? Id rather keep the jars original so I know what I cave changed by just looking at my custom classes in eclipse.

What am I missing?

Thanks
Paul
13
When authenticating with a Microsoft SMTP server make sure u have BASIC selected as in my experience the Java Mail doesn't seem to support NTLM. If ur Mail Server and web-app are on the same machine its not insecure.
14

If u insert your product attributes and ur options are not contiguous ull end up with more selects that u bargain for - Im sure it will be fixed in the next release but heres a quick hack in the meantime - should be inserted before the product attributes are rendered in the productdetailsbody.jsp

<%
                  
                  ArrayList options = (ArrayList) selectedOpts;
                  Collections.sort(options, new Comparator() {
                  
                   public int compare(Object arg0, Object arg1) {
                      String  s1 = "" + ((ProdOptionContainer) arg0).getId();
                      String  s2 = "" + ((ProdOptionContainer) arg1).getId();
                      return s1.compareTo(s2);
                   }
                  });

                  ArrayList newOptions = new ArrayList(options);
                  
                  ProdOptionContainer current =  null;                  
                  for (int j=0; j < newOptions.size(); j++) {
                     
                     ProdOptionContainer prodOptionContainer =  (ProdOptionContainer) newOptions.get(j);
                     if (current!=null && current.getName().equals(prodOptionContainer.getName())) {
                        List values = prodOptionContainer.getOptValues();
                        for (int k=0; k < values.size(); k++) {
                           current.getOptValues().add(values.get(k));
                        }
                        options.remove(j);
                     } else {
                        current = prodOptionContainer;
                     }
                     
                  }
                                    
                  %>
15

If ur product has no manufacturer you must create a dummy one and attach it to the product otherwise u will get errors - Paolo verified this