jake_5798-msn
-
10/18/2011 6:01:20 PM
RE:Using CustomEcommerceProvider project to recalculate shopping cart
Hi,
I actually did find a work-around. I'm not sure if it will help you (depends on the issue you're having I guess) but for my issue, yes it worked.
In parallel to the cart functionality, I kept my own price in a variable all the way through each step of the cart. So if the cart price was $100, I was calculating my own discounts and had $80 as the total (for example).
In the shopping cart steps, in particular:
ShoppingCartPreview.ascx.cs
I manually wrote to the COM_Order table and updated the order price:
UPDATE COM_Order Set OrderTotalPrice = @myCustomPrice
This was done in the [public override bool ProcessStep()] method.
Use with caution. I don't recommend this as I'm not sure if it will have negative implications in your application. It's a bit of a hack. But having said that, for my problem it works 100% for several months now.
Cheers,
Jake
So after Kentico wrote the
|