• Welcome to KonaKart Community Forum. Please login or sign up.
 
November 15, 2025, 12:27:30 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.

Topics - mtoon

1
Hi all-
We recently found that if a cart totalled zero dollars that we were still going through the CC processing step.  I added this code to the CheckoutConfirmationSubmitAction class to handle this case.  I'm just posting this here in case anyone else has the same issue.



            OrderIf checkoutOrder = kkAppEng.getOrderMgr().getCheckoutOrder();
            if (checkoutOrder == null || checkoutOrder.getStatusTrail() == null)
            {
                return mapping.findForward("CheckoutDelivery");
            }

---------------- BEGIN  NEW CODE --------------------
            BigDecimal orderTotal = checkoutOrder.getTotalIncTax();
            if (orderTotal.compareTo(java.math.BigDecimal.ZERO) == 0) {
                // Set the order status
                checkoutOrder.setStatus(com.konakart.bl.OrderMgr.PAYMENT_RECEIVED_STATUS);

                // Save the order
                int orderId = kkAppEng.getOrderMgr().saveOrder(/* sendEmail */true);

                OrderIntegrationMgr oim = new OrderIntegrationMgr();
                oim.manageDigitalDownloads(orderId);
               
                // Update the inventory
                kkAppEng.getOrderMgr().updateInventory(orderId);

                // If we received no exceptions, delete the basket
                kkAppEng.getBasketMgr().emptyBasket();

                return mapping.findForward("CheckoutFinished");
            }

------- END NEW CODE -------------           
            int paymentType = kkAppEng.getOrderMgr().getPaymentType();
2
Programming of KonaKart / Shipping
May 18, 2008, 03:22:57 pm
Most of the items in our store are lightweight and the customer receives free shipping, but some of the items are very heavy and we'd like to place a shipping surcharge on these items.  My original thought was to create an order total module that looks at the weight of the items in the cart and if they are not zero, add them up and place a table rate on that.  But before I write that, I wanted to see if there was any way in the system to already do this.  I know there is a table-rate shipping module, but we do not want to enable it because it then prompts the user if they want table rate (lots of money) or free (obviously better for the consumer!)...  Any thoughts?
Thank you
3
Is there any handle to the KKEng object from within the Velocity templates?
4
Programming of KonaKart / Creating a new engine
May 09, 2008, 07:23:38 pm
Is it possible to descend from the com.konakart.app.KKEng class and update the konakart_app.properties to reflect that?

i.e.:
konakart.app.engineclass=com.my.engine.class

would the kkEng variable in all the JSPs be updated from this change?

Thank you!
5
We have a "Global" product master that has all of our products in it (all invisible) and then a specific product master for all of our customers that has their model number and pricing.  In the customer specific import we only have a few fields (but SKU is one of them).  The idea was to have the import just update these particular fields, but it's not doing that.  Any ideas?

Thank you
6
Programming of KonaKart / import problem
May 05, 2008, 05:33:30 pm
Just started seeing an odd problem...  the importer is now duplicating rows.  We do not have a product id in the import, but we do have a SKU.  What would be causing this?  The entire product master is being duplicated each time.

Thank you
7
Programming of KonaKart / Order Question
April 10, 2008, 04:33:59 am
It appears that when a user enters their credit card incorrectly (bad CVV in the example), a secondary order is generated the second time they enter their information.  Is there any way to have the system just go ahead with the first order generated?

Thank you!
8
Programming of KonaKart / Order Status Change email
April 07, 2008, 07:23:10 pm
On our order status email template, the following line:
               $osh.getComments()

seems to always render "$osh.getComments()" for the initial Pending status.  Subsequent status render the comments as applied in the admin tool.  It looks like velocity has a problem with null strings which will cause this.  is there any way to get a blank status inserted into the database or have this function $osh.getComments() return the empty string rather than null for Pending? 

Thank you


9
Is there anyway to change the order of the status trail in $order.getStatusTrail()?

We'd like to show newest to oldest.  Thank you!
10
Programming of KonaKart / Multiple Sites
April 07, 2008, 05:36:24 pm
We are trying to create multiple affiliate sites using the same instance of Kona.  Ideally we'd like to have the URL dictacte what store you enter.  Right now, the properties we'd need to update based on affiliate would be CSS include and the email addresses the orders are sent to.  We'd also need to filter the product master per-instance.  Has anyone done this before?  Any tips would be helpful.

