• Welcome to KonaKart Community Forum. Please login or sign up.
 
March 28, 2024, 08:13:43 am

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 - innes

17
Feature Requests / Re: Digital Download - bundle support
February 22, 2011, 10:02:47 am
Hi

I am thinking of an album as a product that would be shown separately from the singles.  Therefore, if you select the manufacturer then the listing would show albums at the top then singles beneath.

Selecting detail on the album would display links to the individual singles & selecting detail on the single would display a link back to the album.  We could do this via the description and/or custom fields but it would include a lot of manual html and maintenance and we want to make this a simple for the manufacturers/our admins as possible.

Hope this makes more sense,
Innes
18
Hi
We are prototyping integrating dotCMS & KonaKart.  We wish to provide edit rights to manufacturers to maintain their own pages (microsites). Ideally they wouldn't have one login for dotcms and another for KK.  How would this work?

In addition, could they work with 3rd party platforms like Google, Facebook, Twitter to enable social login (eg http://www.janrain.com).

What migration (if any) would we need to think about if we were moving existing customers from the default KK authentication?

Regards,
Innes
19
Feature Requests / Digital Download - bundle support
February 22, 2011, 09:29:08 am
Hi

We run a digital distribution company & sell both individual products and album (music, images, teaching, etc) products. 

We are looking for a performant way to add the album layer into the Product Listing & Details pages.  Ideally, we would like the hierarchy to look something like Main Category (eg music, images, teaching, ebook), Category (genres of music, etc), Manufacturer (Artist/Author/Teacher), Bundle (Album, Series), Individual products.

I have looked at using the custom fields however I am concerned this will have a performance impact as I may need to iterate over all Categories/Manufacturers/Products to display all the relationships.

Regards,
Innes

20
Configuration of KonaKart / Re: Loadbalance Konakart
April 13, 2009, 03:39:03 pm
Hi

Yes, I have used sticky sessions.  I have read that there are issues with mod_jk and redirects.  Konakart seems to use a lot of redirects for selecting categories, products etc.

Do you have example Apache 2.2 and Tomcat config files, as I have tried with both mod_jk and HTML proxy and the redirects seemt to be causing issues.

Thanks,
Innes
21
Configuration of KonaKart / Loadbalance Konakart
March 24, 2009, 10:13:13 pm
Hi

I have loadbalanced Konakart (2.2.6.0) using Apache (Apache/2.2.3) & mod_jk talking to 2 tomcats (apache-tomcat-6.0.14) and running on Debian etch.  Both Tomcats are configured to talk to the same MySQL database but with different users.

When I run the instances seperately (Apache-mod_jk-tomcat-MySQL) everything works perfectly.  However, when I run both tomcat instances all the sub-categories disappear from the left hand side.

I can still see the top level categories but when I select one I get the "products.body.there.are.no.products.to.list.in.this.category=There are no products" message.  The log file says I have 10 categories.

The rest of the site seems to work fine.

Are there any gotchas with Konakart and load balancing?

Thanks,
Innes
22
Thanks.

The more I think about this, the more it seems that the functionality for Customer Groups is incomplete.

According to the FAQ:

"Groups may be used to:
    * Control what prices are displayed to customers.
          o Each group has a PriceId attribute which may have a value of 0 to 3. When set to 0, a customer belonging to that group will see the normal price of the product (i.e. the price attribute). When set to 1, the customer will see the price defined in the Price 1 attribute of the product and so on for 2 and 3.  This functionality for example,  allows you to display wholesale prices to wholesale customers and retail prices to retail customers. If a customer belongs to no groups, then the price from the normal price attribute is displayed. Note that in the Admin App you may change the price labels from Price1, Price2 etc. to a more meaningful description such as Wholesale price, MRP, Employee price etc.
    * Enable promotions.
          o Promotions may be enabled for customers belonging to a particular group. i.e. You may want to enable certain promotions just for your retail customers."

It seems to me that Customer groups is 80% there but needs to be extended to be be usable.  At the moment too much customisation is required.  The same code is used in all the JSPs to display prices, so it's a bit frustrating to have to figure out what is cached where and how to work around it :-(

Are there plans to close this gap or is this how Customer groups were supposed to behave?

Innes

23
Hi

I am planning to use Paypal for my payment gateway, however I have some free digital download products and I do not want to send my Customers to Paypal and back (not even sure how PayPal handles a free product) in order to enable the download link.

My solution (which may not be the best) was to create a Free payment gateway and a wrapper gateway that delegated to PayPal if the value is greater than zero or Free otherwise.

However, I get a null pointer when I call Paypal from my code.

The error is:
09-Jun 12:23:45 DEBUG (Eatacd.java:getPaymentDetails:115) Use PayPal Payment Gateway. Amount = 1.79000
09-Jun 12:23:45 ERROR (Eatacd.java:getPaymentDetails:124) Error getting Payment details (amount =  1.79000)
java.lang.NullPointerException
   at com.konakart.bl.modules.payment.paypal.Paypal.getPaymentDetails(Paypal.java:291)
   at com.konakart.bl.modules.payment.eatacd.Eatacd.getPaymentDetails(Eatacd.java:117)
   at com.konakart.bl.modules.payment.PaymentMgr.getPaymentGatewaysPrivate(Unknown Source)
   at com.konakart.bl.modules.payment.PaymentMgr.getPaymentGateways(Unknown Source)
   at com.konakart.app.KKEng.getPaymentGateways(Unknown Source)
   at com.konakart.app.GetPaymentGateways.getPaymentGateways(Unknown Source)
   at com.konakart.app.KKCustomEng.getPaymentGateways(KKCustomEng.java:2612)
   at com.konakart.server.KKGWTServiceImpl.getPaymentGateways(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:528)
   at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:265)
   at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:187)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   at java.lang.Thread.run(Unknown Source)
