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

cancel order from tax module + remove tax column from EditCartSubmit.do

Started by lvfisher, September 12, 2008, 09:25:15 pm

Previous topic - Next topic

lvfisher

Hello,

I am a Konakart newbie and this is my first real question to this forum. 

We get all of our pricing, tax, locale, and shipping info... as well as, perform actual purchases through our Oracle backend.  So, we have modified kk to do this in its wonderfully extensible payment, Tax, Shipping, Subtotal, and Total modules.  So far, so good... but, have run into a couple of things that have not been able to find.

1. Upon figuring tax info in the Tax module, we set total price on the order with its setTotalIncTax().  This is working fine in the total but have not been able to set the tax for individual items in the tax column in the Product table shown in the EditCartSubmit.do page.  So, my cautious question is... how do you set that value or how can I delete the tax column entirely from that Product table on the page?

2. Our price authority is Oracle.  So even though our kk shopping cart shows prices from its database, those prices may or may not be accurate.  We are querying Oracle for the real price in the Subtotal module.  However, we have been unable to update the prices in the product (e.g., when I call setPrice([someprice]) on a Product instance obtained from an OrderProductIf from the OrderProductIf[] array obtained from the order, nothing happens to the price in the product). So, if the prices are different, we are updating the kk database directly at that time.  However, we also have been unable to change the prices in the cart.  This could lead to a customer being surprised, when he gets a different price after checking out.

So, can someone please tell me how to update the prices for shopping cart items and products or failing that, how to cancel the order and send the user back to kk welcome page (at that point, since we have changed the price in the database, they will see the correct price). 

Can you help us with these questions?

Thank you so much in advace, for your advice and time.

Regards,
Larry