KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: kastor on September 24, 2007, 03:15:56 pm

Title: Limit order total amount
Post by: kastor on September 24, 2007, 03:15:56 pm
Hi All,

I'm lookin for an easy way to limit the money an user can buy in the shop, for example, if an user reaches 300 dollars of products in the shopping cart, show an alert or something similar.

Any hints or ideas?

Thanks in Advance.

Kastor!
Title: Re: Limit order total amount
Post by: paolo on September 24, 2007, 04:36:16 pm
Hi Kastor,

An easy solution would be to edit EditCardBody.jsp which is the JSP that shows cart items. You are forwarded to this JSP everytime you add something to the cart. This JSP displays the total so you could add a few lines of code that prints out a warning or displays a popup window after having checked the total value.

-Paolo
Title: Re: Limit order total amount
Post by: kastor on September 26, 2007, 11:37:51 am
Thanks, Paolo,

finally I have modified EditCartSubmitAction.java as you suggested to check the items amount, including quantity of items.


Kastor!