09-Jun 12:23:45 INFO  (Eatacd.java:getPaymentDetails:127) Payment Details: null

My code is:

public PaymentDetails getPaymentDetails(Order order, PaymentInfo info)
         throws Exception {

      log.info("Order: " + order.getId());

      /*
       * Set PaymentInfo to require full details. Not sure why I need to
       * do this, suspect that it relates to disabling Free & PayPal and using
       * the EATCD Payment Gateway.
       */
      info.setReturnDetails(true);
      log.info("PaymentInfo: " + info.getStoreName() + " "
            + info.isReturnDetails() + " " + info.getLocale());
      PaymentDetails paymentDetails = null;
      BigDecimal amount = order.getTotalIncTax();

      try {
         if (amount.compareTo(BigDecimal.ZERO) == 0) {
            log.debug("Use Free Download Payment Gateway. Amount = "
                  + amount.toString());
            paymentDetails = this.freePaymentGateway.getPaymentDetails(
                  order, info);
         } else {
            log.debug("Use PayPal Payment Gateway. Amount = "
                  + amount.toString());
            paymentDetails = this.paypalPaymentGateway.getPaymentDetails(
                  order, info);
         }
      } catch (KKException e) {
         log.error("Error getting Payment details (amount =  "
               + amount.toString() + ")", e);
      } catch (Exception e) {
         log.error("Error getting Payment details (amount =  "
               + amount.toString() + ")", e);
      }
      log.info("Payment Details: " + paymentDetails);
      log.info("Order : " + order.toString());
      return paymentDetails;
   }


The error seems to be thrown at line 291 in Paypal.java:
for (int i = 0; i < order.getOrderTotals().length; i++)

I have tried following stack trace back to find where orderTotals is initialised but it seems to be in KKGWTServiceImpl?

Can you provide any guidance as to where orderTotals is initialised?

Couple of other things:  I have installed all 3 payment gateways (so their configurations are all in the DB) but have disabled Paypal and Free so that they are not provided in the Drop Down list on the confirmation page.

Thanks,

Innes
24
Configuration of KonaKart / Digital Product Bundles
June 09, 2008, 11:46:10 am
Hi

I set up a bundle containing Digital Downloads and got the attached error

I tried this with Physical products as well and then also on the demo website and received the same error.

How should the Bundles be configured so that a Shipping Method is defined?  I also tried adding other products to teh cart but this failed too.

Innes
25
Thanks for the reply.

Is there an API call to reset the cache on a per user (session)  basis or does it affect all users?

I have hooks in to set the Customer Group (and associated currency) when a Customer logs in/out and when they switch currency manually (similar to switching Language).  What would be the impact of clearing the cache for the Specials and What's New here?

cheers,

Innes
26
Hi

I have continued developing the multi currency using Customer Groups.  Couple of points though:

1) I think I may have found a bug with how the Prices are used based on the Customer Group.  Sometimes the Price is displayed using the correct Price Group and sometimes the default price is used (random new).  I have attached a screenshot.  Can you provide some guidance for the best place to hook in so that the Customer groups are respected evevrywhere the Price is displayed?

2) How do Specials work with Customer Groups and Prices?  The special is a new Price rather than a discount, so if I have different Prices for each of my Customer Groups the Special only applies to the default Price group.

Thanks,

Innes
27
Okay, thanks for that.
28
Feature Requests / Konakart 2.2.06 & Multi-Currency
June 01, 2008, 11:21:11 pm
Hi

First of all...great job with the new version.

But...always a but :-)

Is there any way to customise the formatPrice methods in the com.konakart.al.KKAppEng class?

I have a requirement for USD, GBP & EUR depending on where the Customer lives.  I have implemented this using Customer Groups, Product Price Ids and mapping Country Ids to a Currency Id.  My Payment Gateways will use the Customer's Currency.

The last thing is to format the price displayed to reflect the Customer's Currency.  In version 2.2.0.4 I had created my own version of the KKAppEng class that had a defaultCurrency and an activeCurrency.  I had hoped that v2.2.0.6 would allow me to customise this in the same way as other methods.

Do you have any suggestions or should I continue with my alternative KKAppEng class?

Regards,

Innes

ps. This started as a feature request, but on reflection became a programming question.  Feel free to move if there is a more appropriate section.
29
Thanks! Did the exact same thing.

Innes