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

Coupon Code Issue

Started by lionCoolKing, June 16, 2011, 10:20:25 am

Previous topic - Next topic

lionCoolKing

Folks,
I am new to konakart and found it very impressive.
Now I am facing an issue. My requirement is that after the user enters the coupon code in a field the user is supposed to get the discounted value of that product. I have tried many ways but all in vain. My idea was to use createOrder() and get the order object, set the coupon code in order object and invoke the saveOrder(). Its giving exception as "The order must contain at least one OrderTotal object". Don't know how to populate the OrderTotal object.

Please suggest me some other ways to achieve it.

Thanks

trevor

Why don't you just take a look at how we do it in ShowCartItemsAction.java.

lionCoolKing

Thanks for the quick response. Can u please tell me where i can get the ShowCartItemsAction.java file

Regards

trevor

KonaKart\custom\appn\src\com\konakart\actions

lionCoolKing

Thanks a ton.

But we are not using struts framework. we are using jsf. Please suggest some other way to achieve it.

Regards

trevor

All KonaKart functionality is available through the engine APIs. Our store-front and admin applications use the APIs. Take a look at the javadoc http://www.konakart.com/documentation/javadoc .

lionCoolKing