KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: impiastro on July 07, 2010, 04:22:59 pm

Title: getDiscountOrderTotalFromList() in BaseOrderTotalModule
Post by: impiastro on July 07, 2010, 04:22:59 pm
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
Title: Re: getDiscountOrderTotalFromList() in BaseOrderTotalModule
Post by: trevor on July 07, 2010, 04:35:36 pm
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.
Title: Re: getDiscountOrderTotalFromList() in BaseOrderTotalModule
Post by: impiastro on July 07, 2010, 04:40:30 pm
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.