• Welcome to KonaKart Community Forum. Please login or sign up.
 
November 07, 2025, 07:02:23 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 - mtoon

31
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?
32
Programming of KonaKart / Re: Accessing the Database
March 28, 2008, 06:36:22 pm
I just needed a database connection..  I'm posting this in case it's helpful to anyone else...
Here's how I ended up getting the connection.

        Properties properties = new Properties();
        properties.load(new FileInputStream("../webapps/ROOT/WEB-INF/classes/konakart.properties"));
        String Driver = properties.getProperty("torque.dsfactory.oscommerce.connection.driver");
        String ConnectionURL = properties.getProperty("torque.dsfactory.oscommerce.connection.url");
        String UserName = properties.getProperty("torque.dsfactory.oscommerce.connection.user");
        String Password = properties.getProperty("torque.dsfactory.oscommerce.connection.password");

        Class.forName(Driver);
        Connection conn = DriverManager.getConnection(ConnectionURL, UserName, Password);
33
Programming of KonaKart / Re: Accessing the Database
March 27, 2008, 02:31:20 pm
Just a bump on this.  Is there any method hanging off any of the appif classes?
Thanks
34
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!
35
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!
36
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!
37
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!
38
Thank you..  I'll check out variables..

here's another question.  I'm trying to show SKU on the invoice.  The OrderProductIf does not specifically have SKU, but it has getProduct() which returns ProductIf which has sku.  Velocity is not allowing me to make this call..
$op.getProduct().getSku()

Any thoughts?
Thanks!
39
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!

40
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!
41
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!
42
Roger that.  Just some random feedback, your documentation as well as your design was really helpful in getting this payment processing setup.  I literally started this morning and finished this afternoon.  Thanks!
43
Thanks!  But I have a followup question.  I looked in the code and it looks like the post is being done over a standard HTTP connection.  I didn't see and SSL functionality.  Am I just reading that wrong or does BaseGatewayAction not support SSL?

Thanks again
44
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!