Author Topic: Limit order total amount  (Read 2577 times)

kastor

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Limit order total amount
« on: September 24, 2007, 09:15:56 AM »
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!

paolo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 119
    • View Profile
Re: Limit order total amount
« Reply #1 on: September 24, 2007, 10:36:16 AM »
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

kastor

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Limit order total amount
« Reply #2 on: September 26, 2007, 05:37:51 AM »
Thanks, Paolo,

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


Kastor!