• Welcome to KonaKart Community Forum. Please login or sign up.
 
April 28, 2024, 03:04:33 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 - Iruñea

16
Programming of KonaKart / Re: problem with kkAdmin
January 20, 2009, 10:20:51 am
Thank you Trevor,

copying this file, now it works. But just for curiosity, I wonder if this is something I should normally do, or if I deleted this two files without wanting it...

Thanks
17
Programming of KonaKart / Re: problem with kkAdmin
January 15, 2009, 10:16:11 am
Ok, I copied konakartadmin.jar from
E:\Konakart\webapps\konakartadmin\WEB-INF\lib
and I paste it into
E:\Konakart\webapps\konakart\WEB-INF\lib

Now the error has changed:

Exception Name = com.konakartadmin.app.KKAdminException
Exception Message = Could not find konakartadmin.properties on the classpath
Exception Stack Trace =
at com.konakartadmin.bl.KKAdminBase.init(Unknown Source)

Now it finds the class but not konakartadmin.properties file...
So I think there is a problem with the CLASSPATH.


How can I setup or referenced correctly the classpath for the KKAdmin ??
18
Programming of KonaKart / Re: problem with kkAdmin
January 15, 2009, 09:09:37 am
Could be a problem, if in the same java class I get an instance of KKAplication and also a instance of Admin engine??

Could this be the problem?
19
Programming of KonaKart / Re: invoice as attachment
January 14, 2009, 09:48:12 am
Thanks ReLLiK75

I had a look to it and it looks it works; I create the pdf document as I want with iText and then using the Java Mail Class, I add that file as attachment and its working...

Thanks !!
20
Programming of KonaKart / problem with kkAdmin
January 13, 2009, 04:20:15 pm
Hello,

I do the following:


import com.konakartadmin.bl.KKAdmin;
...
KKAdmin engAdmin =  new KKAdmin();


and it gives me the following error:

13-Jan 17:02:44 ERROR (StandardWrapperValve.java:invoke:253) Servlet.service() for servlet action threw exception
java.lang.NoClassDefFoundError: com/konakartadmin/bl/KKAdmin
        at com.konakart.actions.ipn.OgoneAction.getOrdr(Unknown Source)
        at com.konakart.actions.ipn.OgoneAction.execute(Unknown Source)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BasePr...)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: com.konakartadmin.bl.KKAdmin
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 22 more

I have verify that indeed,KKAdmin.class exists in konakartadmin.jar
(E:\Konakart\webapps\konakartadmin\WEB-INF\lib\konakartadmin.jar\com\konakartadmin\bl\KKAdmin.class)

Im starting to find it frustrating because I dont find the solution. Could anybody help me please ?

Thanks in advance,

Iruñea
21
Programming of KonaKart / invoice as attachment
January 06, 2009, 02:14:40 pm
Hi KonaKarts!

When sending the order confirmation to a client, (generated by OrderConfirmation_en.vm), is there any way to send this like an attachment in the email?? Any idea ?

Thanks!
22
Hi Konakarts! :)

Does anybody know how can I get all the different taxes which are defined in kkAdministrator?

order.getTaxRateObjectArray gives me all the taxes a order has but what Im looking for is an array with all kk defined tax rates. Something like this:

eng = new KKEng();
TaxRateIf[] taxes = eng.getAllTaxeRates();


but I dont find such a method in KKEng...

THanks!
23
Programming of KonaKart / Re: new order total
December 22, 2008, 01:05:21 pm
Thank you Trevor,
thats the answer I was looking for !!
:)
24
Programming of KonaKart / Re: new order total
December 22, 2008, 12:50:15 pm
Ive still a problem. The order total amount is calculated correctly but iIt doesn't add this price automatically to the TOTAL PRICE OF THE ORDER. In theory this add to be done automatically:

Quote...You don't need to do anything else as long as the "Total" module is placed at the bottom of the list of order total modules. In this case it should automatically create a total using your new module(s) as well as any other modules above it (i.e. discount, shipping, sub total etc.)


But it does not. So the cuestion is: In which class/method is sumed all this amounts to the total Price of the order??
If its in order.getTotalIncTax(), where can I find it?


Thank you
25
Programming of KonaKart / Re: new order total
December 22, 2008, 11:40:21 am
Perfect, thanks a lot !
26
Programming of KonaKart / new order total
December 22, 2008, 10:58:16 am
Hello

Ive created a new order total module. Into the method
public OrderTotal getOrderTotal(Order order, boolean dispPriceWithTax, Locale locale){...}

I want to know how many products are in the order but when I try to get this by order.getNumProducts() it gives me 0.
If I make a order.getId() it also gives me 0.

However when I make order.getSubTotalExTax() it gives the correct amount so, the cuestion is; how can I get the full populated Order ??

Thanks!
27
Programming of KonaKart / Re: Tax customization
December 17, 2008, 11:15:21 am
Perfect, thanks Trevor!
28
Programming of KonaKart / Re: Tax customization
December 17, 2008, 11:05:11 am
Hello Trevor, and thanks for your fast answer.
Ive only one doubt. When you say
Quote"Total" module is placed at the bottom of the list of order total module


Which list are you speaking about?
I guess you refer to the KonakartAdmin>Modules>Order totals> the "Short Order" number.
Is this correct?

Thank you again Trevor!
29
Programming of KonaKart / Tax customization
December 17, 2008, 10:44:03 am
Hello,

First sorry for my English:)
I would like to add a SAME extra cost to each product for administration costs of 7Euros and a tax of 12% of this Admin. costs. So a product total price = Prod.Cost +ProdCost_Tax+ Admin.costs+ Admincost_Tax

Are this steps corrects to achieve that?
-b]Create a new Order totals module[/b] called AdminCost. For each product in the Basket will sum 7Euro
-Create a new Order totals module called AdminCostTax. For each product in the Basket will sum the 12% of 7Euro
-In CheckoutConfirmationSubmitAction.java set the order total price as the sum of subTotal + tax + AdminCost+ AdminCostTax

What do gurus think about this? I wonder if there exist a easier solution?
Thanks!
30
Programming of KonaKart / Re: control dependent products
December 10, 2008, 03:46:23 pm
wow, thats a fast answer ! :)



Thank you very much !!