• Welcome to KonaKart Community Forum. Please login or sign up.
 

getDiscountOrderTotalFromList() in BaseOrderTotalModule

Started by impiastro, July 07, 2010, 04:22:59 pm

Previous topic - Next topic

impiastro

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

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

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.