Thanks!
11
Programming of KonaKart / Shipping Module
March 28, 2008, 07:06:22 pm
Question: I'm trying to create a new shipping module... ExpressFlat (for flat rate express shipping).    I basically copied the free shipping module and renamed all the classes / etc.  I added it to the konakartadmin properties file and i can see the module and set it's properties in the admin, but i can't get konakart to see it.  I keep getting a class not found, but i'm positive the class exists at least in the code and in the konakart_shipping_expressflat.jar file.  Are there any properties that need to be set for the shipping method to work in KonaKart?
12
Is there anyway to add functionality to the admin application?  We'd like to create a page to allow us to credit an order using our payment gateway.  We just need to add a simple page to the admin appliction.  Thank you!
13
Programming of KonaKart / Accessing the Database
March 25, 2008, 02:18:35 pm
Hello there!
I'm trying to figure out how to access the database directly from the payment module and the JSPs.  In my example, I'd like to make some database calls (external to konakart) when my custom payment module runs as well as retrieve this data on a JSP.  Any thoughts?  Ideally, I'd like to use whatever connection pooling the application is already using.

Thank you!
14
Programming of KonaKart / Other Payment Functions
March 20, 2008, 01:10:16 pm
Hello there!
I'm implementing a custom payment gateway and I've gotten the sale section to work, but now I've been asked to add Credits and Voids.  Are there already hooks in the system for these two operations?

Thank you!
15
Programming of KonaKart / Customizing One Page Cart
March 17, 2008, 05:37:40 pm
Is it possible to customize the single page cart?  We'd like to remove/change some elements and I can't find the JSPs anywhere.

Thank you!
16
Hello there!
I'm trying to show the total amount of tax applied to the order in the subtotal area at the bottom of the invoice.  Here's the current code:

#foreach( $ot in $order.getOrderTotals() )
                    <tr>
                      <td align="right" class="dataTableContent">$ot.getTitle()</td>
                      <td align="right" class="dataTableContent">$ot.getText()</td>
                    </tr>
               #end

is there a specific property of $order that would show all the tax or another way to accomplish this?  is it possible to add the values of the taxed amount for each line together?

i.e.:
totalTax = totalTax + ($op.getTotalPriceIncTax() - $op.getTotalPriceExTax())?

Thank you!

17
Programming of KonaKart / Tile Customizations
March 14, 2008, 01:06:52 pm
I posted this in config, but i'll try here too.  Thanks!

I've been customizing the MainLayout.jsp and i've noticed something odd.  When I change the background  color to anything but white, a single line per left tile is shown, even where there are no content in the tile (i.e. the product image page).  Here's my code.  This will produce a 7 line grey box on the item image page.  Any thoughts?

My MainLayout.jsp code:
                        <table bgcolor="#EEEEEE" cellborder="0" width="100%" cellspacing="0" cellpadding="0">
                           <tr><td><tiles:insert attribute="leftTile1" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile2" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile3" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile4" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile5" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile6" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile7" /></td></tr>
                        </table>

this translates to:
                        <table bgcolor="#EEEEEE" cellborder="0" width="100%" cellspacing="0" cellpadding="0">
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                        </table>

Is there anyway that <tiles:insert> can not put a CRLF in?  I think that's what's causing the problem.

Thank you!
18
Configuration of KonaKart / Tile Customizations
March 13, 2008, 03:12:08 am
I've been customizing the MainLayout.jsp and i've noticed something odd.  When I change the background  color to anything but white, a single line per left tile is shown, even where there are no content in the tile (i.e. the product image page).  Here's my code.  This will produce a 7 line grey box on the item image page.  Any thoughts?

My MainLayout.jsp code:
                        <table bgcolor="#EEEEEE" cellborder="0" width="100%" cellspacing="0" cellpadding="0">
                           <tr><td><tiles:insert attribute="leftTile1" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile2" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile3" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile4" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile5" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile6" /></td></tr>
                           <tr><td><tiles:insert attribute="leftTile7" /></td></tr>
                        </table>

this translates to:
                        <table bgcolor="#EEEEEE" cellborder="0" width="100%" cellspacing="0" cellpadding="0">
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                           <tr><td>

</td></tr>
                        </table>

Is there anyway that <tiles:insert> can not put a CRLF in?  I think that's what's causing the problem.

Thank you!
19
Hello there-
I just have a quick question about the postData method in the payment gateway.  It looks like the method accepts a list of paramters and manages the HTTPS post and response.  My question is, I need to send an XML packet instead of name-value pairs in the post, can this be done using the postData method or another framework method?

Thank you!