Author Topic: getDiscountOrderTotalFromList() in BaseOrderTotalModule  (Read 465 times)

impiastro

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
getDiscountOrderTotalFromList() in BaseOrderTotalModule
« on: July 07, 2010, 10:22:59 AM »
Hello everyone!

I the fresh new javadoc for KK 5.0, inside the BaseOrderTotalModule I found a method called getDiscountOrderTotalFromList() which says:

"A list of the current order totals so that an order total module can modify an order total that was previously called."

In this way every order total module can see and change a previous order total module in the calling stack? and also changing its values?

Before release 5.0.0.0 how this can be achieved? or was not possible?

ROb

trevor

  • Administrator
  • Hero Member
  • *****
  • Posts: 495
    • View Profile
    • KonaKart
Re: getDiscountOrderTotalFromList() in BaseOrderTotalModule
« Reply #1 on: July 07, 2010, 10:35:36 AM »
The method you are referring to is called getOrderTotalList() and you can see a commented example of how it could be used within Total.java.

This couldn't be achieved before 5.0.

impiastro

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: getDiscountOrderTotalFromList() in BaseOrderTotalModule
« Reply #2 on: July 07, 2010, 10:40:30 AM »
Sorry for the mistaked cut-and-paste trevor ...

You were right, I meant getOrderTotalList() .

I will download the 5.0 code to see the Total.java module code.

Thank you.